StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Static Protected Attributes | List of all members
StPicoMtdTrigger Class Reference

Class storing MTD trigger information including VPD, QT, MT101, TF201. More...

#include <StPicoMtdTrigger.h>

Inheritance diagram for StPicoMtdTrigger:

Public Member Functions

 StPicoMtdTrigger ()
 Default constructor.
 
 StPicoMtdTrigger (const StPicoMtdTrigger &trigger)
 Copy constructor.
 
virtual ~StPicoMtdTrigger ()
 Destructor.
 
virtual void Print (const Char_t *option="") const
 Print MTD trigger information.
 
UShort_t getVpdTacSum () const
 VPD tag sum.
 
UShort_t vpdTacSum () const
 VPD tag sum.
 
UInt_t getTHUBtime (const Int_t thub) const
 
UInt_t thubTime (const Int_t thub) const
 
UShort_t getQTtacSum (const Int_t qt, const Int_t pos) const
 
UShort_t qtTacSum (const Int_t qt, const Int_t pos) const
 
UShort_t getMT101Tac (const Int_t qt, const Int_t index) const
 
UShort_t mt101Tac (const Int_t qt, const Int_t index) const
 
UShort_t getMT101Id (const Int_t qt, const Int_t index) const
 
UShort_t mt101Id (const Int_t qt, const Int_t index) const
 
UInt_t getTF201TriggerBit () const
 
UInt_t tf201TriggerBit () const
 
void getMaximumQTtac (const Int_t qt, Int_t &pos1, Int_t &pos2)
 
Char_t shouldHaveRejectEvent ()
 
void setVpdTacSum (UShort_t tacSum)
 Set VPD TAC sum.
 
void setVpdTacSum (UShort_t tdcHighThrEast, UShort_t tdcHighThrWest)
 Set VPD TAC sum.
 
void setTHUBtime (Int_t thubID, UInt_t word)
 Set THUB time.
 
void setShouldHaveRejectEvent (Int_t val)
 Set should have reject event (retrieve from mtdHeader)
 
void setShouldHaveRejectEvent (Char_t val)
 Set should have reject event (retrieve from mtdHeader)
 
void setQTtacSum (Int_t runnumber, UShort_t mtdQTadc[8][16], UShort_t mtdQTtac[8][16], const Int_t QTtoModule[8][8], const Int_t QTSlewBinEdge[8][16][8], const Int_t QTSlewCorr[8][16][8])
 Set TAC sum (j2+j3) for each position in each QT board.
 
void setMT101 (UShort_t mt101Tac[8][2], UShort_t mt101Id[8][2])
 Set two largest TACsum for all QT boards.
 
void setTF201TriggerBit (Int_t year, UInt_t dsmBit1, UInt_t dsmBit2)
 Set trigger bit in TCU that used for online trigger.
 

Static Protected Attributes

static const UShort_t mtd_qt_tac_max = 4095
 
static const UShort_t kNQTboard = 8
 

Detailed Description

Class storing MTD trigger information including VPD, QT, MT101, TF201.

The class stores trigger information related to the Muon Telescope Detector (MTD)

Definition at line 15 of file StPicoMtdTrigger.h.

Member Function Documentation

void StPicoMtdTrigger::getMaximumQTtac ( const Int_t  qt,
Int_t &  pos1,
Int_t &  pos2 
)

Return the position of the two largest TACsum for a given QT board

Parameters
qtQT board number running from 1-8
pos1position of the largest TACsum. Runs from 1-8 pos2 position of the second-largest TACsum. Runs from 1-8

Definition at line 159 of file StPicoMtdTrigger.cxx.

UShort_t StPicoMtdTrigger::getMT101Id ( const Int_t  qt,
const Int_t  index 
) const
inline

/brief Return the Id of largest and second-largest TACsum for a given QT. stored in MT101. It runs bewteen 0-3, and was intended to be used for Daq10k. It is not used in analysis.

Parameters
qtQT number running from 1-8
index0 - largest TACsum; 1 - second-largest TACsum

Definition at line 65 of file StPicoMtdTrigger.h.

Referenced by mt101Id().

UShort_t StPicoMtdTrigger::getMT101Tac ( const Int_t  qt,
const Int_t  index 
) const
inline

Return the largest and second-largest TACsum for a given QT stored in MT101

Parameters
qtQT board number running from 1-8
index0 - largest TACsum; 1 - second-largest TACsum

Definition at line 53 of file StPicoMtdTrigger.h.

Referenced by mt101Tac().

UShort_t StPicoMtdTrigger::getQTtacSum ( const Int_t  qt,
const Int_t  pos 
) const
inline

Return the TACsum for a given position in a QT

Parameters
qtQT board nubmer running from 1-8
posposition index in each QT board running from 1-8

Definition at line 44 of file StPicoMtdTrigger.h.

Referenced by qtTacSum().

UInt_t StPicoMtdTrigger::getTF201TriggerBit ( ) const
inline

Return TCU bit used in online trigger decision. Its format is modified from the one in MuDst

Definition at line 75 of file StPicoMtdTrigger.h.

Referenced by tf201TriggerBit().

UInt_t StPicoMtdTrigger::getTHUBtime ( const Int_t  thub) const
inline

Return trigger time from the two THUBs

Parameters
thub2 for backlegs 1-15 and 1 for 16-30

Definition at line 37 of file StPicoMtdTrigger.h.

Referenced by thubTime().

UShort_t StPicoMtdTrigger::mt101Id ( const Int_t  qt,
const Int_t  index 
) const
inline

/brief Return the Id of largest and second-largest TACsum for a given QT. stored in MT101. It runs bewteen 0-3, and was intended to be used for Daq10k. It is not used in analysis.

Parameters
qtQT number running from 1-8
index0 - largest TACsum; 1 - second-largest TACsum

Definition at line 72 of file StPicoMtdTrigger.h.

References getMT101Id().

UShort_t StPicoMtdTrigger::mt101Tac ( const Int_t  qt,
const Int_t  index 
) const
inline

Return the largest and second-largest TACsum for a given QT stored in MT101

Parameters
qtQT board number running from 1-8
index0 - largest TACsum; 1 - second-largest TACsum

Definition at line 58 of file StPicoMtdTrigger.h.

References getMT101Tac().

UShort_t StPicoMtdTrigger::qtTacSum ( const Int_t  qt,
const Int_t  pos 
) const
inline

Return the TACsum for a given position in a QT

Parameters
qtQT board nubmer running from 1-8
posposition index in each QT board running from 1-8

Definition at line 48 of file StPicoMtdTrigger.h.

References getQTtacSum().

UInt_t StPicoMtdTrigger::tf201TriggerBit ( ) const
inline

Return TCU bit used in online trigger decision. Its format is modified from the one in MuDst

Definition at line 78 of file StPicoMtdTrigger.h.

References getTF201TriggerBit().

UInt_t StPicoMtdTrigger::thubTime ( const Int_t  thub) const
inline

Return trigger time from the two THUBs

Parameters
thub2 for backlegs 1-15 and 1 for 16-30

Definition at line 40 of file StPicoMtdTrigger.h.

References getTHUBtime().


The documentation for this class was generated from the following files: