CMS 3D CMS Logo

DTLocalTrigger.h
Go to the documentation of this file.
1 #ifndef DTLocalTrigger_DTLocalTrigger_h
2 #define DTLocalTrigger_DTLocalTrigger_h
3 
13 #include <boost/cstdint.hpp>
14 
16 
17 public:
18 
19 
21  explicit DTLocalTrigger (int eventBx, int bx, int data);
22 
23 
25  DTLocalTrigger ();
26 
28  bool operator==(const DTLocalTrigger& trig) const;
29 
30 
31  uint16_t eventBx() const;
32  uint16_t bx() const;
33  uint16_t quality() const;
34  uint16_t trTheta() const;
35  bool secondTrack() const;
36  bool trOut() const;
37 
38 
40  void print() const;
41 
42 
43  private:
44 
45  uint16_t theEventBX;
46  uint16_t theBX;
47  uint16_t theData;
48 };
49 
50 #include<iostream>
51 inline std::ostream & operator<<(std::ostream & o, const DTLocalTrigger& trig) {
52  return o << " BX: " << trig.bx()
53  << " quality: " << trig.quality();
54 }
55 #endif
56 
uint16_t quality() const
uint16_t theData
bool trOut() const
uint16_t trTheta() const
std::ostream & operator<<(std::ostream &o, const DTLocalTrigger &trig)
bool operator==(const DTLocalTrigger &trig) const
triggers are equal if they are in the same chamber and have same BX count (??)
uint16_t theEventBX
DTLocalTrigger()
Default construction.
void print() const
Print content of trigger.
bool secondTrack() const
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
uint16_t bx() const
uint16_t eventBx() const