15 ExpTrack::ExpTrack() : Track(), fNHits(0), fChi2(0), fTrackLenght(0) {}
51 Float_t ExpTrack::GetFieldVal(Int_t fieldID)
const {
55 case DataFieldID::Track::EExp::kChi2:
return GetChi2();
break;
56 case DataFieldID::Track::EExp::kNHits:
return GetNHits();
break;
57 case DataFieldID::Track::EExp::kTrackLenght:
return GetTrackLenght();
break;
58 case DataFieldID::Track::EExp::kDcaX:
return GetDCA().X();
break;
59 case DataFieldID::Track::EExp::kDcaY:
return GetDCA().Y();
break;
60 case DataFieldID::Track::EExp::kDcaZ:
return GetDCA().Z();
break;
61 case DataFieldID::Track::EExp::kDcaXY:
return GetDCA().Pt();
break;
62 case DataFieldID::Track::EExp::kDca:
return GetDCA().Mag();
break;
64 case DataFieldID::Track::EExp::kTofM2:
return tof->
GetMass2();
break;
65 case DataFieldID::Track::EExp::kToFBeta:
return tof->
GetBeta();
break;
66 case DataFieldID::Track::EExp::kToFFlag:
return tof->
GetFlag();
break;
67 case DataFieldID::Track::EExp::kToFTime:
return tof->
GetTime();
break;
68 case DataFieldID::Track::EExp::kToFEnergy:
return tof->
GetEnergy();
break;
70 case DataFieldID::Track::EExp::kTpcDedx:
return tpc->
GetDeDx();
break;
71 case DataFieldID::Track::EExp::kTpcNHits:
return tpc->
GetNHits();
break;
72 case DataFieldID::Track::EExp::kTpcNsigmaPi:
return tpc->
GetSigmaPion();
break;
73 case DataFieldID::Track::EExp::kTpcNsigmaKa:
return tpc->
GetSigmaKaon();
break;
74 case DataFieldID::Track::EExp::kTpcNsigmaPr:
return tpc->
GetSigmaProton();
break;
75 case DataFieldID::Track::EExp::kTpcNsigmaEl:
return tpc->
GetSigmaElectron();
break;
77 return Track::GetFieldVal(fieldID);
80 TString ExpTrack::GetFieldName(Int_t fieldID)
const {
82 case DataFieldID::Track::EExp::kChi2:
return "#chi^{2} [AU]";
break;
83 case DataFieldID::Track::EExp::kNHits:
return "Nhits [N]";
break;
84 case DataFieldID::Track::EExp::kTrackLenght:
return "L_{track} [cm]";
break;
85 case DataFieldID::Track::EExp::kDcaX:
return "DCA_{x} [cm]";
break;
86 case DataFieldID::Track::EExp::kDcaY:
return "DCA_{Y} [cm]";
break;
87 case DataFieldID::Track::EExp::kDcaZ:
return "DCA_{Z} [cm]";
break;
88 case DataFieldID::Track::EExp::kDcaXY:
return "DCA_{XY} [cm]";
break;
89 case DataFieldID::Track::EExp::kDca:
return "DCA [cm]";
break;
91 case DataFieldID::Track::EExp::kTofM2:
return "m^{2}_{ToF} [GeV^{2}/c^{4}]";
break;
92 case DataFieldID::Track::EExp::kToFBeta:
return "#beta_{ToF} [c]";
break;
93 case DataFieldID::Track::EExp::kToFFlag:
return "#Flag_{ToF} [AU]";
break;
94 case DataFieldID::Track::EExp::kToFTime:
return "#T_{ToF} [AU]";
break;
95 case DataFieldID::Track::EExp::kToFEnergy:
return "#E_{ToF} [GeV/c^{2}]";
break;
97 case DataFieldID::Track::EExp::kTpcDedx:
return "dEdX_{TPC} [AU]";
break;
98 case DataFieldID::Track::EExp::kTpcNHits:
return "#NHits_{TPC} [AU]";
break;
99 case DataFieldID::Track::EExp::kTpcNsigmaPi:
return "n#sigma#pi_{TPC} [AU]";
break;
100 case DataFieldID::Track::EExp::kTpcNsigmaKa:
return "n#sigma K_{TPC} [AU]";
break;
101 case DataFieldID::Track::EExp::kTpcNsigmaPr:
return "n#sigma p_{TPC} [AU]";
break;
102 case DataFieldID::Track::EExp::kTpcNsigmaEl:
return "n#sigma e_{TPC} [AU]";
break;
104 return Track::GetFieldName(fieldID);