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

Public Member Functions

 StEmbeddingQATrack ()
 Default constructor. More...
 
 StEmbeddingQATrack (const TString name, const StTinyMcTrack &track)
 Constructor for Monte Carlo (MC) tracks. More...
 
 StEmbeddingQATrack (const TString name, StMiniMcPair *track)
 Constructor for Matched pairs. More...
 
 StEmbeddingQATrack (const TString name, StContamPair *track)
 Constructor for Contaminated pairs. More...
 
 StEmbeddingQATrack (const TString name, const StMuTrack &track, const Int_t geantid, const Bool_t btof)
 Constructor for real tracks both Primary and Global tracks. More...
 
virtual ~StEmbeddingQATrack ()
 Destructor. More...
 
Bool_t isPtAndEtaOk () const
 
Bool_t isRapidityOk (const Double_t ycut) const
 Pt and eta cuts. More...
 
Bool_t isNHitOk () const
 Rapidity cut. More...
 
Bool_t isNHitToNPossOk () const
 Nhits cut. More...
 
Bool_t isDcaOk () const
 Nhits/NhitsPoss cut. More...
 
Bool_t isCommonHitOk () const
 Dca cut. More...
 
Bool_t isNSigmaOk (const Int_t geantid) const
 Common hit cut. More...
 
StLorentzVectorD getVectorMc () const
 
StLorentzVectorD getVectorRc () const
 Get MC 4-momentum. More...
 
StLorentzVectorD getVectorPr () const
 Get reconstructed 4-momentum (primary) More...
 
StLorentzVectorD getVectorGl () const
 Get reconstructed 4-momentum (primary <- return getVectorRc()) More...
 
Short_t getNCommonHit () const
 Get reconstructed 4-momentum (global)
 
Int_t getParentParentGeantId () const
 Get number of common hits.
 
Int_t getParentGeantId () const
 Get parent geant id.
 
Int_t getGeantId () const
 Get parent geant id.
 
Int_t getGeantProcess () const
 Get geant id.
 
Short_t getNHit () const
 Get geant process.
 
Short_t getNHitPoss () const
 Get number of fit points.
 
Short_t getCharge () const
 Get maximum number of fit points.
 
Double_t getMassMc () const
 Get charge.
 
Float_t getPtMc () const
 Get MC particle mass.
 
Float_t getPxMc () const
 Get MC transverse momentum.
 
Float_t getPyMc () const
 Get MC px.
 
Float_t getPzMc () const
 Get MC py.
 
Float_t getPMc () const
 Get MC pz.
 
Float_t getEtaMc () const
 Get MC momentum.
 
Float_t getRapidityMc () const
 Get MC pseudorapidity.
 
Double_t getMassRc () const
 Get MC rapidity.
 
Float_t getPtRc () const
 Get reconstructed particle mass (primary)
 
Float_t getPxRc () const
 Get reconstructed transverse momentum (primary)
 
Float_t getPyRc () const
 Get reconstructed px (primary)
 
Float_t getPzRc () const
 Get reconstructed py (primary)
 
Float_t getPRc () const
 Get reconstructed pz (primary)
 
Float_t getEtaRc () const
 Get reconstructed momentum (primary)
 
Float_t getRapidityRc () const
 Get reconstructed pseudorapidity (primary)
 
Float_t getPhi () const
 Get reconstructed rapidity (primary)
 
Float_t getdEdx () const
 Get azimuthal angle.
 
Float_t getdEdxkeV () const
 Get dE/dx.
 
Float_t getDcaGl () const
 Get dE/dx in keV unit.
 
Double_t getNSigmaElectron () const
 Get global dca.
 
Double_t getNSigmaPion () const
 Get nsigma for electrons/positrons.
 
Double_t getNSigmaKaon () const
 Get nsigma for pions.
 
Double_t getNSigmaProton () const
 Get nsigma for kaons.
 
void print () const
 Get nsigma for protons/anti-protons. More...
 
const TString getName () const
 Get track node name.
 

Detailed Description

Definition at line 48 of file StEmbeddingQATrack.h.

Constructor & Destructor Documentation

StEmbeddingQATrack::StEmbeddingQATrack ( )

Default constructor.

Default constructor

Definition at line 68 of file StEmbeddingQATrack.cxx.

StEmbeddingQATrack::StEmbeddingQATrack ( const TString  name,
const StTinyMcTrack track 
)

Constructor for Monte Carlo (MC) tracks.

Constructor for embedding MC tracks (StTinyMcTrack) No NcommontHit, maximum number of fit points, reconstructed momentum, dEdx, global dca and Nsigma informations

Definition at line 81 of file StEmbeddingQATrack.cxx.

StEmbeddingQATrack::StEmbeddingQATrack ( const TString  name,
StMiniMcPair track 
)

Constructor for Matched pairs.

Constructor for Matched or Mathced global pairs (StMiniMcPair) No Nsigma informations

Definition at line 97 of file StEmbeddingQATrack.cxx.

StEmbeddingQATrack::StEmbeddingQATrack ( const TString  name,
StContamPair track 
)

Constructor for Contaminated pairs.

Constructor for Contaminated pairs (StContamPair) No Nsigma informations Implement parent-parent geantid

Definition at line 116 of file StEmbeddingQATrack.cxx.

StEmbeddingQATrack::StEmbeddingQATrack ( const TString  name,
const StMuTrack track,
const Int_t  geantid,
const Bool_t  btof 
)

Constructor for real tracks both Primary and Global tracks.

Constructor for real data track (StMuTrack) No NcommonHit, parent geantid and MC momentum informations NOTE: subtract primary vertex from number of fit points in order to compare the nfit with the embedding tracks

Definition at line 137 of file StEmbeddingQATrack.cxx.

StEmbeddingQATrack::~StEmbeddingQATrack ( )
virtual

Destructor.

Destructor

Definition at line 158 of file StEmbeddingQATrack.cxx.

Member Function Documentation

StLorentzVectorD StEmbeddingQATrack::getVectorGl ( ) const

Get reconstructed 4-momentum (primary <- return getVectorRc())

Get reconstructed 4-momentum vector (global)

Definition at line 308 of file StEmbeddingQATrack.cxx.

StLorentzVectorD StEmbeddingQATrack::getVectorMc ( ) const

Get MC 4-momentum vector

Definition at line 284 of file StEmbeddingQATrack.cxx.

StLorentzVectorD StEmbeddingQATrack::getVectorPr ( ) const

Get reconstructed 4-momentum (primary)

Get reconstructed 4-momentum vector (primary)

Definition at line 300 of file StEmbeddingQATrack.cxx.

References getVectorRc().

StLorentzVectorD StEmbeddingQATrack::getVectorRc ( ) const

Get MC 4-momentum.

Get reconstructed 4-momentum vector (primary)

Definition at line 292 of file StEmbeddingQATrack.cxx.

Referenced by getVectorPr().

Bool_t StEmbeddingQATrack::isCommonHitOk ( ) const

Dca cut.

NcommonHit cuts (only for embedding tracks)

Definition at line 221 of file StEmbeddingQATrack.cxx.

References StEmbeddingQAUtilities::instance().

Referenced by isNHitOk().

Bool_t StEmbeddingQATrack::isDcaOk ( ) const

Nhits/NhitsPoss cut.

Dca cut No Dca cut for MC tracks

Definition at line 211 of file StEmbeddingQATrack.cxx.

References StEmbeddingQAUtilities::instance().

Bool_t StEmbeddingQATrack::isNHitOk ( ) const

Rapidity cut.

Add NcommonHit cuts for embedding tracks (see isCommonHitOk()) No NHit cut for MC tracks

Definition at line 189 of file StEmbeddingQATrack.cxx.

References StEmbeddingQAUtilities::instance(), isCommonHitOk(), and StEmbeddingQAUtilities::isMc().

Bool_t StEmbeddingQATrack::isNHitToNPossOk ( ) const

Nhits cut.

Cut ratio of NHitFit to NHitPoss

Definition at line 201 of file StEmbeddingQATrack.cxx.

References StEmbeddingQAUtilities::instance(), and StEmbeddingQAUtilities::isMc().

Bool_t StEmbeddingQATrack::isNSigmaOk ( const Int_t  geantid) const

Common hit cut.

NSigma cut for electrons, pions, kaons and protons

Nsigma cut for electrons/pions/kaons/protons

No NSigma cut for embedding tracks

NSigma cut will only apply for e/pi/K/p

Check charge

NSigma cut for e, pi, K and p Implement different charge

This should not happen

This should not happen

This should not happen

Definition at line 231 of file StEmbeddingQATrack.cxx.

References StEmbeddingQAUtilities::getParticleDefinition(), StEmbeddingQAUtilities::instance(), StEmbeddingQAUtilities::isElectron(), StEmbeddingQAUtilities::isEPiKP(), StEmbeddingQAUtilities::isKMinus(), StEmbeddingQAUtilities::isKPlus(), StEmbeddingQAUtilities::isPBar(), StEmbeddingQAUtilities::isPiMinus(), StEmbeddingQAUtilities::isPiPlus(), StEmbeddingQAUtilities::isPositron(), StEmbeddingQAUtilities::isProton(), and StEmbeddingQAUtilities::isReal().

Bool_t StEmbeddingQATrack::isPtAndEtaOk ( ) const

Pt cut only for MC tracks. Pt & eta cuts for embedding/real tracks

Definition at line 164 of file StEmbeddingQATrack.cxx.

References getEtaMc(), getEtaRc(), getPtMc(), getPtRc(), StEmbeddingQAUtilities::instance(), StEmbeddingQAUtilities::isPtOk(), and StEmbeddingQAUtilities::isReal().

Bool_t StEmbeddingQATrack::isRapidityOk ( const Double_t  ycut) const

Pt and eta cuts.

Rapidity cut (mainly for real data) No cut on the MC tracks

Definition at line 179 of file StEmbeddingQATrack.cxx.

References getRapidityMc(), getRapidityRc(), StEmbeddingQAUtilities::instance(), and StEmbeddingQAUtilities::isReal().

void StEmbeddingQATrack::print ( ) const

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