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

Stores information for tiles in STAR Event Plane Detector. More...

#include <StEpdHit.h>

Inheritance diagram for StEpdHit:
StObject

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)
 
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
 identifier of particle most responsible for energy loss (simulation)
 

Detailed Description

Stores information for tiles in STAR Event Plane Detector.

Author
Mike Lisa
Date
29 Dec 2017

Definition at line 43 of file StEpdHit.h.

Constructor & Destructor Documentation

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

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
truthIdparticle id of particle most responsible for energy loss (simulation)

Definition at line 32 of file StEpdHit.cxx.

Member Function Documentation

short StEpdHit::id ( ) const
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().

int StEpdHit::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 139 of file StEpdHit.h.

References mQTdata.

void StEpdHit::setnMIP ( float  nMIP)
inline
Parameters
gaincalibrated energy loss in tile, in units of Landau MPV for one MIP

Definition at line 142 of file StEpdHit.h.

References mnMIP, and nMIP().

void StEpdHit::setQTdata ( int  packedData)
inline

This method unlikely to be used frequently. Sets the QT data. You have to bit-pack the data yourself

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 141 of file StEpdHit.h.

References mQTdata.

Member Data Documentation

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

Int_t StEpdHit::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 128 of file StEpdHit.h.

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


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