@@ -345,7 +345,7 @@ struct tofPidCollisionTimeQa {
345345 const float & massT0C = collision.t0CCorrectedValid () ? o2::pid::tof::TOFMass<TrksData::iterator>::GetTOFMass (trk, betaT0C) : 999 .f ;
346346 const float & massT0AC = collision.t0ACValid () ? o2::pid::tof::TOFMass<TrksData::iterator>::GetTOFMass (trk, betaT0AC) : 999 .f ;
347347
348- const float & deltaPi = trk.tofSignal () - trk.tofEvTime () - o2::pid::tof::ExpTimes<TrksData::iterator, o2::track::PID::Pion>:: GetExpectedSignal ( trk);
348+ const float & deltaPi = trk.tofSignal () - trk.tofEvTime () - trk. tofExpTimePi ( );
349349
350350 histos.fill (HIST (" tofbeta/inclusive" ), trk.p (), trk.beta ());
351351 histos.fill (HIST (" tofmass/inclusive" ), trk.p (), trk.mass ());
@@ -367,6 +367,10 @@ struct tofPidCollisionTimeQa {
367367 histos.fill (HIST (" tofmass/EvTimeT0COnly" ), trk.p (), massT0C);
368368 histos.fill (HIST (" tofmass/EvTimeT0ACOnly" ), trk.p (), massT0AC);
369369
370+ if (trk.p () > minPReso && trk.p () < maxPReso) {
371+ histos.fill (HIST (" deltaVsMult/pi" ), trk.evTimeTOFMult (), deltaPi);
372+ histos.fill (HIST (" deltaVsReso/pi" ), trk.evTimeTOFMult (), deltaPi);
373+ }
370374 if (enableDebug) {
371375
372376 histos.fill (HIST (" withtof/p" ), trk.p ());
@@ -375,10 +379,6 @@ struct tofPidCollisionTimeQa {
375379 histos.fill (HIST (" withtof/tofSignal" ), trk.tofSignal ());
376380 histos.fill (HIST (" withtof/beta" ), trk.p (), trk.beta ());
377381 histos.fill (HIST (" withtof/delta" ), trk.p (), deltaPi);
378- if (trk.p () > minPReso && trk.p () < maxPReso) {
379- histos.fill (HIST (" deltaVsMult/pi" ), trk.evTimeTOFMult (), deltaPi);
380- histos.fill (HIST (" deltaVsReso/pi" ), trk.evTimeTOFMult (), deltaPi);
381- }
382382
383383 histos.fill (HIST (" withtof/expP" ), trk.p (), trk.tofExpMom ());
384384 histos.fill (HIST (" withtof/mass" ), trk.mass ());
0 commit comments