CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
DTLocalTrigger Class Reference

#include <DTLocalTrigger.h>

Public Member Functions

uint16_t bx () const
 
 DTLocalTrigger (int eventBx, int bx, int data)
 Constructor. More...
 
 DTLocalTrigger ()
 Default construction. More...
 
uint16_t eventBx () const
 
bool operator== (const DTLocalTrigger &trig) const
 triggers are equal if they are in the same chamber and have same BX count (??) More...
 
void print () const
 Print content of trigger. More...
 
uint16_t quality () const
 
bool secondTrack () const
 
bool trOut () const
 
uint16_t trTheta () const
 

Private Attributes

uint16_t theBX
 
uint16_t theData
 
uint16_t theEventBX
 

Detailed Description

Trigger from DT chamber

Author
FRC

Definition at line 15 of file DTLocalTrigger.h.

Constructor & Destructor Documentation

DTLocalTrigger::DTLocalTrigger ( int  eventBx,
int  bx,
int  data 
)
explicit

Constructor.

Definition at line 11 of file DTLocalTrigger.cc.

uint16_t theData
uint16_t theEventBX
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
uint16_t bx() const
uint16_t eventBx() const
DTLocalTrigger::DTLocalTrigger ( )

Default construction.

Definition at line 13 of file DTLocalTrigger.cc.

13 : theEventBX(0), theBX(0), theData(0) {}
uint16_t theData
uint16_t theEventBX

Member Function Documentation

uint16_t DTLocalTrigger::bx ( ) const

Definition at line 24 of file DTLocalTrigger.cc.

References theBX.

Referenced by operator<<(), operator==(), and print().

24 { return theBX; }
uint16_t DTLocalTrigger::eventBx ( ) const

Definition at line 50 of file DTLocalTrigger.cc.

References theEventBX.

50 { return theEventBX; }
uint16_t theEventBX
bool DTLocalTrigger::operator== ( const DTLocalTrigger trig) const

triggers are equal if they are in the same chamber and have same BX count (??)

Definition at line 16 of file DTLocalTrigger.cc.

References bx(), quality(), and theBX.

16  {
17  if (theBX != trig.bx() || this->quality() != trig.quality())
18  return false;
19  return true;
20 }
uint16_t quality() const
uint16_t bx() const
void DTLocalTrigger::print ( void  ) const

Print content of trigger.

Definition at line 36 of file DTLocalTrigger.cc.

References bx(), gather_cfg::cout, quality(), secondTrack(), theData, trOut(), and trTheta().

Referenced by DTROS25Unpacker::interpretRawData().

36  {
37  cout << " trigger at BX " << bx() << ": " << theData;
38  if (secondTrack())
39  cout << " IT IS A SECOND TRACK !! ";
40  cout << " Quality " << quality();
41  if (trTheta() == 1)
42  cout << " with a low Theta trigger ";
43  if (trTheta() == 3)
44  cout << " with a high Theta trigger ";
45  if (trOut())
46  cout << " Trigger Out set ";
47  cout << endl;
48 }
uint16_t quality() const
uint16_t theData
bool trOut() const
uint16_t trTheta() const
bool secondTrack() const
tuple cout
Definition: gather_cfg.py:144
uint16_t bx() const
uint16_t DTLocalTrigger::quality ( ) const

Definition at line 26 of file DTLocalTrigger.cc.

References theData.

Referenced by operator<<(), operator==(), and print().

26 { return ((theData & 0xE) >> 1); }
uint16_t theData
bool DTLocalTrigger::secondTrack ( ) const

Definition at line 29 of file DTLocalTrigger.cc.

References theData.

Referenced by print().

29 { return (theData & 0x1); }
uint16_t theData
bool DTLocalTrigger::trOut ( ) const

Definition at line 30 of file DTLocalTrigger.cc.

References theData.

Referenced by print().

30 { return ((theData & 0x40) >> 6); }
uint16_t theData
uint16_t DTLocalTrigger::trTheta ( ) const

Definition at line 27 of file DTLocalTrigger.cc.

References theData.

Referenced by print().

27 { return ((theData & 0x30) >> 4); }
uint16_t theData

Member Data Documentation

uint16_t DTLocalTrigger::theBX
private

Definition at line 38 of file DTLocalTrigger.h.

Referenced by bx(), and operator==().

uint16_t DTLocalTrigger::theData
private

Definition at line 39 of file DTLocalTrigger.h.

Referenced by print(), quality(), secondTrack(), trOut(), and trTheta().

uint16_t DTLocalTrigger::theEventBX
private

Definition at line 37 of file DTLocalTrigger.h.

Referenced by eventBx().