CMS 3D CMS Logo

ESUnpacker.h
Go to the documentation of this file.
1 #ifndef EventFilter_ESRawToDigi_ESUnpacker_h
2 #define EventFilter_ESRawToDigi_ESUnpacker_h
3 
4 #include <iostream>
5 #include <vector>
6 #include <bitset>
7 #include <sstream>
8 #include <map>
9 
19 
20 class ESDigiToRaw;
21 
22 class ESUnpacker {
23 public:
24  typedef unsigned int Word32;
25  typedef unsigned long long Word64;
26 
27  ESUnpacker(const edm::ParameterSet& ps);
28  ~ESUnpacker();
29 
30  void interpretRawData(int fedId,
31  const FEDRawData& rawData,
32  ESRawDataCollection& dccs,
34  ESDigiCollection& digis);
35  void word2digi(int kchip, int kPACE[4], const Word64& word, ESDigiCollection& digis);
36 
37  void setRunNumber(int i) { run_number_ = i; };
38  void setOrbitNumber(int i) { orbit_number_ = i; };
39  void setBX(int i) { bx_ = i; };
40  void setLV1(int i) { lv1_ = i; };
41  void setTriggerType(int i) { trgtype_ = i; };
42 
43 private:
45 
46  int fedId_;
49  int bx_;
50  int lv1_;
51  int dac_;
52  int gain_;
54  int runtype_;
55  int seqtype_;
56  int trgtype_;
57  int vminor_;
58  int vmajor_;
59  int optoRX0_;
60  int optoRX1_;
61  int optoRX2_;
62  int FEch_[36];
63 
64  bool debug_;
66 
67  std::string print(const Word64& word) const;
68 
69 protected:
70  Word64 m1, m2, m4, m5, m6, m8, m12, m16, m32;
71 
72  int zside_[4288][4], pl_[4288][4], x_[4288][4], y_[4288][4];
73 };
74 
75 #endif
ESUnpacker::precision_
int precision_
Definition: ESUnpacker.h:53
mps_fire.i
i
Definition: mps_fire.py:355
ESUnpacker::optoRX2_
int optoRX2_
Definition: ESUnpacker.h:61
ESDigiToRaw
Definition: ESDigiToRaw.h:20
ESUnpacker::m8
Word64 m8
Definition: ESUnpacker.h:70
ESUnpacker::~ESUnpacker
~ESUnpacker()
Definition: ESUnpacker.cc:47
ESUnpacker::m16
Word64 m16
Definition: ESUnpacker.h:70
ESUnpacker::setBX
void setBX(int i)
Definition: ESUnpacker.h:39
ESUnpacker::Word32
unsigned int Word32
Definition: ESUnpacker.h:24
l1tstage2_dqm_sourceclient-live_cfg.rawData
rawData
Definition: l1tstage2_dqm_sourceclient-live_cfg.py:156
ESUnpacker::setLV1
void setLV1(int i)
Definition: ESUnpacker.h:40
edm::SortedCollection
Definition: SortedCollection.h:49
ESUnpacker::setRunNumber
void setRunNumber(int i)
Definition: ESUnpacker.h:37
ESUnpacker::zside_
int zside_[4288][4]
Definition: ESUnpacker.h:72
ESUnpacker::m5
Word64 m5
Definition: ESUnpacker.h:70
ESUnpacker::interpretRawData
void interpretRawData(int fedId, const FEDRawData &rawData, ESRawDataCollection &dccs, ESLocalRawDataCollection &kchips, ESDigiCollection &digis)
Definition: ESUnpacker.cc:49
FEDRawData.h
ESUnpacker::Word64
unsigned long long Word64
Definition: ESUnpacker.h:25
ESUnpacker::vmajor_
int vmajor_
Definition: ESUnpacker.h:58
FEDRawData
Definition: FEDRawData.h:19
FileInPath.h
word
uint64_t word
Definition: CTPPSTotemDataFormatter.cc:29
ESDataFrame.h
ESUnpacker::run_number_
int run_number_
Definition: ESUnpacker.h:47
ESUnpacker::dac_
int dac_
Definition: ESUnpacker.h:51
EcalRawDataCollections.h
edm::FileInPath
Definition: FileInPath.h:64
ESKCHIPBlock.h
ESUnpacker::gain_
int gain_
Definition: ESUnpacker.h:52
ESUnpacker::m12
Word64 m12
Definition: ESUnpacker.h:70
ESUnpacker::bx_
int bx_
Definition: ESUnpacker.h:49
EcalDigiCollections.h
ESUnpacker::setTriggerType
void setTriggerType(int i)
Definition: ESUnpacker.h:41
ESDigiCollection
Definition: EcalDigiCollections.h:58
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
ESUnpacker::optoRX1_
int optoRX1_
Definition: ESUnpacker.h:60
ESUnpacker::x_
int x_[4288][4]
Definition: ESUnpacker.h:72
edm::ParameterSet
Definition: ParameterSet.h:36
ESUnpacker::pl_
int pl_[4288][4]
Definition: ESUnpacker.h:72
ESUnpacker::m1
Word64 m1
Definition: ESUnpacker.h:70
FEDRawDataCollection.h
ESUnpacker::m32
Word64 m32
Definition: ESUnpacker.h:70
l1tstage2_dqm_sourceclient-live_cfg.fedId
fedId
Definition: l1tstage2_dqm_sourceclient-live_cfg.py:82
ESUnpacker::seqtype_
int seqtype_
Definition: ESUnpacker.h:55
ESUnpacker::lv1_
int lv1_
Definition: ESUnpacker.h:50
ESUnpacker::m6
Word64 m6
Definition: ESUnpacker.h:70
ESUnpacker::ESUnpacker
ESUnpacker(const edm::ParameterSet &ps)
Definition: ESUnpacker.cc:10
ESUnpacker::setOrbitNumber
void setOrbitNumber(int i)
Definition: ESUnpacker.h:38
ESUnpacker::vminor_
int vminor_
Definition: ESUnpacker.h:57
ESUnpacker::print
std::string print(const Word64 &word) const
Definition: ESUnpacker.cc:346
ESDCCHeaderBlock.h
ESUnpacker::fedId_
int fedId_
Definition: ESUnpacker.h:46
ESUnpacker::debug_
bool debug_
Definition: ESUnpacker.h:64
ESUnpacker::orbit_number_
int orbit_number_
Definition: ESUnpacker.h:48
ESUnpacker::optoRX0_
int optoRX0_
Definition: ESUnpacker.h:59
ESUnpacker::trgtype_
int trgtype_
Definition: ESUnpacker.h:56
ESUnpacker::y_
int y_[4288][4]
Definition: ESUnpacker.h:72
ESUnpacker::m4
Word64 m4
Definition: ESUnpacker.h:70
ESUnpacker::m2
Word64 m2
Definition: ESUnpacker.h:70
ParameterSet.h
ESUnpacker::word2digi
void word2digi(int kchip, int kPACE[4], const Word64 &word, ESDigiCollection &digis)
Definition: ESUnpacker.cc:292
ESUnpacker::lookup_
edm::FileInPath lookup_
Definition: ESUnpacker.h:65
ESUnpacker
Definition: ESUnpacker.h:22
ESUnpacker::runtype_
int runtype_
Definition: ESUnpacker.h:54
ESUnpacker::pset_
const edm::ParameterSet pset_
Definition: ESUnpacker.h:41
ESUnpacker::FEch_
int FEch_[36]
Definition: ESUnpacker.h:62