Skip to content

Commit d180000

Browse files
committed
Don't revert tof changes
1 parent 4cb6673 commit d180000

1 file changed

Lines changed: 14 additions & 10 deletions

File tree

ALICE3/TableProducer/OTF/onTheFlyTofPid.cxx

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,9 @@ struct OnTheFlyTofPid {
632632
} else {
633633
float x = 0.f;
634634
o2track.getXatLabR(simConfig.innerTOFRadius, x, mMagneticField);
635-
histos.fill(HIST("iTOF/h2HitMap"), o2track.getZAt(x, mMagneticField), simConfig.innerTOFRadius * o2track.getPhiAt(x, mMagneticField));
635+
if (plotsConfig.doQAplots) {
636+
histos.fill(HIST("iTOF/h2HitMap"), o2track.getZAt(x, mMagneticField), simConfig.innerTOFRadius * o2track.getPhiAt(x, mMagneticField));
637+
}
636638
}
637639

638640
const bool activeOuterTOF = isInOuterTOFActiveArea(o2track);
@@ -641,7 +643,9 @@ struct OnTheFlyTofPid {
641643
} else {
642644
float x = 0.f;
643645
o2track.getXatLabR(simConfig.outerTOFRadius, x, mMagneticField);
644-
histos.fill(HIST("oTOF/h2HitMap"), o2track.getZAt(x, mMagneticField), simConfig.outerTOFRadius * o2track.getPhiAt(x, mMagneticField));
646+
if (plotsConfig.doQAplots) {
647+
histos.fill(HIST("oTOF/h2HitMap"), o2track.getZAt(x, mMagneticField), simConfig.outerTOFRadius * o2track.getPhiAt(x, mMagneticField));
648+
}
645649
}
646650

647651
// get mass to calculate velocity
@@ -863,15 +867,15 @@ struct OnTheFlyTofPid {
863867
}
864868
}
865869
}
866-
}
867870

868-
const float deltaTrackLengthInnerTOF = std::abs(trackLengthInnerTOF - trackLengthRecoInnerTOF);
869-
if (trackLengthInnerTOF > 0 && trackLengthRecoInnerTOF > 0) {
870-
histos.fill(HIST("iTOF/h2dDeltaTrackLengthInnerVsPt"), noSmearingPt, deltaTrackLengthInnerTOF);
871-
}
872-
const float deltaTrackLengthOuterTOF = std::abs(trackLengthOuterTOF - trackLengthRecoOuterTOF);
873-
if (trackLengthOuterTOF > 0 && trackLengthRecoOuterTOF > 0) {
874-
histos.fill(HIST("oTOF/h2dDeltaTrackLengthOuterVsPt"), noSmearingPt, deltaTrackLengthOuterTOF);
871+
const float deltaTrackLengthInnerTOF = std::abs(trackLengthInnerTOF - trackLengthRecoInnerTOF);
872+
if (trackLengthInnerTOF > 0 && trackLengthRecoInnerTOF > 0) {
873+
histos.fill(HIST("iTOF/h2dDeltaTrackLengthInnerVsPt"), noSmearingPt, deltaTrackLengthInnerTOF);
874+
}
875+
const float deltaTrackLengthOuterTOF = std::abs(trackLengthOuterTOF - trackLengthRecoOuterTOF);
876+
if (trackLengthOuterTOF > 0 && trackLengthRecoOuterTOF > 0) {
877+
histos.fill(HIST("oTOF/h2dDeltaTrackLengthOuterVsPt"), noSmearingPt, deltaTrackLengthOuterTOF);
878+
}
875879
}
876880

877881
// Sigmas have been fully calculated. Please populate the NSigma helper table (once per track)

0 commit comments

Comments
 (0)