13 #include <analysis/VariableManager/Manager.h>
27 namespace TOPVariable {
33 const TOPLikelihood* getTOPLikelihood(
const Particle* particle);
40 const ExtHit* getExtHit(
const Particle* particle);
47 double getSlotID(
const Particle* particle);
52 TVector3 getLocalPosition(
const Particle* particle);
57 TVector3 getLocalPositionMCMatch(
const Particle* particle);
62 TVector3 getLocalMomentum(
const Particle* particle);
67 double getTOF(
const Particle* particle);
72 double getTOFExpert(
const Particle* particle,
const std::vector<double>& vars);
77 double getAverageTimeOfFirst5(
const Particle* particle);
83 int countHits(
const Particle* particle,
double tmin,
double tmax,
bool clean =
true);
88 int countRawHits(
const Particle* particle,
double tmin,
double tmax);
93 double getExpectedPhotonCount(
const Particle* particle,
int pdg = 0);
98 double topDigitCount(
const Particle* particle);
103 double extrapTrackToTOPz(
const Particle* particle);
108 double extrapTrackToTOPtheta(
const Particle* particle);
113 double extrapTrackToTOPphi(
const Particle* particle);
118 double topBackgroundDigitCount(
const Particle* particle);
123 double topBackgroundDigitCountRaw(
const Particle* particle);
128 double topRawDigitCount(
const Particle* particle);
133 double topDigitGapSize(
const Particle* particle);
140 double topCountPhotonsAfterLargesGapWithin(
const Particle* particle,
141 double min,
double max);
146 double topReflectedDigitCount(
const Particle* particle);
151 double getTOPLocalX(
const Particle* particle);
156 double getTOPLocalY(
const Particle* particle);
161 double getTOPLocalZ(
const Particle* particle);
166 double getTOPLocalXMCMatch(
const Particle* particle);
171 double getTOPLocalYMCMatch(
const Particle* particle);
176 double getTOPLocalZMCMatch(
const Particle* particle);
181 double getTOPLocalPhi(
const Particle* particle);
186 double getTOPLocalTheta(
const Particle* particle);
191 double getTOPPhotonCount(
const Particle* particle);
196 double getExpectedTOPPhotonCount(
const Particle* particle,
197 const std::vector<double>& vars);
202 double countTOPHitsInInterval(
const Particle* particle,
203 const std::vector<double>& vars);
208 double countTOPHitsInFirst20ns(
const Particle* particle);
213 double countRawTOPHitsInInterval(
const Particle* particle,
214 const std::vector<double>& vars);
219 double getFlag(
const Particle* particle);
224 double getElectronLogL(
const Particle* particle);
229 double getMuonLogL(
const Particle* particle);
234 double getPionLogL(
const Particle* particle);
239 double getKaonLogL(
const Particle* particle);
244 double getProtonLogL(
const Particle* particle);
251 double isTOPRecBunchReconstructed([[maybe_unused]]
const Particle* particle);
256 double TOPRecBunchNumber([[maybe_unused]]
const Particle* particle);
261 double TOPRecBunchCurrentOffset([[maybe_unused]]
const Particle* particle);
266 double TOPRecBunchTrackCount([[maybe_unused]]
const Particle* particle);
271 double TOPRecBunchUsedTrackCount([[maybe_unused]]
const Particle* particle);
278 double TOPRawPhotonsInSlot([[maybe_unused]]
const Particle* particle,
279 const std::vector<double>& vars);
284 double TOPGoodPhotonsInSlot([[maybe_unused]]
const Particle* particle,
285 const std::vector<double>& vars);
290 double TOPTracksInSlot([[maybe_unused]]
const Particle* particle);