CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DTBtiTrig.cc
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
3 // Class: DTBtiTrig
4 //
5 // Description: BTI Trigger Data
6 //
7 //
8 // Author List:
9 // C. Grandi
10 // Modifications:
11 //
12 //
13 //--------------------------------------------------
14 
15 //#include "Utilities/Configuration/interface/Architecture.h"
16 
17 //-----------------------
18 // This Class's Header --
19 //-----------------------
22 
23 //-------------------------------
24 // Collaborating Class Headers --
25 //-------------------------------
28 //---------------
29 // C++ Headers --
30 //---------------
31 
32 //----------------
33 // Constructors --
34 //----------------
36  // reserve the appropriate amount of space for vectors
37  _digi.reserve(4);
38  clear();
39 }
40 
41 DTBtiTrig::DTBtiTrig(DTBtiChip* tparent, int step) : _tparent(tparent) {
42  // reserve the appropriate amount of space for vectors
43  _digi.reserve(4);
44  clear();
45 
46  // data part of the trigger
47  _data.setStep(step);
48  _data.setParent(tparent->id());
49 }
50 
51 DTBtiTrig::DTBtiTrig(DTBtiChip* tparent, int code, int K, int X, int step, int eq) : _tparent(tparent) {
52  // reserve the appropriate amount of space for vectors
53  _digi.reserve(4);
54 
55  // data part of the trigger
56  _data.setStep(step);
57  _data.setParent(tparent->id());
58  _data.setCode(code);
59  _data.setK(K);
60  _data.setX(X);
61  _data.setEq(eq);
62 }
63 
64 DTBtiTrig::DTBtiTrig(DTBtiChip* tparent, int code, int K, int X, int step, int eq, int str, float* Keq)
65  : _tparent(tparent) {
66  // reserve the appropriate amount of space for vectors
67  _digi.reserve(4);
68 
69  // data part of the trigger
70  _data.setStep(step);
71  _data.setParent(tparent->id());
72  _data.setCode(code);
73  _data.setK(K);
74  _data.setX(X);
75  _data.setEq(eq);
76  _data.setStrobe(str);
77  _data.setKeq(0, Keq[0]);
78  _data.setKeq(1, Keq[1]);
79  _data.setKeq(2, Keq[2]);
80  _data.setKeq(3, Keq[3]);
81  _data.setKeq(4, Keq[4]);
82  _data.setKeq(5, Keq[5]);
83 }
84 
85 DTBtiTrig::DTBtiTrig(DTBtiChip* parent, DTBtiTrigData data) : _tparent(parent), _data(data) {
86  // reserve the appropriate amount of space for vectors
87  _digi.reserve(4);
88 }
89 
90 //--------------
91 // Destructor --
92 //--------------
void setStep(int step)
Set trigger step.
Definition: DTBtiTrigData.h:51
void clear()
Clear.
Definition: DTBtiTrig.h:82
void setK(int k)
Set trigger K parameter.
Definition: DTBtiTrigData.h:57
#define X(str)
Definition: MuonsGrabber.cc:38
~DTBtiTrig() override
Destructor.
Definition: DTBtiTrig.cc:93
void setParent(DTBtiId btiid)
Set the parent BTI identifier.
Definition: DTBtiTrigData.h:48
DTBtiId id() const
Return the DTBtiChip Id.
Definition: DTBtiChip.h:125
void setCode(int code)
Set trigger code.
Definition: DTBtiTrigData.h:54
DTBtiTrigData _data
Definition: DTBtiTrig.h:130
void setKeq(int num, float Keq)
Set trigger _Keq.
Definition: DTBtiTrigData.h:69
DTBtiTrig()
Constructor.
Definition: DTBtiTrig.cc:35
void setStrobe(int str)
Set trigger strobe.
Definition: DTBtiTrigData.h:66
std::vector< const DTDigi * > _digi
Definition: DTBtiTrig.h:133
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
void setEq(int eq)
Set triggering equation.
Definition: DTBtiTrigData.h:63
step
Definition: StallMonitor.cc:94
void setX(int x)
Set trigger X parameter.
Definition: DTBtiTrigData.h:60
#define str(s)