CMS 3D CMS Logo

DTBtiTrigData.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
14 //
15 //--------------------------------------------------
16 #ifndef DT_BTI_TRIG_DATA_H
17 #define DT_BTI_TRIG_DATA_H
18 
19 //------------------------------------
20 // Collaborating Class Declarations --
21 //------------------------------------
23 
24 //----------------------
25 // Base Class Headers --
26 //----------------------
28 
29 //---------------
30 // C++ Headers --
31 //---------------
32 
33 // ---------------------
34 // -- Class Interface --
35 // ---------------------
36 
37 typedef unsigned char myint8;
38 
39 class DTBtiTrigData : public DTTrigData {
40 
41  public:
42 
45 
47  ~DTBtiTrigData() override {}
48 
50  inline void setParent(DTBtiId btiid) {
51  _btiid = btiid;
52  }
53 
55  inline void setStep(int step) {
56  _step = step;
57  }
58 
60  inline void setCode(int code) {
61  _code = code;
62  }
63 
65  inline void setK(int k) {
66  _Kval = k;
67  }
68 
70  inline void setX(int x) {
71  _Xval = x;
72  }
73 
75  inline void setEq(int eq) {
76  _eq = eq;
77  }
78 
80  inline void setStrobe(int str) {
81  _str = str;
82  }
83 
85  inline void setKeq(int num, float Keq) {
86  _Keq[num] = Keq;
87  }
88 
90  void clear() {
91  _step = 0;
92  _eq = 0;
93  _code = 0;
94  _Kval = 9999;
95  _Xval = 0;
96  _str = -1;
97  for(int j=0;j<6;j++)
98  _Keq[j]=-1;
99  }
100 
102  DTChamberId ChamberId() const override {
104  }
105 
107  void print() const override;
108 
110  inline DTBtiId parentId() const {
111  return _btiid;
112  }
113 
115  inline DTSuperLayerId SLId() const {
116  return _btiid.SLId();
117  }
118 
120  inline int btiNumber() const {
121  return _btiid.bti();
122  }
123 
125  inline int btiSL() const {
126  return _btiid.superlayer();
127  }
128 
130  inline int step() const {
131  return _step;
132  }
133 
135  inline int code() const {
136  return _code;
137  }
138 
140  inline int K() const {
141  return _Kval;
142  }
143 
145  inline int X() const {
146  return _Xval;
147  }
148 
150  inline int eq() const {
151  return _eq;
152  }
153 
155  inline int Strobe() const{
156  return _str;
157  }
158 
160  inline float Keq(int i) const {
161  return _Keq[i];
162  }
163 
164  private:
165 
166  // Parent BTI identifier
167  DTBtiId _btiid; // this is 5 bytes
168 
169  // output values
171  int _Kval;
173 
176  int _str;
177  float _Keq[6];
178 
179 };
180 
181 #endif
void setStep(int step)
Set trigger step.
Definition: DTBtiTrigData.h:55
void setK(int k)
Set trigger K parameter.
Definition: DTBtiTrigData.h:65
int eq() const
Return triggering equation.
DTBtiId parentId() const
Return parent BTI identifier.
void setParent(DTBtiId btiid)
Set the parent BTI identifier.
Definition: DTBtiTrigData.h:50
DTBtiTrigData()
Constructor.
Definition: DTBtiTrigData.h:44
void setCode(int code)
Set trigger code.
Definition: DTBtiTrigData.h:60
int X() const
Return trigger X parameter.
int wheel() const
Returns wheel number.
Definition: DTBtiId.h:67
int superlayer() const
Returns the superlayer.
Definition: DTBtiId.h:73
DTChamberId ChamberId() const override
Return chamber identifier.
int sector() const
Returns sector number.
Definition: DTBtiId.h:71
void setKeq(int num, float Keq)
Set trigger _Keq.
Definition: DTBtiTrigData.h:85
int Strobe() const
Return trigger strobe.
int station() const
Returns station number.
Definition: DTBtiId.h:69
void print() const override
Print.
unsigned char myint8
int btiNumber() const
Return parent BTI number.
int k[5][pyjets_maxn]
int bti() const
Returns the bti.
Definition: DTBtiId.h:75
void clear()
Clear.
Definition: DTBtiTrigData.h:90
float Keq(int i) const
Return triggering K equations.
int btiSL() const
Return parent BTI superlayer.
void setStrobe(int str)
Set trigger strobe.
Definition: DTBtiTrigData.h:80
unsigned char myint8
Definition: DTBtiTrigData.h:37
int K() const
Return trigger K parameter.
~DTBtiTrigData() override
Destructor.
Definition: DTBtiTrigData.h:47
void setEq(int eq)
Set triggering equation.
Definition: DTBtiTrigData.h:75
step
Definition: StallMonitor.cc:94
void setX(int x)
Set trigger X parameter.
Definition: DTBtiTrigData.h:70
#define str(s)
DTSuperLayerId SLId() const
Return superlayer identifier.
DTSuperLayerId SLId() const
Returns the superlayer id.
Definition: DTBtiId.h:77
int step() const
Return trigger step.
int code() const
Return trigger code.