PaMCtrack Class Reference

MonteCarlo track. More...

#include <PaMCtrack.h>

List of all members.

Public Member Functions

int Pid () const
 Particle GEANT3 id.
const string Name () const
 Particle name (as in GEANT3).
double E () const
 Energy.
double P (int i) const
 Px, Py, Pz (i=0,1,2).
int iVertexOfOrigin () const
 Vertex of origin index.
int NMCHits () const
 Number of MC hits.
int NHits () const
 Number of hits, made of MC hits.
bool IsPileup () const
 "true" for pileup track
bool IsBeam () const
 "true" for beam track (always 1-st track in primary vertex with Pz < 0)
bool IsMuPrim () const
 "true" for scattered muon (always 2-d track in primary vertex)
TVector3 Mom3 () const
 3-vector of momentum components.
TLorentzVector LzVec () const
 4-vector of the particle
PaTPar ParInVtx () const
 Trajectory parameters in the veretx of origin.
const vector< int > & vMCvertex () const
 vector of references to MC vertexes, produces by this MC track.
const set< int > & sTrkRef () const
 set of references to associated reconstructed tracks (indexes in PaEvent::vTrack())
const set< int > & sMChitRef () const
 MC hit references.
const set< int > & sAllMChitRef () const
 MC hit references including "not-original" MC hits.
int iTrack () const
 associated reconstructed track index
TBits HitMap () const
 return hit map as TBits object
const unsigned int * HitMapArray () const
 return hit map as is (as int[HIT_MAP_SIZE] array)
int NHitsInDetect (string str) const
 Number of hits in detector(s).
void Print (int level=0) const
 Print MCtrack info.
int Q () const
 charge
double Pinv () const
 q/P
double MCmass () const
 calculated mass
int iGenParticle () const
 generator particle index
int iBestTrkRef () const
 Best associated reconstructed track index.
void SetBestTrkRef (int itrk)
 Set the best associated reconstructed track index.

Detailed Description

MonteCarlo track.

Simulated track (contains GEANTs KINE bank information and much more)

Author:
Sergei.Gerassimov@cern.ch

Member Function Documentation

int PaMCtrack::iBestTrkRef (  )  const [inline]

Best associated reconstructed track index.

Warning:
No "best association" is done by default (index == -1). It's for "user-defined" association. (could be set it by SetBestTrkRef() function)
int PaMCtrack::iGenParticle (  )  const [inline]

generator particle index

Returns element number of corresponding LUJET structure in the vector<LUJET> which could be retrieved by function PaEvent::MCgen(int& Nparticles, vector<LUJET>& vlj) or "-1" if not exists

Referenced by Print().

int PaMCtrack::iTrack (  )  const [inline]

associated reconstructed track index

It is just first element of sTrkRef().
-1 means "no associated track"

Warning:
If there are few associations of this MC track to reconstructed tracks (i.e. sTrkRef().size() > 1),
first reference in sTrkRef() doesn't mean "the best"

References sTrkRef().

TVector3 PaMCtrack::Mom3 (  )  const [inline]

3-vector of momentum components.

3-momentum at the point of origin of the simulated particle trajectory. This is "native" (no transformations on the way) information as it's coming from GEANT.

Warning:
If this representation of trajectory parameters are used in analysis, user has "to invert" signs of beam's momentum components, as in simulation beam goes "upward".
int PaMCtrack::NHitsInDetect ( string  str  )  const

Number of hits in detector(s).

Returns total number of hits (clusters) in detectors with name begins on substring "str" (e.g. NHitsInDetect("FI") gives number of hits in SciFi, NHitsInDetect("SI01") gives N hits in first silicon station)

References PaSetup::Detector(), PaDetect::Name(), PaSetup::NDetectors(), and PaSetup::Ref().

const set<int>& PaMCtrack::sAllMChitRef (  )  const [inline]

MC hit references including "not-original" MC hits.

Similar to "set<int>& sMChitRef()" function but returns also references to MC hits from showers and delta rays produced by this MC track.So one may observe more than 1 MC hit per detector.

void PaMCtrack::SetBestTrkRef ( int  itrk  )  [inline]

Set the best associated reconstructed track index.

I's the function for users who wants to have more "strict" "MC track" -> "reconstructed track" association than out of sTrkRef().

const set<int>& PaMCtrack::sMChitRef (  )  const [inline]

MC hit references.

Returns set of references to available MC hits (could be accessed by PaEvent::MChits()).

  • As only MC hits from some particular detectors could be saved (controlled by "mDST MChits" option), sMChitRef().size() $\leq$ NMCHits()
  • Only references to "original" MC hits had been saved ($\Rightarrow$ only 1 MC hits per MC track per sensitive volume is possible)

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

Generated by  doxygen 1.6.2