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::DTLocalTrigger ( int  eventBx,
int  bx,
int  data 
)
explicit

Constructor.

Definition at line 14 of file DTLocalTrigger.cc.

14  :
16  theBX (bx),
17  theData(data)
18 {}
uint16_t theData
uint16_t theEventBX
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
uint16_t bx() const
uint16_t eventBx() const
DTLocalTrigger::DTLocalTrigger ( )

Default construction.

Definition at line 21 of file DTLocalTrigger.cc.

21  :
22  theEventBX(0),
23  theBX (0),
24  theData(0)
25 {}
uint16_t theData
uint16_t theEventBX

Member Function Documentation

uint16_t DTLocalTrigger::bx ( ) const

Definition at line 38 of file DTLocalTrigger.cc.

References theBX.

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

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

Definition at line 73 of file DTLocalTrigger.cc.

References theEventBX.

73  {
74  return theEventBX;
75 }
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 29 of file DTLocalTrigger.cc.

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

29  {
30  if ( theBX != trig.bx() ||
31  this->quality() != trig.quality() ) return false;
32  return true;
33 }
uint16_t quality() const
uint16_t bx() const
void DTLocalTrigger::print ( void  ) const

Print content of trigger.

Definition at line 59 of file DTLocalTrigger.cc.

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

Referenced by DTROS25Unpacker::interpretRawData().

59  {
60  cout << " trigger at BX "<<bx()<<": "<<theData;
61  if (secondTrack())
62  cout << " IT IS A SECOND TRACK !! ";
63  cout << " Quality "<<quality();
64  if (trTheta() == 1)
65  cout << " with a low Theta trigger ";
66  if (trTheta() == 3)
67  cout << " with a high Theta trigger ";
68  if (trOut())
69  cout << " Trigger Out set ";
70  cout << endl;
71 }
uint16_t quality() const
uint16_t theData
bool trOut() const
uint16_t trTheta() const
bool secondTrack() const
uint16_t bx() const
uint16_t DTLocalTrigger::quality ( ) const

Definition at line 40 of file DTLocalTrigger.cc.

References theData.

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

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

Definition at line 47 of file DTLocalTrigger.cc.

References theData, and globals_cff::x1.

Referenced by print().

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

Definition at line 50 of file DTLocalTrigger.cc.

References theData.

Referenced by print().

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

Definition at line 43 of file DTLocalTrigger.cc.

References theData.

Referenced by print().

43  {
44  return ( (theData & 0x30) >> 4 );
45 }
uint16_t theData

Member Data Documentation

uint16_t DTLocalTrigger::theBX
private

Definition at line 46 of file DTLocalTrigger.h.

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

uint16_t DTLocalTrigger::theData
private

Definition at line 47 of file DTLocalTrigger.h.

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

uint16_t DTLocalTrigger::theEventBX
private

Definition at line 45 of file DTLocalTrigger.h.

Referenced by eventBx().