CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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

Date:
2009/04/03 13:53:46
Author
FRC

Definition at line 16 of file DTLocalTrigger.h.

Constructor & Destructor Documentation

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

Constructor.

Definition at line 15 of file DTLocalTrigger.cc.

15  :
17  theBX (bx),
18  theData(data)
19 {}
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 22 of file DTLocalTrigger.cc.

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

Member Function Documentation

uint16_t DTLocalTrigger::bx ( ) const

Definition at line 39 of file DTLocalTrigger.cc.

References theBX.

Referenced by operator<<(), operator==(), print(), and DTLocalTriggerTask::runDDUvsDCCAnalysis().

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

Definition at line 74 of file DTLocalTrigger.cc.

References theEventBX.

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

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

30  {
31  if ( theBX != trig.bx() ||
32  this->quality() != trig.quality() ) return false;
33  return true;
34 }
uint16_t quality() const
uint16_t bx() 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().

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

Definition at line 41 of file DTLocalTrigger.cc.

References theData.

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

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

Definition at line 48 of file DTLocalTrigger.cc.

References theData.

Referenced by print(), and DTLocalTriggerTask::runDDUvsDCCAnalysis().

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

Definition at line 51 of file DTLocalTrigger.cc.

References theData.

Referenced by print().

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

Definition at line 44 of file DTLocalTrigger.cc.

References theData.

Referenced by print().

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

Member Data Documentation

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