CMS 3D CMS Logo

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() [1/2]

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

Constructor.

Definition at line 11 of file DTLocalTrigger.cc.

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

◆ DTLocalTrigger() [2/2]

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

◆ bx()

uint16_t DTLocalTrigger::bx ( ) const

Definition at line 24 of file DTLocalTrigger.cc.

References theBX.

Referenced by print().

24 { return theBX; }

◆ eventBx()

uint16_t DTLocalTrigger::eventBx ( ) const

Definition at line 50 of file DTLocalTrigger.cc.

References theEventBX.

50 { return theEventBX; }
uint16_t theEventBX

◆ operator==()

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 quality(), theBX, and ClusterTask_cfi::trig.

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

◆ print()

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 }
bool trOut() const
uint16_t theData
uint16_t quality() const
bool secondTrack() const
uint16_t trTheta() const
uint16_t bx() const

◆ quality()

uint16_t DTLocalTrigger::quality ( ) const

Definition at line 26 of file DTLocalTrigger.cc.

References theData.

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

26 { return ((theData & 0xE) >> 1); }
uint16_t theData

◆ secondTrack()

bool DTLocalTrigger::secondTrack ( ) const

Definition at line 29 of file DTLocalTrigger.cc.

References theData, and testProducerWithPsetDescEmpty_cfi::x1.

Referenced by print().

◆ trOut()

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

◆ trTheta()

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

◆ theBX

uint16_t DTLocalTrigger::theBX
private

Definition at line 38 of file DTLocalTrigger.h.

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

◆ theData

uint16_t DTLocalTrigger::theData
private

Definition at line 39 of file DTLocalTrigger.h.

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

◆ theEventBX

uint16_t DTLocalTrigger::theEventBX
private

Definition at line 37 of file DTLocalTrigger.h.

Referenced by eventBx().