CMS 3D CMS Logo

Public Member Functions | Private Attributes

DTLocalTrigger Class Reference

#include <DTLocalTrigger.h>

List of all members.

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

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.

DTLocalTrigger::DTLocalTrigger ( )

Default construction.

Definition at line 22 of file DTLocalTrigger.cc.

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

Member Function Documentation

uint16_t DTLocalTrigger::bx ( ) const
uint16_t DTLocalTrigger::eventBx ( ) const

Definition at line 74 of file DTLocalTrigger.cc.

References theEventBX.

                                       {
  return 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.

                                                                  {
  if ( theBX != trig.bx() ||
       this->quality() != trig.quality() ) return false;
  return true;
}
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 );
}

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