NDOSDAQChannelMap.h
Go to the documentation of this file.
1 #ifndef NDOSDAQCHANNELMAP_H
2 #define NDOSDAQCHANNELMAP_H
3 
4 #include "DAQChannelMap/DAQChannelMap.h"
5 #include "DAQChannelMap/NDOSDAQChannelMapConstants.h"
6 
7 namespace daqchannelmap {
9  {
10  // NDOS specific functions and mapping.
11  public:
12  dchan encodeDChan(lchan logicalchan) const;
13  lchan encodeLChan(dchan daqchan) const;
14 
15  block_t computeBlock(lchan logicalchan) const;
16  plane_t computePlaneInBlock(lchan logicalchan) const;
17  unsigned int computeModule(lchan logicalchan) const;
18  fiber_t computeFiberInModule(dchan daqchan) const;
19 
20  DetView_TYPE getView(dchan daqchan) const;
21  unsigned int getTotalNumberOfDiblocks() const;
22  unsigned int getNumberOfDCM(DiBlock_TYPE dbt) const;
24 
26  virtual ~NDOSDAQChannelMap();
27 
28  private:
29  fiber_t PixelToFiber(pixel_t pixel) const;
30  pixel_t FiberToPixel(fiber_t fiber) const;
31 
32  bool printBinary(uint32_t) const;
33  bool printHex(uint32_t) const;
34  };
35 }
36 #endif
37 ////////////////////////////////////////////////////////////////////////
bool printBinary(uint32_t) const
unsigned int computeModule(lchan logicalchan) const
Which module in this lchan in?
DiBlock_TYPE getDiBlockType(dchan chan) const
What format is the diblock? Only relevant in NDOS.
block_t computeBlock(lchan logicalchan) const
Which block is this lchan in?
plane_t computePlaneInBlock(lchan logicalchan) const
Which global plane in this lchan in?
uint32_t pixel_t
Type for physical pixel on APD.
unsigned int getTotalNumberOfDiblocks() const
How many diblocks does the detector have?
lchan encodeLChan(dchan daqchan) const
Convert a DAQ channel ID to a logical channel id.
dchan encodeDChan(lchan logicalchan) const
Convert a logical channel ID to a DAQ channel id.
DetView_TYPE getView(dchan daqchan) const
Which view (X or Y) does this daq channel readout?
fiber_t computeFiberInModule(dchan daqchan) const
Which fiber does this dchan readout?
uint32_t plane_t
Type for plane.
unsigned int getNumberOfDCM(DiBlock_TYPE dbt) const
How many DCMs does this diblock have?
DetView_TYPE
Types of Detector View.
DiBlock_TYPE
Types of Diblock.
uint32_t dchan
< DAQ Channel Map Package
bool printHex(uint32_t) const
pixel_t FiberToPixel(fiber_t fiber) const
fiber_t PixelToFiber(pixel_t pixel) const