StRoot
1
|
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 |
Definition at line 38 of file StPicoBbcHit.h.
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
PMTnumber | phototube number. [1,16] |
EW | Which side is the wheel on? -1 for East; +1 for West |
ADC | ADC reported by QT board [0,4095] |
TAC | TAC reported by QT board (if there is one) [0,4095] |
TDC | TDC reported by QT board [0,32] |
hasTAC | true/fals if this channel has a TAC |
statusIsGood | good status, according to database |
Definition at line 45 of file StPicoBbcHit.cxx.
References mId.
|
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().
|
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.
|
inline |
It is expected that this will not be invoked, but rather the constructor used
id | = sign*(100*position+tile) where sign=+/- for West/East wheel |
Definition at line 92 of file StPicoBbcHit.h.
|
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
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.
|
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().
|
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().