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

Holds information about Monte Carlo track parameters. More...

#include <StPicoMcTrack.h>

Inheritance diagram for StPicoMcTrack:

Public Types

enum  EHIT {
  ktpc, ksvt, kssd, kctb,
  keem, kemc, kesm, kftp,
  kgem, khpd, kist, kigt,
  kfst, kfgt, kfpd, kmwc,
  kpgc, kpmd, ksmd, kpix,
  ktof, kvpd, ketr, khca,
  kfts, keto, kstg, kwca,
  kpre, kepd, ktot
}
 Detector names.
 

Public Member Functions

 StPicoMcTrack ()
 Default constructor.
 
 StPicoMcTrack (const StPicoMcTrack &track)
 Copy constructor.
 
virtual ~StPicoMcTrack ()
 Destructor.
 
virtual void Print (const Char_t *option="") const
 Print MC track parameters.
 
Int_t id () const
 Return MC track ID (GEANT track ID)
 
Int_t pdgId () const
 Return particle ID defined by PDG.
 
Int_t geantId () const
 Return particle ID defined by GEANT (accordingly to GPART)
 
Int_t charge () const
 Return charge of the particle.
 
TVector3 p () const
 Return track three-momentum.
 
Float_t pt () const
 Return pT of the track.
 
Float_t ptot () const
 Return track total momentum.
 
Float_t eta () const
 Return pseudorapidity of the track.
 
TLorentzVector fourMomentum () const
 Four-momentum of the track.
 
Float_t energy () const
 Energy of the track.
 
Float_t rapidity () const
 Rapidity of the track.
 
Bool_t isFromShower () const
 Check if track is from shower.
 
Int_t idVtxStart () const
 ID of start MC vertex.
 
Int_t idVtxStop () const
 ID of stop MC vertex.
 
Int_t idVtxItrmd () const
 ID of intermediate MC vertex.
 
Int_t nHits () const
 Return total number of hits.
 
UChar_t nHits (Int_t k) const
 Return number of hits in a given detector.
 
UChar_t nHitsCtb () const
 Return number of hits in CTB.
 
UChar_t nHitsEEmc () const
 Return number of hits in EEMC.
 
UChar_t nHitsBEmc () const
 Return number of hits in BEMC.
 
UChar_t nHitsEsm () const
 Return number of hits in EEMC shower max detector.
 
UChar_t nHitsFtpc () const
 Return number of hits in forward TPC.
 
UChar_t nHitsGem () const
 Return number of hits in barrel GEM.
 
UChar_t nHitsHpd () const
 Return number of hits in HPD.
 
UChar_t nHitsIst () const
 Return number of hits in IST.
 
UChar_t nHitsIgt () const
 Return number of hits in IGT.
 
UChar_t nHitsFst () const
 Return number of hits in FST.
 
UChar_t nHitsFgt () const
 Return number of hits in FGT.
 
UChar_t nHitsFpd () const
 Return number of hits in FPD.
 
UChar_t nHitsMwc () const
 Return number of hits in MWC.
 
UChar_t nHitsPgc () const
 Return number of hits in PGC.
 
UChar_t nHitsPmd () const
 Return number of hits in PMD.
 
UChar_t nHitsBsmd () const
 Return number of hits in BSMD.
 
UChar_t nHitsSsd () const
 Return number of hits in SSD.
 
UChar_t nHitsSvt () const
 Return number of hits in SVT.
 
UChar_t nHitsPxl () const
 Return number of hits in PXL.
 
UChar_t nHitsTof () const
 Return number of hits in TOF.
 
UChar_t nHitsTpc () const
 Return number of hits in TPC.
 
UChar_t nHitsVpd () const
 Return number of hits in VPD.
 
UChar_t nHitsEtr () const
 Return number of hits in ETR.
 
UChar_t nHitsHca () const
 Return number of hits in HCA.
 
UChar_t nHitsFts () const
 Return number of hits in FTS.
 
UChar_t nHitsEto () const
 Return number of hits in ETO.
 
UChar_t nHitsStg () const
 Return number of hits in STG.
 
UChar_t nHitsWca () const
 Return number of hits in WCA.
 
UChar_t nHitsPre () const
 Return number of hits in PRE.
 
UChar_t nHitsEpd () const
 Return number of hits in EPD.
 
const Char_t * geName ()
 Return particle names (GEANT ID according to GPART)
 
Int_t correctGePid (Int_t id)
 Return corrected GePid (to take embedding into account)
 
void setId (Int_t id)
 Set MC track ID (primary key/GEANT track ID)
 
void setGeantId (Int_t id)
 Set GEANT ID (according to GPART)
 
void setCharge (Int_t charge)
 Set particle charge.
 
void setNHits (Int_t k, UChar_t n)
 
void setP (Float_t px, Float_t py, Float_t pz)
 Set three-momentum.
 
void setE (Float_t e)
 Set energy.
 
void setIsFromShower (Bool_t isFrom)
 Set flag if track comes from shower.
 
void setIdVtxStart (Int_t id)
 Set start MC vertex index.
 
void setIdVtxStop (Int_t id)
 Set stop MC vertex index.
 
void setIdVtxItrmd (Int_t id)
 Set first intermediate MC vertex index.
 

Detailed Description

Holds information about Monte Carlo track parameters.

The class stores information about the Monte Carlo tracks

Definition at line 32 of file StPicoMcTrack.h.

Member Function Documentation

void StPicoMcTrack::setNHits ( Int_t  k,
UChar_t  n 
)
inline

Set nHits in a detector (iteratively)

k Detector iterator (enum)
n Number of hits in a given detector

Definition at line 169 of file StPicoMcTrack.h.


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