28 Float_t McTrack::GetFieldVal(Int_t fieldID)
const {
30 case DataFieldID::Track::EMc::kXfr:
return fFreez.X();
break;
31 case DataFieldID::Track::EMc::kYfr:
return fFreez.Y();
break;
32 case DataFieldID::Track::EMc::kZfr:
return fFreez.Z();
break;
33 case DataFieldID::Track::EMc::kTfr:
return fFreez.T();
break;
34 case DataFieldID::Track::EMc::kXstar:
return fStart.X();
break;
36 case DataFieldID::Track::EMc::kYstart:
return fStart.Y();
break;
37 case DataFieldID::Track::EMc::kZstart:
return fStart.Z();
break;
38 case DataFieldID::Track::EMc::kTstart:
return fStart.T();
break;
39 case DataFieldID::Track::EMc::kPdg:
return GetPdg();
break;
40 case DataFieldID::Track::EMc::kXYstart:
return fStart.Pt();
break;
42 case DataFieldID::Track::EMc::kXYfr:
return fFreez.Pt();
break;
44 return Track::GetFieldVal(fieldID);
47 TString McTrack::GetFieldName(Int_t fieldID)
const {
49 case DataFieldID::Track::EMc::kXfr:
return "X_{fr} [fm]";
break;
50 case DataFieldID::Track::EMc::kYfr:
return "Y_{fr} [fm]";
break;
51 case DataFieldID::Track::EMc::kZfr:
return "Z_{fr} [fm]";
break;
52 case DataFieldID::Track::EMc::kTfr:
return "T_{fr} [fm/c]";
break;
53 case DataFieldID::Track::EMc::kXstar:
return "X_{start} [cm]";
break;
55 case DataFieldID::Track::EMc::kYstart:
return "T_{start} [cm]";
break;
56 case DataFieldID::Track::EMc::kZstart:
return "Z_{start} [cm]";
break;
57 case DataFieldID::Track::EMc::kTstart:
return "T_{start} [ns]";
break;
58 case DataFieldID::Track::EMc::kPdg:
return "Pdg [AU]";
break;
59 case DataFieldID::Track::EMc::kXYstart:
return "XY_{start} [cm]";
break;
61 case DataFieldID::Track::EMc::kXYfr:
return "XY_{fr} [fm]";
break;
63 return Track::GetFieldName(fieldID);