Skip to content

Commit 2444e50

Browse files
jesgumalibuild
andauthored
[ALICE3] Only fill enabled histograms in otf-tof (#16282)
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
1 parent c3fc7a7 commit 2444e50

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
@@ -707,7 +707,9 @@ struct OnTheFlyTofPid {
707707
} else {
708708
float x = 0.f;
709709
o2track.getXatLabR(simConfig.innerTOFRadius, x, mMagneticField);
710-
histos.fill(HIST("iTOF/h2HitMap"), o2track.getZAt(x, mMagneticField), simConfig.innerTOFRadius * o2track.getPhiAt(x, mMagneticField));
710+
if (plotsConfig.doQAplots) {
711+
histos.fill(HIST("iTOF/h2HitMap"), o2track.getZAt(x, mMagneticField), simConfig.innerTOFRadius * o2track.getPhiAt(x, mMagneticField));
712+
}
711713
}
712714

713715
const bool activeOuterTOF = isInOuterTOFActiveArea(o2track);
@@ -716,7 +718,9 @@ struct OnTheFlyTofPid {
716718
} else {
717719
float x = 0.f;
718720
o2track.getXatLabR(simConfig.outerTOFRadius, x, mMagneticField);
719-
histos.fill(HIST("oTOF/h2HitMap"), o2track.getZAt(x, mMagneticField), simConfig.outerTOFRadius * o2track.getPhiAt(x, mMagneticField));
721+
if (plotsConfig.doQAplots) {
722+
histos.fill(HIST("oTOF/h2HitMap"), o2track.getZAt(x, mMagneticField), simConfig.outerTOFRadius * o2track.getPhiAt(x, mMagneticField));
723+
}
720724
}
721725

722726
// get mass to calculate velocity
@@ -938,15 +942,15 @@ struct OnTheFlyTofPid {
938942
}
939943
}
940944
}
941-
}
942945

943-
const float deltaTrackLengthInnerTOF = std::abs(trackLengthInnerTOF - trackLengthRecoInnerTOF);
944-
if (trackLengthInnerTOF > 0 && trackLengthRecoInnerTOF > 0) {
945-
histos.fill(HIST("iTOF/h2dDeltaTrackLengthInnerVsPt"), noSmearingPt, deltaTrackLengthInnerTOF);
946-
}
947-
const float deltaTrackLengthOuterTOF = std::abs(trackLengthOuterTOF - trackLengthRecoOuterTOF);
948-
if (trackLengthOuterTOF > 0 && trackLengthRecoOuterTOF > 0) {
949-
histos.fill(HIST("oTOF/h2dDeltaTrackLengthOuterVsPt"), noSmearingPt, deltaTrackLengthOuterTOF);
946+
const float deltaTrackLengthInnerTOF = std::abs(trackLengthInnerTOF - trackLengthRecoInnerTOF);
947+
if (trackLengthInnerTOF > 0 && trackLengthRecoInnerTOF > 0) {
948+
histos.fill(HIST("iTOF/h2dDeltaTrackLengthInnerVsPt"), noSmearingPt, deltaTrackLengthInnerTOF);
949+
}
950+
const float deltaTrackLengthOuterTOF = std::abs(trackLengthOuterTOF - trackLengthRecoOuterTOF);
951+
if (trackLengthOuterTOF > 0 && trackLengthRecoOuterTOF > 0) {
952+
histos.fill(HIST("oTOF/h2dDeltaTrackLengthOuterVsPt"), noSmearingPt, deltaTrackLengthOuterTOF);
953+
}
950954
}
951955

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

0 commit comments

Comments
 (0)