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

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)
 
StObjectoperator= (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)
 

Detailed Description

Definition at line 33 of file StMuEpdHit.h.

Constructor & Destructor Documentation

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

Parameters
positionSupersector position on the wheel [1,12]
tileTile number on the Supersector [1,31]
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
nMIPgain-calibrated signal; energy loss in terms of MPV of Landau for a MIP
statusIsGoodgood status, according to database
truthIdid of particle most responsible for energy loss (simulation)

Definition at line 38 of file StMuEpdHit.cxx.

StMuEpdHit::StMuEpdHit ( StEpdHit epdHit)

constructor based on StEpdHit this is what will be used in constructing the StMuDst from the StEvent

Parameters
epdHit: the StEpdHit object stored in the StEvent

Definition at line 50 of file StMuEpdHit.cxx.

Member Function Documentation

Short_t StMuEpdHit::id ( ) const
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().

Int_t StMuEpdHit::qtData ( )
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.

void StMuEpdHit::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 94 of file StMuEpdHit.h.

References id(), and mId.

void StMuEpdHit::SetnMIP ( Float_t  nMIP)
inline
Parameters
gaincalibrated energy loss in tile, in units of Landau MPV for one MIP

Definition at line 96 of file StMuEpdHit.h.

References mnMIP, and nMIP().

void StMuEpdHit::setQTdata ( Int_t  packedData)
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

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 91 of file StMuEpdHit.h.

References mQTdata.

Member Data Documentation

Short_t StMuEpdHit::mId
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().

Int_t StMuEpdHit::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 114 of file StMuEpdHit.h.

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


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