StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Protected Attributes | List of all members
StPicoBbcHit Class Reference
Inheritance diagram for StPicoBbcHit:

Public Member Functions

 StPicoBbcHit ()
 Default constructor. sets all values empty.
 
 StPicoBbcHit (Int_t PMTnumber, Int_t EW, Int_t ADC, Int_t TAC, Int_t TDC, Bool_t hasTAC, Bool_t statusIsGood)
 
 StPicoBbcHit (const StPicoBbcHit &hit)
 Copy constructor.
 
virtual ~StPicoBbcHit ()
 Destructor.
 
virtual void Print (const Char_t *option="") const
 
Bool_t hasTac () const
 True if this channel has a valid TAC value.
 
Int_t adc () const
 ADC value [0,4095].
 
Int_t tac () const
 TAC value [0,4095].
 
Int_t tdc () const
 TDC value [0,31].
 
Short_t side () const
 +1 if tile is on West side; -1 if on East side
 
Short_t id () const
 
Int_t qtData () const
 
Bool_t isGood () const
 false if tile is bad or missing, according to (time-dependent) database
 
void setQTdata (Int_t packedData)
 
void setId (Short_t id)
 

Protected Attributes

Short_t mId
 
Int_t mQTdata
 

Detailed Description

Definition at line 38 of file StPicoBbcHit.h.

Constructor & Destructor Documentation

StPicoBbcHit::StPicoBbcHit ( Int_t  PMTnumber,
Int_t  EW,
Int_t  ADC,
Int_t  TAC,
Int_t  TDC,
Bool_t  hasTAC,
Bool_t  statusIsGood 
)

constructor setting all values

Parameters
PMTnumberphototube number. [1,16]
EWWhich side is the wheel on? -1 for East; +1 for West
ADCADC reported by QT board [0,4095]
TACTAC reported by QT board (if there is one) [0,4095]
TDCTDC reported by QT board [0,32]
hasTACtrue/fals if this channel has a TAC
statusIsGoodgood status, according to database

Definition at line 45 of file StPicoBbcHit.cxx.

References mId.

Member Function Documentation

Short_t StPicoBbcHit::id ( ) const
inline

unique PMT identifier absolute value is phototube number, between 1 and 16, inclusive sign is +1/-1 for West/East

Definition at line 75 of file StPicoBbcHit.h.

References mId.

Referenced by setId().

Int_t StPicoBbcHit::qtData ( ) const
inline

The packed data from the QT board: ADC=bits 0-11; TAC=bits 12-23; TDC=bits 24-28; bit 29=0/1 for has/does not have TAC; bit 30=0/1 if tile is marked bad/good in database

Definition at line 79 of file StPicoBbcHit.h.

References mQTdata.

void StPicoBbcHit::setId ( Short_t  id)
inline

It is expected that this will not be invoked, but rather the constructor used

Parameters
id= sign*(100*position+tile) where sign=+/- for West/East wheel

Definition at line 92 of file StPicoBbcHit.h.

References id(), and mId.

void StPicoBbcHit::setQTdata ( Int_t  packedData)
inline

If you use the setQTdata method, you need to pack the data yourself. It is useful if you are getting the QT data from, e.g. StMuBbcHit

Parameters
packedData,:ADC=bits 0-11; TAC=bits 12-23; TDC=bits 24-28; bit 29=0/1 for has/does not have TAC; bit 30=0/1 if tile is marked bad/good in database

Definition at line 89 of file StPicoBbcHit.h.

References mQTdata.

Member Data Documentation

Short_t StPicoBbcHit::mId
protected

Phototube Id: abs(mID) = phototube number, between 1 and 16 sign(mID) = +/- = West/East

Definition at line 99 of file StPicoBbcHit.h.

Referenced by id(), setId(), side(), and StPicoBbcHit().

Int_t StPicoBbcHit::mQTdata
protected

Packed channel data: bits 0-11 are ADC; bits 12-23 are TAC; bits 24-28 are TDC; bit 29 is noTAC flag bit 30 is the good/bad (1/0) status flag

Definition at line 104 of file StPicoBbcHit.h.

Referenced by adc(), hasTac(), isGood(), qtData(), setQTdata(), StPicoBbcHit(), tac(), and tdc().


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