Skip to content

Commit 49c3604

Browse files
[PWGCF] Updating the channel mirroring logic and adding an option to fill histograms run by run (#14940)
1 parent 4c9ebd5 commit 49c3604

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

PWGCF/TwoParticleCorrelations/Tasks/longRangeDihadronCor.cxx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,10 @@
5454
#include "TRandom3.h"
5555
#include <TPDGCode.h>
5656

57+
#include <map>
58+
#include <memory>
5759
#include <string>
60+
#include <utility>
5861
#include <vector>
5962

6063
using namespace o2;
@@ -685,7 +688,7 @@ struct LongRangeDihadronCor {
685688
ampl = 0.;
686689
if (system == SameEvent)
687690
registry.fill(HIST("FT0Amp"), id, ampl);
688-
ampl = ampl / cstFT0RelGain[iCh];
691+
ampl = ampl / cstFT0RelGain[id];
689692
if (system == SameEvent) {
690693
registry.fill(HIST("FT0AmpCorrect"), id, ampl);
691694
histAmpCorrectPerRun[lastRunNumber]->Fill(id, ampl);
@@ -697,7 +700,7 @@ struct LongRangeDihadronCor {
697700
ampl = 0.;
698701
if (system == SameEvent)
699702
registry.fill(HIST("FT0Amp"), id, ampl);
700-
ampl = ampl / cstFT0RelGain[iCh];
703+
ampl = ampl / cstFT0RelGain[id];
701704
if (system == SameEvent) {
702705
registry.fill(HIST("FT0AmpCorrect"), id, ampl);
703706
histAmpCorrectPerRun[lastRunNumber]->Fill(id, ampl);

0 commit comments

Comments
 (0)