Skip to content

Commit 1c16d55

Browse files
authored
[PWGCF] Solved run-by-run histo bug (#15091)
1 parent 8c0d0b4 commit 1c16d55

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

PWGCF/TwoParticleCorrelations/Tasks/longRangeDihadronCor.cxx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,8 @@ struct LongRangeDihadronCor {
691691
ampl = ampl / cstFT0RelGain[id];
692692
if (system == SameEvent) {
693693
registry.fill(HIST("FT0AmpCorrect"), id, ampl);
694-
histAmpCorrectPerRun[lastRunNumber]->Fill(id, ampl);
694+
if (cfgFwdConfig.cfgRunbyRunAmplitudeFT0)
695+
histAmpCorrectPerRun[lastRunNumber]->Fill(id, ampl);
695696
}
696697
} else if (fitType == kFT0A) {
697698
id = ft0.channelA()[iCh];
@@ -703,7 +704,8 @@ struct LongRangeDihadronCor {
703704
ampl = ampl / cstFT0RelGain[id];
704705
if (system == SameEvent) {
705706
registry.fill(HIST("FT0AmpCorrect"), id, ampl);
706-
histAmpCorrectPerRun[lastRunNumber]->Fill(id, ampl);
707+
if (cfgFwdConfig.cfgRunbyRunAmplitudeFT0)
708+
histAmpCorrectPerRun[lastRunNumber]->Fill(id, ampl);
707709
}
708710
} else {
709711
LOGF(fatal, "Cor Index %d out of range", fitType);

0 commit comments

Comments
 (0)