Skip to content

Commit 9b6b789

Browse files
Merge pull request #24 from MartijnLaarhoven/MartijnLaarhoven-patch-20
[PWGCF] Updating the channel mirroring logic and adding an option to fill histograms run by run
2 parents ea6d304 + f18974c commit 9b6b789

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PWGCF/TwoParticleCorrelations/Tasks/longRangeDihadronCor.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ struct LongRangeDihadronCor {
688688
ampl = 0.;
689689
if (system == SameEvent)
690690
registry.fill(HIST("FT0Amp"), id, ampl);
691-
ampl = ampl / cstFT0RelGain[iCh];
691+
ampl = ampl / cstFT0RelGain[id];
692692
if (system == SameEvent) {
693693
registry.fill(HIST("FT0AmpCorrect"), id, ampl);
694694
histAmpCorrectPerRun[lastRunNumber]->Fill(id, ampl);
@@ -700,7 +700,7 @@ struct LongRangeDihadronCor {
700700
ampl = 0.;
701701
if (system == SameEvent)
702702
registry.fill(HIST("FT0Amp"), id, ampl);
703-
ampl = ampl / cstFT0RelGain[iCh];
703+
ampl = ampl / cstFT0RelGain[id];
704704
if (system == SameEvent) {
705705
registry.fill(HIST("FT0AmpCorrect"), id, ampl);
706706
histAmpCorrectPerRun[lastRunNumber]->Fill(id, ampl);

0 commit comments

Comments
 (0)