StRoot
1
|
Stores information for tiles in STAR Event Plane Detector. More...
#include <StEpdHit.h>
Public Member Functions | |
StEpdHit () | |
default constructor. sets all values empty | |
StEpdHit (int position, int tile, short EW, int ADC, int TAC, int TDC, bool hasTAC, float nMIP, bool statusIsGood, int truthId) | |
bool | hasTac () const |
true if this channel has a valid TAC value | |
int | adc () const |
ADC value [0,4095]. | |
int | tac () const |
TAC value [0,4095]. | |
int | tdc () const |
TDC value [0,31]. | |
short | side () const |
+1 if tile is on West side; -1 if on East side | |
short | id () const |
int | position () const |
position of supersector on a wheel [1,12] | |
int | tile () const |
tile on the supersector [1,31] | |
int | qtData () const |
float | nMIP () const |
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 packedData) |
void | setnMIP (float nMIP) |
void | setIdTruth (int id) |
set identifier of particle most responsible for energy loss (simulation) | |
int | idTruth () const |
identifier of particle most responsible for energy loss (simulation) | |
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 |
identifier of particle most responsible for energy loss (simulation) | |
Stores information for tiles in STAR Event Plane Detector.
Definition at line 43 of file StEpdHit.h.
StEpdHit::StEpdHit | ( | int | position, |
int | tile, | ||
short | EW, | ||
int | ADC, | ||
int | TAC, | ||
int | TDC, | ||
bool | hasTAC, | ||
float | nMIP, | ||
bool | statusIsGood, | ||
int | 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 | particle id of particle most responsible for energy loss (simulation) |
Definition at line 32 of file StEpdHit.cxx.
|
inline |
unique tile identifier absolulte value is 100*position + tile sign is +1/-1 for West/East
Definition at line 146 of file StEpdHit.h.
References mId.
Referenced by StTpcHitMover::Make(), 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 139 of file StEpdHit.h.
References mQTdata.
|
inline |
gain | calibrated energy loss in tile, in units of Landau MPV for one MIP |
Definition at line 142 of file StEpdHit.h.
|
inline |
This method unlikely to be used frequently. Sets the QT data. You have to bit-pack the data yourself
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 141 of file StEpdHit.h.
References mQTdata.
|
protected |
Packed channel Id: abs(mID) = 100*positionId + tileId sign(mID) = +/- = West/East
Definition at line 123 of file StEpdHit.h.
Referenced by id(), position(), 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 128 of file StEpdHit.h.
Referenced by adc(), hasTac(), isGood(), qtData(), setQTdata(), tac(), and tdc().