MonteCarlo track. More...
#include <PaMCtrack.h>
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. | |
MonteCarlo track.
Simulated track (contains GEANTs KINE bank information and much more)
| int PaMCtrack::iBestTrkRef | ( | ) | const [inline] |
Best associated reconstructed track index.
| 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] |
| 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.
| 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()).
NMCHits()
only 1 MC hits per MC track per sensitive volume is possible)
1.6.2