CheckDAQChannelMap.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 /// \file CheckDAQChannelMap.h
3 //
4 /// \version
5 /// \author denis
6 ////////////////////////////////////////////////////////////////////////
7 #ifndef RAWP_CHECKDAQCHANNELMAPS_H
8 #define RAWP_CHECKDAQCHANNELMAPS_H
9 #include "JobControl/Module.h"
10 #include "RawData/DAQHeader.h"
11 //#include "DAQ2RawDigit/OnlineUnpack.h"
12 
13 namespace edm { class EventHandle; }
14 namespace cfg { class Config; }
15 class TH1F;
16 class TH2F;
17 
18 namespace rawp {
19 
21  MASK_OFFLINE_DETECTOR = 0x00000000, //!< Detector ID, (4bit), valid range 1-4
22  MASK_OFFLINE_PLANE = 0xFFFFFC00, //!< Diblock ID, (6bit), valid range 1-15
23  MASK_OFFLINE_CELL = 0x000003FF, //!< DCM ID, (6bit), valid range 1-384
24 
28  };
29 
30 
31 
32  /// A module to process the Flat files
33  class CheckDAQChannelMap : public jobc::Module {
34  public:
35  CheckDAQChannelMap(const char* version);
37  void Update(const cfg::Config& c);
38 
39  jobc::Result Reco(edm::EventHandle& evt);
40 
41 
42  uint32_t getChannel(uint32_t plane, uint32_t cell);
43 
44  void getLimits(uint32_t diblock, uint32_t dcm, uint32_t dcmport, uint32_t pixel);
45  void getDCMPortLimits(uint32_t currentdiblock, uint32_t currentdcm);
46 
47  uint32_t isForbidden(uint32_t idiblock,uint32_t idcm,uint32_t idcmport);
48 
49  private:
50 
51  uint32_t _detector;
52  uint32_t _diblock;
53  uint32_t _dcm;
54  uint32_t _dcmport;
55  uint32_t _pixel;
56 
57 
58 
59  uint32_t _diblockLimit[2];
60  uint32_t _dcmLimit[2];
61  uint32_t _dcmportLimit[2];
62  uint32_t _pixelLimit[2];
63 
64  };
65 } // end of namespace rawp
66 
67 #endif // RAWP_CHECKDAQCHANNELMAPS_H
68 ////////////////////////////////////////////////////////////////////////
diblock
print "ROW IS " print row
Definition: geo2elec.py:31
c1 Update()
A module to process the Flat files.
Diblock ID, (6bit), valid range 1-15.
int evt
Detector ID, (4bit), valid range 1-4.
DCM ID, (6bit), valid range 1-384.
const XML_Char * version
Definition: expat.h:187