CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ESUnpacker.h
Go to the documentation of this file.
1 #ifndef ESUNPACKER_H
2 #define ESUNPCAKER_H
3 
4 #include <iostream>
5 #include <vector>
6 #include <bitset>
7 #include <sstream>
8 #include <map>
9 
19 
20 
21 
22 
23 class ESDigiToRaw;
24 
25 class ESUnpacker {
26 
27  public :
28 
29  typedef unsigned int Word32;
30  typedef unsigned long long Word64;
31 
32  ESUnpacker(const edm::ParameterSet& ps);
33  ~ESUnpacker();
34 
35  void interpretRawData(int fedId, const FEDRawData & rawData, ESRawDataCollection & dccs, ESLocalRawDataCollection & kchips, ESDigiCollection & digis);
36  void word2digi(int kchip, int kPACE[4], const Word64 & word, ESDigiCollection & digis);
37 
38  void setRunNumber(int i) {run_number_ = i;};
39  void setOrbitNumber(int i) {orbit_number_ = i;};
40  void setBX(int i) {bx_ = i;};
41  void setLV1(int i) {lv1_ = i;};
42  void setTriggerType(int i) {trgtype_ = i;};
43 
44  private :
45 
47 
48  int fedId_;
51  int bx_;
52  int lv1_;
53  int dac_;
54  int gain_;
56  int runtype_;
57  int seqtype_;
58  int trgtype_;
59  int vminor_;
60  int vmajor_;
61  int optoRX0_;
62  int optoRX1_;
63  int optoRX2_;
64  int FEch_[36];
65 
66  bool debug_;
68 
69  std::string print(const Word64 & word) const;
70 
71  protected :
72 
73  Word64 m1, m2, m4, m5, m6, m8, m12, m16, m32;
74 
75  int zside_[4288][4], pl_[4288][4], x_[4288][4], y_[4288][4];
76 
77 };
78 
79 #endif
int runtype_
Definition: ESUnpacker.h:56
int vmajor_
Definition: ESUnpacker.h:60
int i
Definition: DBlmapReader.cc:9
bool debug_
Definition: ESUnpacker.h:66
int run_number_
Definition: ESUnpacker.h:49
edm::FileInPath lookup_
Definition: ESUnpacker.h:67
void setOrbitNumber(int i)
Definition: ESUnpacker.h:39
int fedId_
Definition: ESUnpacker.h:48
int optoRX0_
Definition: ESUnpacker.h:61
int y_[4288][4]
Definition: ESUnpacker.h:75
void setBX(int i)
Definition: ESUnpacker.h:40
void setRunNumber(int i)
Definition: ESUnpacker.h:38
unsigned int Word32
Definition: ESUnpacker.h:29
Word64 m5
Definition: ESUnpacker.h:73
int x_[4288][4]
Definition: ESUnpacker.h:75
Word64 m12
Definition: ESUnpacker.h:73
void setTriggerType(int i)
Definition: ESUnpacker.h:42
ESUnpacker(const edm::ParameterSet &ps)
Definition: ESUnpacker.cc:10
int zside_[4288][4]
Definition: ESUnpacker.h:75
int seqtype_
Definition: ESUnpacker.h:57
int optoRX2_
Definition: ESUnpacker.h:63
void setLV1(int i)
Definition: ESUnpacker.h:41
Word64 m1
Definition: ESUnpacker.h:73
int vminor_
Definition: ESUnpacker.h:59
Word64 m32
Definition: ESUnpacker.h:73
Word64 m2
Definition: ESUnpacker.h:73
int optoRX1_
Definition: ESUnpacker.h:62
void interpretRawData(int fedId, const FEDRawData &rawData, ESRawDataCollection &dccs, ESLocalRawDataCollection &kchips, ESDigiCollection &digis)
Definition: ESUnpacker.cc:53
void word2digi(int kchip, int kPACE[4], const Word64 &word, ESDigiCollection &digis)
Definition: ESUnpacker.cc:255
int precision_
Definition: ESUnpacker.h:55
std::string print(const Word64 &word) const
Definition: ESUnpacker.cc:302
int pl_[4288][4]
Definition: ESUnpacker.h:75
Word64 m8
Definition: ESUnpacker.h:73
int FEch_[36]
Definition: ESUnpacker.h:64
Word64 m6
Definition: ESUnpacker.h:73
const edm::ParameterSet pset_
Definition: ESUnpacker.h:42
Word64 m16
Definition: ESUnpacker.h:73
unsigned long long Word64
Definition: ESUnpacker.h:30
int orbit_number_
Definition: ESUnpacker.h:50
int trgtype_
Definition: ESUnpacker.h:58
Word64 m4
Definition: ESUnpacker.h:73