#include <DTLocalTrigger.h>
Public Member Functions | |
uint16_t | bx () const |
DTLocalTrigger (int eventBx, int bx, int data) | |
Constructor. | |
DTLocalTrigger () | |
Default construction. | |
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 (??) | |
void | print () const |
Print content of trigger. | |
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 |
DTLocalTrigger::DTLocalTrigger | ( | int | eventBx, |
int | bx, | ||
int | data | ||
) | [explicit] |
Constructor.
Definition at line 15 of file DTLocalTrigger.cc.
DTLocalTrigger::DTLocalTrigger | ( | ) |
Default construction.
Definition at line 22 of file DTLocalTrigger.cc.
: theEventBX(0), theBX (0), theData(0) {}
uint16_t DTLocalTrigger::bx | ( | ) | const |
Definition at line 39 of file DTLocalTrigger.cc.
References theBX.
Referenced by operator<<(), operator==(), print(), and DTLocalTriggerTask::runDDUvsDCCAnalysis().
{ return theBX; }
uint16_t DTLocalTrigger::eventBx | ( | ) | const |
bool DTLocalTrigger::operator== | ( | const DTLocalTrigger & | trig | ) | const |
void DTLocalTrigger::print | ( | void | ) | const |
Print content of trigger.
Definition at line 60 of file DTLocalTrigger.cc.
References bx(), gather_cfg::cout, quality(), secondTrack(), theData, trOut(), and trTheta().
Referenced by DTROS25Unpacker::interpretRawData().
{ cout << " trigger at BX "<<bx()<<": "<<theData; if (secondTrack()) cout << " IT IS A SECOND TRACK !! "; cout << " Quality "<<quality(); if (trTheta() == 1) cout << " with a low Theta trigger "; if (trTheta() == 3) cout << " with a high Theta trigger "; if (trOut()) cout << " Trigger Out set "; cout << endl; }
uint16_t DTLocalTrigger::quality | ( | ) | const |
Definition at line 41 of file DTLocalTrigger.cc.
References theData.
Referenced by operator<<(), operator==(), and print().
{ return ( (theData & 0xE) >> 1 ); }
bool DTLocalTrigger::secondTrack | ( | ) | const |
Definition at line 48 of file DTLocalTrigger.cc.
References theData.
Referenced by print(), and DTLocalTriggerTask::runDDUvsDCCAnalysis().
{ return ( theData & 0x1 ); }
bool DTLocalTrigger::trOut | ( | ) | const |
Definition at line 51 of file DTLocalTrigger.cc.
References theData.
Referenced by print().
{ return ( (theData & 0x40) >> 6 ); }
uint16_t DTLocalTrigger::trTheta | ( | ) | const |
Definition at line 44 of file DTLocalTrigger.cc.
References theData.
Referenced by print().
{ return ( (theData & 0x30) >> 4 ); }
uint16_t DTLocalTrigger::theBX [private] |
Definition at line 47 of file DTLocalTrigger.h.
Referenced by bx(), and operator==().
uint16_t DTLocalTrigger::theData [private] |
Definition at line 48 of file DTLocalTrigger.h.
Referenced by print(), quality(), secondTrack(), trOut(), and trTheta().
uint16_t DTLocalTrigger::theEventBX [private] |
Definition at line 46 of file DTLocalTrigger.h.
Referenced by eventBx().