Public Member Functions | Public Attributes | List of all members
garana::Track Class Reference

#include <Track.h>

Public Member Functions

 Track ()
 
 Track (const float &lenFw, const float &lenBk, const float &pBeg, const float &pEnd, const TLorentzVector &vtx, const TLorentzVector &end, const TVector3 &vtxDir, const TVector3 &endDir, const float &chiFwd, const float &chiBac, const size_t &nHit, const float *trkParBeg, const float *trkParEnd, const float *covarBeg, const float *covarEnd, const int &chargeFwd, const int &chargeBac, const vector< pair< int, float >> &pidf, const vector< pair< int, float >> &pidb, const float &ionf, const float &ionb, const vector< pair< UInt_t, TLorentzVector >> &truePosVtx, const vector< pair< UInt_t, TLorentzVector >> &truePosEnd, const vector< pair< UInt_t, TLorentzVector >> &trueMomVtx, const vector< pair< UInt_t, TLorentzVector >> &trueMomEnd, const vector< std::pair< int, float >> &trueEnergy)
 

Public Attributes

float fLenFwd
 < returns the fraction of the total energy contributed to this track that was deposited by the particle contributing the most energy to this track More...
 
float fLenBac
 length of the track in cm from backwards fit More...
 
float fMomBeg
 momentum of the track at the vertex in GeV/c More...
 
float fMomEnd
 momentum of the track at the end in GeV/c More...
 
TLorentzVector fVtx
 track vertex position 4-vector cm,ns More...
 
TLorentzVector fEnd
 track end position 4-vector cm,ns More...
 
TVector3 fVtxDir
 track vertex direction More...
 
TVector3 fEndDir
 track end direction More...
 
float fChiFwd
 chisquared forward fit More...
 
float fChiBac
 chisquared backward fit More...
 
size_t fNHits
 number of hits More...
 
float fTrackParBeg [5]
 Track parameters at beginning of track y, z, curvature, phi, lambda – 5-param track (cm, cm, cm-1, rad, rad) More...
 
float fTrackParEnd [5]
 Track parameters at end of track y, z, curvature, phi, lambda – 5-param track (cm, cm, cm-1, rad, rad) More...
 
float fCovMatBeg [15]
 covariance matrix at beginning of track – packed in a 1D array, assuming symmetry More...
 
float fCovMatEnd [15]
 covariance matrix at end of track More...
 
int fChgFwd
 
int fChgBac
 
float fIonFwd
 
float fIonBac
 
vector< pair< int, float > > fPidFwd
 
vector< pair< int, float > > fPidBac
 
vector< pair< UInt_t, TLorentzVector > > fTruePosVtx
 4-position for each assc'd MCParticle at track vertex More...
 
vector< pair< UInt_t, TLorentzVector > > fTruePosEnd
 4-position for each assc'd MCParticle at track end More...
 
vector< pair< UInt_t, TLorentzVector > > fTrueMomVtx
 4-momentum for each assc'd MCParticle at track vertex More...
 
vector< pair< UInt_t, TLorentzVector > > fTrueMomEnd
 4-momentum for each assc'd MCParticle at track end More...
 
vector< std::pair< int, float > > fTrueEnergy
 true energy (second) [GeV] deposited by MCParticle with trackID (first) More...
 

Detailed Description

Definition at line 22 of file Track.h.

Constructor & Destructor Documentation

Track::Track ( )

Definition at line 16 of file Track.cxx.

16  :
17  fLenFwd(FLT_MAX),
18  fLenBac(FLT_MAX),
19  fMomBeg(FLT_MAX),
20  fMomEnd(FLT_MAX),
21  fChiFwd(FLT_MAX),
22  fChiBac(FLT_MAX),
23  fNHits (UINT_MAX),
24  fChgFwd(INT_MAX),
25  fChgBac(INT_MAX),
26  fIonFwd(FLT_MAX),
27  fIonBac(FLT_MAX)
28 
29 {
30  fVtx.SetXYZT(FLT_MAX,FLT_MAX,FLT_MAX,FLT_MAX);
31  fEnd.SetXYZT(FLT_MAX,FLT_MAX,FLT_MAX,FLT_MAX);
32  fVtxDir.SetXYZ(FLT_MAX,FLT_MAX,FLT_MAX);
33  fEndDir.SetXYZ(FLT_MAX,FLT_MAX,FLT_MAX);
34 
35  //fTrackParBeg = new float[5];
36  //fTrackParEnd = new float[5];
37  for(size_t i=0; i<5; i++) {
38  fTrackParBeg[i] = FLT_MAX;
39  fTrackParEnd[i] = FLT_MAX;
40  }
41 
42  // fCovMatBeg = new float[15];
43  //fCovMatEnd = new float[15];
44  for(size_t i=0; i<15; i++) {
45  fCovMatBeg[i] = FLT_MAX;
46  fCovMatEnd[i] = FLT_MAX;
47  }
48 }//
float fCovMatEnd[15]
covariance matrix at end of track
Definition: Track.h:61
int fChgFwd
Definition: Track.h:63
float fTrackParBeg[5]
Track parameters at beginning of track y, z, curvature, phi, lambda – 5-param track (cm...
Definition: Track.h:58
float fCovMatBeg[15]
covariance matrix at beginning of track – packed in a 1D array, assuming symmetry ...
Definition: Track.h:60
int fChgBac
Definition: Track.h:64
TVector3 fVtxDir
track vertex direction
Definition: Track.h:52
float fIonBac
Definition: Track.h:66
float fMomBeg
momentum of the track at the vertex in GeV/c
Definition: Track.h:48
float fLenBac
length of the track in cm from backwards fit
Definition: Track.h:47
size_t fNHits
number of hits
Definition: Track.h:56
float fTrackParEnd[5]
Track parameters at end of track y, z, curvature, phi, lambda – 5-param track (cm, cm, cm-1, rad, rad)
Definition: Track.h:59
float fChiBac
chisquared backward fit
Definition: Track.h:55
float fLenFwd
< returns the fraction of the total energy contributed to this track that was deposited by the partic...
Definition: Track.h:46
float fIonFwd
Definition: Track.h:65
float fMomEnd
momentum of the track at the end in GeV/c
Definition: Track.h:49
TLorentzVector fVtx
track vertex position 4-vector cm,ns
Definition: Track.h:50
TLorentzVector fEnd
track end position 4-vector cm,ns
Definition: Track.h:51
TVector3 fEndDir
track end direction
Definition: Track.h:53
float fChiFwd
chisquared forward fit
Definition: Track.h:54
Track::Track ( const float &  lenFw,
const float &  lenBk,
const float &  pBeg,
const float &  pEnd,
const TLorentzVector &  vtx,
const TLorentzVector &  end,
const TVector3 &  vtxDir,
const TVector3 &  endDir,
const float &  chiFwd,
const float &  chiBac,
const size_t &  nHit,
const float *  trkParBeg,
const float *  trkParEnd,
const float *  covarBeg,
const float *  covarEnd,
const int &  chargeFwd,
const int &  chargeBac,
const vector< pair< int, float >> &  pidf,
const vector< pair< int, float >> &  pidb,
const float &  ionf,
const float &  ionb,
const vector< pair< UInt_t, TLorentzVector >> &  truePosVtx,
const vector< pair< UInt_t, TLorentzVector >> &  truePosEnd,
const vector< pair< UInt_t, TLorentzVector >> &  trueMomVtx,
const vector< pair< UInt_t, TLorentzVector >> &  trueMomEnd,
const vector< std::pair< int, float >> &  trueEnergy 
)

Definition at line 50 of file Track.cxx.

57  :
58  fLenFwd(lenFw),
59  fLenBac(lenBk),
60  fMomBeg(pBeg),
61  fMomEnd(pEnd),
62  fVtx (vtx),
63  fEnd (end),
64  fVtxDir(vtxDir),
65  fEndDir(endDir),
66  fChiFwd(chiFwd),
67  fChiBac(chiBac),
68  fNHits (nHit),
69  fChgFwd(chargeFwd),
70  fChgBac(chargeBac),
71  fIonFwd(ionf),
72  fIonBac(ionb),
73  fPidFwd(pidf),
74  fPidBac(pidb),
75  fTruePosVtx(truePosVtx),
76  fTruePosEnd(truePosEnd),
77  fTrueMomVtx(trueMomVtx),
78  fTrueMomEnd(trueMomEnd),
79  fTrueEnergy(trueEnergy)
80 {
81 
82  //std::cout << "about to fill fTrackPar" << std::endl;
83 
84  //fTrackParBeg = new float[5];
85  //fTrackParEnd = new float[5];
86  for(size_t i=0; i<5; i++) {
87  fTrackParBeg[i] = trkParBeg[i];
88  fTrackParEnd[i] = trkParEnd[i];
89  }
90 
91  //fCovMatBeg = new float[15];
92  //fCovMatEnd = new float[15];
93  for(size_t i=0; i<15; i++) {
94  fCovMatBeg[i] = covarBeg[i];
95  fCovMatEnd[i] = covarEnd[i];
96  }
97 }//constructor
end
while True: pbar.update(maxval-len(onlies[E][S])) #print iS, "/", len(onlies[E][S]) found = False for...
float fCovMatEnd[15]
covariance matrix at end of track
Definition: Track.h:61
int fChgFwd
Definition: Track.h:63
vector< pair< int, float > > fPidBac
Definition: Track.h:68
float fTrackParBeg[5]
Track parameters at beginning of track y, z, curvature, phi, lambda – 5-param track (cm...
Definition: Track.h:58
float fCovMatBeg[15]
covariance matrix at beginning of track – packed in a 1D array, assuming symmetry ...
Definition: Track.h:60
int fChgBac
Definition: Track.h:64
vector< pair< UInt_t, TLorentzVector > > fTrueMomEnd
4-momentum for each assc&#39;d MCParticle at track end
Definition: Track.h:73
TVector3 fVtxDir
track vertex direction
Definition: Track.h:52
float fIonBac
Definition: Track.h:66
float fMomBeg
momentum of the track at the vertex in GeV/c
Definition: Track.h:48
float fLenBac
length of the track in cm from backwards fit
Definition: Track.h:47
size_t fNHits
number of hits
Definition: Track.h:56
vector< pair< UInt_t, TLorentzVector > > fTruePosVtx
4-position for each assc&#39;d MCParticle at track vertex
Definition: Track.h:70
float fTrackParEnd[5]
Track parameters at end of track y, z, curvature, phi, lambda – 5-param track (cm, cm, cm-1, rad, rad)
Definition: Track.h:59
float fChiBac
chisquared backward fit
Definition: Track.h:55
vector< pair< int, float > > fPidFwd
Definition: Track.h:67
float fLenFwd
< returns the fraction of the total energy contributed to this track that was deposited by the partic...
Definition: Track.h:46
vector< pair< UInt_t, TLorentzVector > > fTruePosEnd
4-position for each assc&#39;d MCParticle at track end
Definition: Track.h:71
float fIonFwd
Definition: Track.h:65
float fMomEnd
momentum of the track at the end in GeV/c
Definition: Track.h:49
vector< pair< UInt_t, TLorentzVector > > fTrueMomVtx
4-momentum for each assc&#39;d MCParticle at track vertex
Definition: Track.h:72
TLorentzVector fVtx
track vertex position 4-vector cm,ns
Definition: Track.h:50
TLorentzVector fEnd
track end position 4-vector cm,ns
Definition: Track.h:51
TVector3 fEndDir
track end direction
Definition: Track.h:53
vector< std::pair< int, float > > fTrueEnergy
true energy (second) [GeV] deposited by MCParticle with trackID (first)
Definition: Track.h:74
float fChiFwd
chisquared forward fit
Definition: Track.h:54

Member Data Documentation

int garana::Track::fChgBac

Definition at line 64 of file Track.h.

int garana::Track::fChgFwd

Definition at line 63 of file Track.h.

float garana::Track::fChiBac

chisquared backward fit

Definition at line 55 of file Track.h.

float garana::Track::fChiFwd

chisquared forward fit

Definition at line 54 of file Track.h.

float garana::Track::fCovMatBeg[15]

covariance matrix at beginning of track – packed in a 1D array, assuming symmetry

Definition at line 60 of file Track.h.

float garana::Track::fCovMatEnd[15]

covariance matrix at end of track

Definition at line 61 of file Track.h.

TLorentzVector garana::Track::fEnd

track end position 4-vector cm,ns

Definition at line 51 of file Track.h.

TVector3 garana::Track::fEndDir

track end direction

Definition at line 53 of file Track.h.

float garana::Track::fIonBac

Definition at line 66 of file Track.h.

float garana::Track::fIonFwd

Definition at line 65 of file Track.h.

float garana::Track::fLenBac

length of the track in cm from backwards fit

Definition at line 47 of file Track.h.

float garana::Track::fLenFwd

< returns the fraction of the total energy contributed to this track that was deposited by the particle contributing the most energy to this track

length of the track in cm from forwards fit

Definition at line 46 of file Track.h.

float garana::Track::fMomBeg

momentum of the track at the vertex in GeV/c

Definition at line 48 of file Track.h.

float garana::Track::fMomEnd

momentum of the track at the end in GeV/c

Definition at line 49 of file Track.h.

size_t garana::Track::fNHits

number of hits

Definition at line 56 of file Track.h.

vector<pair<int,float> > garana::Track::fPidBac

Definition at line 68 of file Track.h.

vector<pair<int,float> > garana::Track::fPidFwd

Definition at line 67 of file Track.h.

float garana::Track::fTrackParBeg[5]

Track parameters at beginning of track y, z, curvature, phi, lambda – 5-param track (cm, cm, cm-1, rad, rad)

Definition at line 58 of file Track.h.

float garana::Track::fTrackParEnd[5]

Track parameters at end of track y, z, curvature, phi, lambda – 5-param track (cm, cm, cm-1, rad, rad)

Definition at line 59 of file Track.h.

vector<std::pair<int,float> > garana::Track::fTrueEnergy

true energy (second) [GeV] deposited by MCParticle with trackID (first)

Definition at line 74 of file Track.h.

vector<pair<UInt_t,TLorentzVector> > garana::Track::fTrueMomEnd

4-momentum for each assc'd MCParticle at track end

Definition at line 73 of file Track.h.

vector<pair<UInt_t,TLorentzVector> > garana::Track::fTrueMomVtx

4-momentum for each assc'd MCParticle at track vertex

Definition at line 72 of file Track.h.

vector<pair<UInt_t,TLorentzVector> > garana::Track::fTruePosEnd

4-position for each assc'd MCParticle at track end

Definition at line 71 of file Track.h.

vector<pair<UInt_t,TLorentzVector> > garana::Track::fTruePosVtx

4-position for each assc'd MCParticle at track vertex

Definition at line 70 of file Track.h.

TLorentzVector garana::Track::fVtx

track vertex position 4-vector cm,ns

Definition at line 50 of file Track.h.

TVector3 garana::Track::fVtxDir

track vertex direction

Definition at line 52 of file Track.h.


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