StRoot
1
|
Public Member Functions | |
StMuEpdHit () | |
default constructor. sets all values empty | |
StMuEpdHit (Int_t position, Int_t tile, Short_t EW, Int_t ADC, Int_t TAC, Int_t TDC, bool hasTAC, Float_t nMIP, bool statusIsGood, Int_t truthId) | |
StMuEpdHit (StEpdHit *epdHit) | |
bool | 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 | position () const |
position of supersector on a wheel [1,12] | |
Int_t | tile () const |
tile on the supersector [1,31] | |
Int_t | qtData () |
Float_t | nMIP () |
gain calibrated energy loss in tile, in units of Landau MPV for one MIP | |
bool | isGood () const |
false if tile is bad or missing, according to (time-dependent) database | |
void | setQTdata (Int_t packedData) |
void | setId (Short_t id) |
void | SetnMIP (Float_t nMIP) |
void | setIdTruth (Int_t id) |
set the id of particle most responsible for energy loss in tile (monte carlo) | |
Int_t | idTruth () |
returns the particle number for the particle most responsible for energy loss (monte carlo) | |
Public Member Functions inherited from StObject | |
StObject (const StObject &sto) | |
StObject & | operator= (const StObject &sto) |
virtual TObject * | clone () const |
Int_t | isZombie () const |
virtual void | makeZombie (int flg=1) |
UInt_t | Ztreamer (TBuffer &R__b) |
ClassDef (StObject, 3) static UInt_t fgTally | |
Protected Attributes | |
Short_t | mId |
Int_t | mQTdata |
Float_t | mnMIP |
gain calibrated energy loss in tile, in units of Landau MPV for one MIP | |
Int_t | mTruthId |
greatest contributer to energy deposition (MC) | |
Definition at line 33 of file StMuEpdHit.h.
StMuEpdHit::StMuEpdHit | ( | Int_t | position, |
Int_t | tile, | ||
Short_t | EW, | ||
Int_t | ADC, | ||
Int_t | TAC, | ||
Int_t | TDC, | ||
bool | hasTAC, | ||
Float_t | nMIP, | ||
bool | statusIsGood, | ||
Int_t | truthId | ||
) |
constructor setting all values
position | Supersector position on the wheel [1,12] |
tile | Tile number on the Supersector [1,31] |
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 |
nMIP | gain-calibrated signal; energy loss in terms of MPV of Landau for a MIP |
statusIsGood | good status, according to database |
truthId | id of particle most responsible for energy loss (simulation) |
Definition at line 38 of file StMuEpdHit.cxx.
StMuEpdHit::StMuEpdHit | ( | StEpdHit * | epdHit | ) |
|
inline |
unique tile identifier absolulte value is 100*position + tile sign is +1/-1 for West/East
Definition at line 127 of file StMuEpdHit.h.
References mId.
Referenced by setId(), and setIdTruth().
|
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 StMuEpdHit.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 94 of file StMuEpdHit.h.
|
inline |
gain | calibrated energy loss in tile, in units of Landau MPV for one MIP |
Definition at line 96 of file StMuEpdHit.h.
|
inline |
It is expected that this will not be invoked, but if you want to use it, you have to pack the data yourself. I do not want ability to individually set ADC,TDC,TAC. Better to use the constructor
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 91 of file StMuEpdHit.h.
References mQTdata.
|
protected |
Packed channel Id: abs(mID) = 100*positionId + tileId sign(mID) = +/- = West/East
Definition at line 109 of file StMuEpdHit.h.
Referenced by id(), position(), setId(), side(), and tile().
|
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 114 of file StMuEpdHit.h.
Referenced by adc(), hasTac(), isGood(), qtData(), setQTdata(), tac(), and tdc().