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
int runtype_
Definition: ESUnpacker.h:54
int vmajor_
Definition: ESUnpacker.h:58
bool debug_
Definition: ESUnpacker.h:64
int run_number_
Definition: ESUnpacker.h:47
edm::FileInPath lookup_
Definition: ESUnpacker.h:65
void setOrbitNumber(int i)
Definition: ESUnpacker.h:38
int fedId_
Definition: ESUnpacker.h:46
int optoRX0_
Definition: ESUnpacker.h:59
int y_[4288][4]
Definition: ESUnpacker.h:72
void setBX(int i)
Definition: ESUnpacker.h:39
void setRunNumber(int i)
Definition: ESUnpacker.h:37
unsigned int Word32
Definition: ESUnpacker.h:24
Word64 m5
Definition: ESUnpacker.h:70
int x_[4288][4]
Definition: ESUnpacker.h:72
Word64 m12
Definition: ESUnpacker.h:70
void setTriggerType(int i)
Definition: ESUnpacker.h:41
ESUnpacker(const edm::ParameterSet &ps)
Definition: ESUnpacker.cc:10
int zside_[4288][4]
Definition: ESUnpacker.h:72
uint64_t word
int seqtype_
Definition: ESUnpacker.h:55
int optoRX2_
Definition: ESUnpacker.h:61
void setLV1(int i)
Definition: ESUnpacker.h:40
Word64 m1
Definition: ESUnpacker.h:70
int vminor_
Definition: ESUnpacker.h:57
Word64 m32
Definition: ESUnpacker.h:70
Word64 m2
Definition: ESUnpacker.h:70
int optoRX1_
Definition: ESUnpacker.h:60
void interpretRawData(int fedId, const FEDRawData &rawData, ESRawDataCollection &dccs, ESLocalRawDataCollection &kchips, ESDigiCollection &digis)
Definition: ESUnpacker.cc:49
void word2digi(int kchip, int kPACE[4], const Word64 &word, ESDigiCollection &digis)
Definition: ESUnpacker.cc:292
int precision_
Definition: ESUnpacker.h:53
int pl_[4288][4]
Definition: ESUnpacker.h:72
Word64 m8
Definition: ESUnpacker.h:70
int FEch_[36]
Definition: ESUnpacker.h:62
Word64 m6
Definition: ESUnpacker.h:70
const edm::ParameterSet pset_
Definition: ESUnpacker.h:41
Word64 m16
Definition: ESUnpacker.h:70
unsigned long long Word64
Definition: ESUnpacker.h:25
int orbit_number_
Definition: ESUnpacker.h:48
int trgtype_
Definition: ESUnpacker.h:56
Word64 m4
Definition: ESUnpacker.h:70
std::string print(const Word64 &word) const
Definition: ESUnpacker.cc:346