CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 
37  // reserve the appropriate amount of space for vectors
38  _digi.reserve(4);
39  clear();
40 
41 }
42 
44  _tparent(tparent) {
45 
46  // reserve the appropriate amount of space for vectors
47  _digi.reserve(4);
48  clear();
49 
50  // data part of the trigger
51  _data.setStep(step);
52  _data.setParent(tparent->id());
53 
54 }
55 
57  int code, int K, int X, int step, int eq) :
58  _tparent(tparent) {
59 
60  // reserve the appropriate amount of space for vectors
61  _digi.reserve(4);
62 
63  // data part of the trigger
64  _data.setStep(step);
65  _data.setParent(tparent->id());
66  _data.setCode(code);
67  _data.setK(K);
68  _data.setX(X);
69  _data.setEq(eq);
70 
71 }
72 
74  int code, int K, int X, int step, int eq, int str, float* Keq) :
75  _tparent(tparent) {
76 
77  // reserve the appropriate amount of space for vectors
78  _digi.reserve(4);
79 
80  // data part of the trigger
81  _data.setStep(step);
82  _data.setParent(tparent->id());
83  _data.setCode(code);
84  _data.setK(K);
85  _data.setX(X);
86  _data.setEq(eq);
87  _data.setStrobe(str);
88  _data.setKeq(0,Keq[0]);
89  _data.setKeq(1,Keq[1]);
90  _data.setKeq(2,Keq[2]);
91  _data.setKeq(3,Keq[3]);
92  _data.setKeq(4,Keq[4]);
93  _data.setKeq(5,Keq[5]);
94 
95 
96 }
97 
99  _tparent(parent), _data(data) {
100 
101  // reserve the appropriate amount of space for vectors
102  _digi.reserve(4);
103 
104 }
105 
106 //--------------
107 // Destructor --
108 //--------------
110 }
void setStep(int step)
Set trigger step.
Definition: DTBtiTrigData.h:55
void clear()
Clear.
Definition: DTBtiTrig.h:99
~DTBtiTrig()
Destructor.
Definition: DTBtiTrig.cc:109
void setK(int k)
Set trigger K parameter.
Definition: DTBtiTrigData.h:65
parent
Definition: confdb.py:1052
#define X(str)
Definition: MuonsGrabber.cc:48
void setParent(DTBtiId btiid)
Set the parent BTI identifier.
Definition: DTBtiTrigData.h:50
DTBtiId id() const
Return the DTBtiChip Id.
Definition: DTBtiChip.h:124
void setCode(int code)
Set trigger code.
Definition: DTBtiTrigData.h:60
DTBtiTrigData _data
Definition: DTBtiTrig.h:172
void setKeq(int num, float Keq)
Set trigger _Keq.
Definition: DTBtiTrigData.h:85
DTBtiTrig()
Constructor.
Definition: DTBtiTrig.cc:35
void setStrobe(int str)
Set trigger strobe.
Definition: DTBtiTrigData.h:80
std::vector< const DTDigi * > _digi
Definition: DTBtiTrig.h:175
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
void setEq(int eq)
Set triggering equation.
Definition: DTBtiTrigData.h:75
void setX(int x)
Set trigger X parameter.
Definition: DTBtiTrigData.h:70