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());
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());
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());
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());
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());
73 return trk;
74 }
75 else return trk;
76}