CMS 3D CMS Logo

DTBtiTrig.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
14 //
15 //--------------------------------------------------
16 #ifndef DT_BTI_TRIG_H
17 #define DT_BTI_TRIG_H
18 
19 //------------------------------------
20 // Collaborating Class Declarations --
21 //------------------------------------
22 class DTDigi;
23 class DTBtiChip;
24 
25 //----------------------
26 // Base Class Headers --
27 //----------------------
30 
31 //---------------
32 // C++ Headers --
33 //---------------
34 #include <vector>
35 
36 // ---------------------
37 // -- Class Interface --
38 // ---------------------
39 
40 class DTBtiTrig : public DTTrigData {
41 public:
43  DTBtiTrig();
44 
46  DTBtiTrig(DTBtiChip*, int);
47 
49  DTBtiTrig(DTBtiChip* tparent, int, int, int, int, int);
50 
52  DTBtiTrig(DTBtiChip* tparent, int, int, int, int, int, int, float*);
53 
56 
58  ~DTBtiTrig() override;
59 
61  inline void setParent(DTBtiChip* parent) { _tparent = parent; }
62 
64  inline void addDigi(const DTDigi* digi) { _digi.push_back(digi); }
65 
67  inline void setStep(int step) { _data.setStep(step); }
68 
70  inline void setCode(int code) { _data.setCode(code); }
71 
73  inline void setK(int k) { _data.setK(k); }
74 
76  inline void setX(int x) { _data.setX(x); }
77 
79  inline void setEq(int eq) { _data.setEq(eq); }
80 
82  inline void clear() {
83  _data.clear();
84  _digi.clear();
85  }
86 
87  // Const methods
88 
90  inline DTChamberId ChamberId() const override { return _data.ChamberId(); }
91 
93  inline void print() const override { _data.print(); }
94 
96  inline DTBtiChip* tParent() const { return _tparent; }
97 
99  inline DTBtiTrigData data() const { return _data; }
100 
102  inline int btiNumber() const { return _data.btiNumber(); }
103 
105  inline int btiSL() const { return _data.btiSL(); }
106 
108  inline int step() const { return _data.step(); }
109 
111  inline int code() const { return _data.code(); }
112 
114  inline int K() const { return _data.K(); }
115 
117  inline int X() const { return _data.X(); }
118 
120  inline int eq() const { return _data.eq(); }
121 
123  std::vector<const DTDigi*> digiList() const { return _digi; }
124 
125 private:
126  // Parent BTI
128 
129  // Trigger data component
131 
132  // vector of digi in the cells of the DTBtiChip trigger
133  std::vector<const DTDigi*> _digi;
134 };
135 #endif
int btiNumber() const
Return parent BTI number.
Definition: DTBtiTrigData.h:96
int btiSL() const
Return parent BTI superlayer.
Definition: DTBtiTrigData.h:99
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
int eq() const
Return triggering equation.
Definition: DTBtiTrig.h:120
int X() const
Return trigger X parameter.
Definition: DTBtiTrig.h:117
DTChamberId ChamberId() const override
Return chamber identifier.
Definition: DTBtiTrig.h:90
void setEq(int eq)
Set triggering equation.
Definition: DTBtiTrig.h:79
int K() const
Return trigger K parameter.
void addDigi(const DTDigi *digi)
Add a digi to the list.
Definition: DTBtiTrig.h:64
std::vector< const DTDigi * > digiList() const
Return the digi list.
Definition: DTBtiTrig.h:123
int code() const
Return trigger code.
Definition: DTBtiTrig.h:111
void setCode(int code)
Set trigger code.
Definition: DTBtiTrig.h:70
~DTBtiTrig() override
Destructor.
Definition: DTBtiTrig.cc:93
DTBtiChip * tParent() const
Return parent BTI pointer.
Definition: DTBtiTrig.h:96
void print() const override
Print.
Definition: DTBtiTrig.h:93
void setCode(int code)
Set trigger code.
Definition: DTBtiTrigData.h:54
DTBtiChip * _tparent
Definition: DTBtiTrig.h:127
int code() const
Return trigger code.
DTBtiTrigData _data
Definition: DTBtiTrig.h:130
DTBtiTrigData data() const
Return the data part.
Definition: DTBtiTrig.h:99
Definition: DTDigi.h:17
int btiSL() const
Return parent BTI superlayer.
Definition: DTBtiTrig.h:105
DTBtiTrig()
Constructor.
Definition: DTBtiTrig.cc:35
int btiNumber() const
Return parent BTI number.
Definition: DTBtiTrig.h:102
void setK(int k)
Set trigger K parameter.
Definition: DTBtiTrig.h:73
void clear()
Clear.
Definition: DTBtiTrigData.h:72
int X() const
Return trigger X parameter.
int step() const
Return trigger step.
Definition: DTBtiTrig.h:108
void setStep(int step)
Set trigger step.
Definition: DTBtiTrig.h:67
void setParent(DTBtiChip *parent)
Set the parent DTBtiChip.
Definition: DTBtiTrig.h:61
std::vector< const DTDigi * > _digi
Definition: DTBtiTrig.h:133
DTChamberId ChamberId() const override
Return chamber identifier.
Definition: DTBtiTrigData.h:84
void setEq(int eq)
Set triggering equation.
Definition: DTBtiTrigData.h:63
void print() const override
Print.
step
Definition: StallMonitor.cc:98
void setX(int x)
Set trigger X parameter.
Definition: DTBtiTrigData.h:60
int eq() const
Return triggering equation.
int step() const
Return trigger step.
int K() const
Return trigger K parameter.
Definition: DTBtiTrig.h:114
void setX(int x)
Set trigger X parameter.
Definition: DTBtiTrig.h:76