BOSS 7.0.3
BESIII Offline Software System
Loading...
Searching...
No Matches
m_trkInfo Class Reference

#include <trkInfo.h>

Public Member Functions

 m_trkInfo (int index, double momentum, HepLorentzVector trkp, RecMdcKalTrack *mdcKaltrk)
 
int getIndex ()
 
double getMom ()
 
HepLorentzVector getTrk ()
 
HepLorentzVector getTrk (std::string m_particle_type)
 
 m_trkInfo (int index, double momentum, HepLorentzVector trkp, RecMdcKalTrack *mdcKaltrk)
 
int getIndex ()
 
double getMom ()
 
HepLorentzVector getTrk ()
 
HepLorentzVector getTrk (std::string m_particle_type)
 

Detailed Description

Constructor & Destructor Documentation

◆ m_trkInfo() [1/2]

m_trkInfo::m_trkInfo ( int  index,
double  momentum,
HepLorentzVector  trkp,
RecMdcKalTrack mdcKaltrk 
)
inline

Definition at line 12 of file Analysis/Physics/PsiPrime/PipiJpsiAlg/PipiJpsiAlg-00-00-03/PipiJpsiAlg/trkInfo.h.

12 {
13 i=index;
14 mom=momentum;
15 trk=trkp;
16 mdcTrk=mdcKaltrk;
17 }
**********INTEGER nmxhep !maximum number of particles DOUBLE PRECISION vhep INTEGER jdahep COMMON hepevt $ !serial number $ !number of particles $ !status code $ !particle ident KF $ !parent particles $ !childreen particles $ !four momentum

◆ m_trkInfo() [2/2]

m_trkInfo::m_trkInfo ( int  index,
double  momentum,
HepLorentzVector  trkp,
RecMdcKalTrack mdcKaltrk 
)
inline

Definition at line 12 of file InstallArea/include/PipiJpsiAlg/PipiJpsiAlg/trkInfo.h.

12 {
13 i=index;
14 mom=momentum;
15 trk=trkp;
16 mdcTrk=mdcKaltrk;
17 }

Member Function Documentation

◆ getIndex() [1/2]

int m_trkInfo::getIndex ( )
inline

◆ getIndex() [2/2]

int m_trkInfo::getIndex ( )
inline

Definition at line 18 of file InstallArea/include/PipiJpsiAlg/PipiJpsiAlg/trkInfo.h.

18{return i;}

◆ getMom() [1/2]

double m_trkInfo::getMom ( )
inline

◆ getMom() [2/2]

double m_trkInfo::getMom ( )
inline

Definition at line 19 of file InstallArea/include/PipiJpsiAlg/PipiJpsiAlg/trkInfo.h.

19{return mom;}

◆ getTrk() [1/4]

HepLorentzVector m_trkInfo::getTrk ( )
inline

◆ getTrk() [2/4]

HepLorentzVector m_trkInfo::getTrk ( )
inline

Definition at line 20 of file InstallArea/include/PipiJpsiAlg/PipiJpsiAlg/trkInfo.h.

20{return trk;}

◆ getTrk() [3/4]

HepLorentzVector m_trkInfo::getTrk ( std::string  m_particle_type)
inline

Definition at line 29 of file Analysis/Physics/PsiPrime/PipiJpsiAlg/PipiJpsiAlg-00-00-03/PipiJpsiAlg/trkInfo.h.

29 {
30 if(m_part_type=="e"){
32 trk.setPx(mdcTrk->px());
33 trk.setPy(mdcTrk->py());
34 trk.setPz(mdcTrk->pz());
35 double p3(mdcTrk->p());
36 trk.setE( sqrt(p3*p3 + mmass[0]*mmass[0]) );
37 return trk;
38 }
39 if(m_part_type=="muon"){
41 trk.setPx(mdcTrk->px());
42 trk.setPy(mdcTrk->py());
43 trk.setPz(mdcTrk->pz());
44 double p3(mdcTrk->p());
45 trk.setE( sqrt(p3*p3 + mmass[1]*mmass[1]) );
46 return trk;
47 }
48 if(m_part_type=="pion"){
50 trk.setPx(mdcTrk->px());
51 trk.setPy(mdcTrk->py());
52 trk.setPz(mdcTrk->pz());
53 double p3(mdcTrk->p());
54 trk.setE( sqrt(p3*p3 + mmass[2]*mmass[2]) );
55 return trk;
56 }
57 if(m_part_type=="kion"){
59 trk.setPx(mdcTrk->px());
60 trk.setPy(mdcTrk->py());
61 trk.setPz(mdcTrk->pz());
62 double p3(mdcTrk->p());
63 trk.setE( sqrt(p3*p3 + mmass[3]*mmass[3]) );
64 return trk;
65 }
66 if(m_part_type=="proton"){
68 trk.setPx(mdcTrk->px());
69 trk.setPy(mdcTrk->py());
70 trk.setPz(mdcTrk->pz());
71 double p3(mdcTrk->p());
72 trk.setE( sqrt(p3*p3 + mmass[4]*mmass[4]) );
73 return trk;
74 }
75 else return trk;
76}

◆ getTrk() [4/4]

HepLorentzVector m_trkInfo::getTrk ( std::string  m_particle_type)

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