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 ()
 Default construction. More...
 
 DTLocalTrigger (int eventBx, int bx, int data)
 Constructor. 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.

◆ DTLocalTrigger() [2/2]

DTLocalTrigger::DTLocalTrigger ( )

Default construction.

Definition at line 13 of file DTLocalTrigger.cc.

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

Member Function Documentation

◆ bx()

uint16_t DTLocalTrigger::bx ( ) const

Definition at line 24 of file DTLocalTrigger.cc.

24 { return theBX; }

References theBX.

Referenced by print().

◆ eventBx()

uint16_t DTLocalTrigger::eventBx ( ) const

Definition at line 50 of file DTLocalTrigger.cc.

50 { return theEventBX; }

References 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.

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

References quality(), theBX, and ClusterTask_cfi::trig.

◆ print()

void DTLocalTrigger::print ( void  ) const

Print content of trigger.

Definition at line 36 of file DTLocalTrigger.cc.

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 }

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

Referenced by DTROS25Unpacker::interpretRawData().

◆ quality()

uint16_t DTLocalTrigger::quality ( ) const

Definition at line 26 of file DTLocalTrigger.cc.

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

References theData.

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

◆ secondTrack()

bool DTLocalTrigger::secondTrack ( ) const

Definition at line 29 of file DTLocalTrigger.cc.

29 { return (theData & 0x1); }

References theData, and testProducerWithPsetDescEmpty_cfi::x1.

Referenced by print().

◆ trOut()

bool DTLocalTrigger::trOut ( ) const

Definition at line 30 of file DTLocalTrigger.cc.

30 { return ((theData & 0x40) >> 6); }

References theData.

Referenced by print().

◆ trTheta()

uint16_t DTLocalTrigger::trTheta ( ) const

Definition at line 27 of file DTLocalTrigger.cc.

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

References theData.

Referenced by print().

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().

gather_cfg.cout
cout
Definition: gather_cfg.py:144
DTLocalTrigger::theBX
uint16_t theBX
Definition: DTLocalTrigger.h:38
DTLocalTrigger::theData
uint16_t theData
Definition: DTLocalTrigger.h:39
DTLocalTrigger::trTheta
uint16_t trTheta() const
Definition: DTLocalTrigger.cc:27
testProducerWithPsetDescEmpty_cfi.x1
x1
Definition: testProducerWithPsetDescEmpty_cfi.py:33
DTLocalTrigger::secondTrack
bool secondTrack() const
Definition: DTLocalTrigger.cc:29
DTLocalTrigger::bx
uint16_t bx() const
Definition: DTLocalTrigger.cc:24
DTLocalTrigger::theEventBX
uint16_t theEventBX
Definition: DTLocalTrigger.h:37
ClusterTask_cfi.trig
trig
Definition: ClusterTask_cfi.py:336
DTLocalTrigger::trOut
bool trOut() const
Definition: DTLocalTrigger.cc:30
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
DTLocalTrigger::eventBx
uint16_t eventBx() const
Definition: DTLocalTrigger.cc:50
DTLocalTrigger::quality
uint16_t quality() const
Definition: DTLocalTrigger.cc:26