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

#include <StMuTrack.h>

Inheritance diagram for StMuTrack:

Public Member Functions

 StMuTrack (const StEvent *, const StTrack *, const StVertex *, Int_t index2Global=-2, Int_t index2RichSpectra=-2, Bool_t l3=false, TObjArray *vtx_list=0)
 default constructor More...
 
short id () const
 Returns the track id(or key), is unique for a track node, i.e. global and primary tracks have the same id.
 
short type () const
 Returns the track type: 0=global, 1=primary, etc (see StEvent manual for type information)
 
short flag () const
 Returns flag, (see StEvent manual for type information)
 
UInt_t flagExtension () const
 
Int_t bad () const
 
Int_t index2Global () const
 Returns index of associated global track. If not in order can be set with StMuDst::fixTrackIndeces() (but is taken care of in StMuDstReader.)
 
Int_t index2Cov () const
 
Int_t index2RichSpectra () const
 Returns index of associated rich spectra.
 
Int_t index2BTofHit () const
 
Int_t index2ETofHit () const
 dongx
 
Int_t index2MtdHit () const
 
Int_t vertexIndex () const
 Returns index of associated primary vertex.
 
void setVertexIndex (Int_t i)
 Set index of primary vertex for which dca is stored.
 
const StMuTrackglobalTrack () const
 Returns pointer to associated global track. Null pointer if no global track available.
 
const StMuTrackprimaryTrack () const
 Returns pointer to associated primary track. Null pointer if no global track available.
 
const StRichSpectrarichSpectra () const
 Returns pointer to associated rich spectra. Null pointer if no global track available.
 
const StMuBTofHittofHit () const
 
const StMuETofHitetofHit () const
 dongx
 
const StMuMtdHitmtdHit () const
 
UShort_t nHits () const
 Bingchu. More...
 
UShort_t nHitsPoss () const
 Return number of possible hits on track.
 
UShort_t nHitsPoss (StDetectorId) const
 Return number of possible hits on track.
 
UShort_t nHitsDedx () const
 Return number of hits used for dEdx.
 
UShort_t nHitsFit () const
 Return total number of hits used in fit.
 
UShort_t nHitsFit (StDetectorId) const
 Return number of hits used in fit.
 
Double_t pidProbElectron () const
 Returns Aihong's probability of being an electron.
 
Double_t pidProbPion () const
 Returns Aihong's probability of being a pion.
 
Double_t pidProbKaon () const
 Returns Aihong's probability of being a kaon.
 
Double_t pidProbProton () const
 Returns Aihong's probability of being a proton.
 
Double_t nSigmaElectron () const
 Returns Craig's distance to the calculated dE/dx band for electrons in units of sigma.
 
Double_t nSigmaPion () const
 Returns Craig's distance to the calculated dE/dx band for pions in units of sigma.
 
Double_t nSigmaKaon () const
 Returns Craig's distance to the calculated dE/dx band for kaons in units of sigma.
 
Double_t nSigmaProton () const
 Returns Craig's distance to the calculated dE/dx band for protons in units of sigma.
 
Double_t dEdxPull (Double_t mass, Bool_t fit=kFALSE, Int_t charge=1) const
 
Double_t dEdxPullElectronI70 () const
 
Double_t dEdxPullPionI70 () const
 
Double_t dEdxPullKaonI70 () const
 
Double_t dEdxPullProtonI70 () const
 
Double_t dEdxPullElectronFit () const
 
Double_t dEdxPullPionFit () const
 
Double_t dEdxPullKaonFit () const
 
Double_t dEdxPullProtonFit () const
 
Double_t nSigmaElectron70 () const
 
Double_t nSigmaPion70 () const
 
Double_t nSigmaKaon70 () const
 
Double_t nSigmaProton70 () const
 
Double_t nSigmaElectronFit () const
 
Double_t nSigmaPionFit () const
 
Double_t nSigmaKaonFit () const
 
Double_t nSigmaProtonFit () const
 
Double_t dEdx () const
 Returns measured dE/dx value.
 
Double_t chi2 () const
 Returns chi2 of fit.
 
Double_t chi2prob () const
 Returns probability of fit.
 
Double_t chi2xy () const
 Returns chi2 of fit. ATTENTIONS: does not return xy chi2 (historic)
 
Double_t chi2z () const
 Returns probability of fit. ATTENTIONS: does not return z chi2 (historic)
 
Double_t pt () const
 Returns pT at point of dca to primary vertex.
 
Double_t phi () const
 Returns phi at point of dca to primary vertex.
 
Double_t eta () const
 Returns pseudo rapidity at point of dca to primary vertex.
 
Double_t length () const
 Returns length of track (cm) from primary vertex to last measured point.
 
Double_t lengthMeasured () const
 Returns length of track (cm) from first to last measured point.
 
StTrackTopologyMap topologyMap () const
 Returns topology map.
 
Short_t charge () const
 Returns charge.
 
const StThreeVectorFp () const
 Returns 3-momentum at dca to primary vertex.
 
const StThreeVectorFmomentum () const
 Returns 3-momentum at dca to primary vertex.
 
StThreeVectorF dca (Int_t vtx_id=-1) const
 Returns 3D distance of closest approach to primary vertex.
 
StThreeVectorF dcaGlobal (Int_t vtx_id=-1) const
 Returns 3D distance of closest approach to primary vertex of associated global track.
 
Float_t dcaD (Int_t vtx_id=-1) const
 Signed radial component of global DCA (projected)
 
Float_t dcaZ (Int_t vtx_id=-1) const
 Z component of global DCA.
 
const StThreeVectorFfirstPoint () const
 Returns positions of first measured point.
 
const StThreeVectorFlastPoint () const
 Returns positions of last measured point.
 
StPhysicalHelixD helix () const
 Returns inner helix (first measured point)
 
StPhysicalHelixD outerHelix () const
 Returns outer helix (last measured point)
 
const StMuHelixmuHelix () const
 Returns inner helix (first measured point)
 
const StMuHelixmuOuterHelix () const
 Returns outer helix (last measured point)
 
const StMuProbPidTraitsprobPidTraits () const
 Returns Yuri Fisyak new pid probabilities.
 
const StMuBTofPidTraitsbtofPidTraits () const
 
const StMuETofPidTraitsetofPidTraits () const
 dongx
 
const StMuMtdPidTraitsmtdPidTraits () const
 
void setBTofPidTraits (const StMuBTofPidTraits &pid)
 
void setETofPidTraits (const StMuETofPidTraits &pid)
 dongx
 
void setMtdPidTraits (const StMuMtdPidTraits &pid)
 
virtual void Print (Option_t *option="") const
 Print track info.
 
void setIndex2BTofHit (Int_t i)
 
void setIndex2ETofHit (Int_t i)
 dongx
 
void setIndex2MtdHit (Int_t i)
 
void setIndex2Cov (Int_t i)
 Bingchu. More...
 
TArrayI getTower (Bool_t useExitRadius=false, Int_t det=1) const
 
Double_t energyBEMC () const
 
Bool_t matchBEMC () const
 
Int_t idTruth () const
 
Int_t qaTruth () const
 
Int_t idParentVx () const
 
void setType (short type)
 
void setIdTruth (Int_t idtru, Int_t qatru=0)
 
void setIdParentVx (Int_t Id)
 

Static Public Member Functions

static void setProbabilityPidAlgorithm (StuProbabilityPidAlgorithm *)
 Sets the StuProbabilityPidAlgorithm. Important in order to calculate Aihong's pids. More...
 
static void setProbabilityPidCentrality (Double_t cent)
 Sets the centrality for calculating Aihong's pid.
 

Protected Member Functions

void setIndex2Global (Int_t i)
 Set index of associated global track.
 
void setIndex2RichSpectra (Int_t i)
 Set index of associated rich spectra.
 
StThreeVectorF dca (const StThreeVectorF &pos) const
 Calculate dca to a given point.
 
StThreeVectorD dca (const StTrack *, const StVertex *vertex) const
 Helper function: Calculates dca from a given StTrack and the primary vertex taken from StEvent.
 
StThreeVectorD momentumAtPrimaryVertex (const StEvent *event, const StTrack *track, const StVertex *vertex) const
 Helper function: Calculates the momentum at dca a given StTrack and the primary vertex taken from StEvent.
 
void fillMuProbPidTraits (const StEvent *, const StTrack *)
 Helper function to fill all the different pid values.
 
void fillMuBTofPidTraits (const StTrack *)
 
void fillMuETofPidTraits (const StTrack *)
 dongx
 
void fillMuMtdPidTraits (const StTrack *)
 

Protected Attributes

Int_t mId
 
Short_t mType
 
Short_t mFlag
 
UInt_t mFlagExtension
 
Int_t mIndex2Global
 
Int_t mIndex2RichSpectra
 
Int_t mIndex2BTofHit
 
Int_t mIndex2MtdHit
 
Int_t mVertexIndex
 
UChar_t mNHits
 
UChar_t mNHitsPoss
 
UChar_t mNHitsDedx
 
UChar_t mNHitsFit
 
UChar_t mNHitsPossInner
 
UChar_t mNHitsFitInner
 
UChar_t mNHitsPossTpc
 
UChar_t mNHitsFitTpc
 
UShort_t mPidProbElectron
 
UShort_t mPidProbPion
 
UShort_t mPidProbKaon
 
UShort_t mPidProbProton
 
Int_t mNSigmaElectron
 
Int_t mNSigmaPion
 
Int_t mNSigmaKaon
 
Int_t mNSigmaProton
 
Float_t mdEdx
 
Float_t mChiSqXY
 
Float_t mChiSqZ
 
Float_t mPt
 
Float_t mEta
 
Float_t mPhi
 
StTrackTopologyMap mTopologyMap
 
StThreeVectorF mP
 
StThreeVectorF mDCA
 
StThreeVectorF mDCAGlobal
 
StThreeVectorF mFirstPoint
 
StThreeVectorF mLastPoint
 
StMuHelix mHelix
 
StMuHelix mOuterHelix
 
StMuProbPidTraits mProbPidTraits
 Class holding the new Yuri Fisyak pid probabilities.
 
StMuBTofPidTraits mBTofPidTraits
 
StMuMtdPidTraits mMtdPidTraits
 dongx
 
Int_t mIndex2Cov
 Bingchu.
 
Int_t mIndex2ETofHit
 
StMuETofPidTraits mETofPidTraits
 
UShort_t mIdTruth
 
UShort_t mQuality
 
Int_t mIdParentVx
 

Static Protected Attributes

static StuProbabilityPidAlgorithmmProbabilityPidAlgorithm =0
 Bingchu. More...
 
static Double_t mProbabilityPidCentrality =0
 Centrality for Aihong's pid prob calculations. Will set when new StMuEvent is made from StEvent.
 

Friends

class StMuDst
 
class StMuDstFilterMaker
 
class StMuMomentumShiftMaker
 

Detailed Description

Class holding the track properties All unitis are in standard STAR units: GeV,cm Please keep in mind, for primary tracks the first measured point is the primary vertex. This affects dca, length calculations, inner helix.

Definition at line 55 of file StMuTrack.h.

Constructor & Destructor Documentation

StMuTrack::StMuTrack ( const StEvent event,
const StTrack track,
const StVertex vertex,
Int_t  index2Global = -2,
Int_t  index2RichSpectra = -2,
Bool_t  l3 = false,
TObjArray *  vtx_list = 0 
)

Member Function Documentation

UShort_t StMuTrack::nHits ( ) const
inline

Bingchu.

Return total number of hits on track.

Definition at line 237 of file StMuTrack.h.

Referenced by StEmcOfflineCalibrationMaker::Make(), and StSkimPionMaker::Make().

void StMuTrack::setIndex2Cov ( Int_t  i)
inline

Bingchu.

Set index of associated DCA geoemtry for the global track.

Definition at line 148 of file StMuTrack.h.

References mIndex2Cov.

Referenced by StMuDstMaker::addTrack().

void StMuTrack::setProbabilityPidAlgorithm ( StuProbabilityPidAlgorithm p)
inlinestatic

Sets the StuProbabilityPidAlgorithm. Important in order to calculate Aihong's pids.

Bingchu.

Definition at line 267 of file StMuTrack.h.

References mProbabilityPidAlgorithm, and p().

Referenced by StMuDstMaker::fill().

Member Data Documentation

StuProbabilityPidAlgorithm * StMuTrack::mProbabilityPidAlgorithm =0
staticprotected

Bingchu.

StuProbabilityPidAlgorithm, we will use the same algorithm for all tracks

Definition at line 220 of file StMuTrack.h.

Referenced by setProbabilityPidAlgorithm(), and StMuTrack().


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