Skip to content

Commit 4b70feb

Browse files
authored
Add files via upload
[PWGCF] Solved run-by-run history bug
1 parent 5690bee commit 4b70feb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

PWGCF/TwoParticleCorrelations/Tasks/longRangeDihadronCor.cxx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ struct LongRangeDihadronCor {
690690
registry.fill(HIST("FT0AmpCorrect"), id, ampl);
691691
if (cfgFwdConfig.cfgRunbyRunAmplitudeFT0)
692692
histAmpCorrectPerRun[lastRunNumber]->Fill(id, ampl);
693-
}
693+
}
694694
} else if (fitType == kFT0A) {
695695
id = ft0.channelA()[iCh];
696696
ampl = ft0.amplitudeA()[iCh];
@@ -842,7 +842,7 @@ struct LongRangeDihadronCor {
842842
bool mirrorChannelA = false;
843843
if (cfgFwdConfig.cfgMirrorFT0ADeadChannels)
844844
mirrorChannelA = isMirrorId(chanelAid, kFT0A);
845-
845+
846846
if (system == SameEvent) {
847847
registry.fill(HIST("Trig_hist_FT0A_FT0C"), fSampleIndex, posZ, 0.5, eventWeight * amplA);
848848
}
@@ -859,7 +859,7 @@ struct LongRangeDihadronCor {
859859
bool mirrorChannelC = false;
860860
if (cfgFwdConfig.cfgMirrorFT0CDeadChannels)
861861
mirrorChannelC = isMirrorId(chanelCid, kFT0C);
862-
862+
863863
// fill the right sparse and histograms
864864
if (system == SameEvent) {
865865
registry.fill(HIST("deltaEta_deltaPhi_same_FT0A_FT0C"), deltaPhi, deltaEta, amplA * amplC * eventWeight * triggerWeight);
@@ -873,11 +873,11 @@ struct LongRangeDihadronCor {
873873
sameFt0aFt0c->getPairHist()->Fill(step, fSampleIndex, posZ, 0.5, 0.5, RecoDecay::constrainAngle(phiA - phiC - 2 * PIHalf, -PIHalf), deltaEta, amplA * amplC * eventWeight * triggerWeight);
874874
} else if (system == MixedEvent) {
875875
registry.fill(HIST("deltaEta_deltaPhi_mixed_FT0A_FT0C"), deltaPhi, deltaEta, amplA * amplC * eventWeight * triggerWeight);
876-
mixedFt0aFt0c->getPairHist()->Fill(step, fSampleIndex, posZ, 0.5, 0.5, deltaPhi, deltaEta, amplA * amplC * eventWeight * triggerWeight);
876+
mixedFt0aFt0c->getPairHist()->Fill(step, fSampleIndex, posZ, 0.5, 0.5, deltaPhi, deltaEta, amplA * amplC * eventWeight * triggerWeight);
877877
if (mirrorChannelA) {
878878
mixedFt0aFt0c->getPairHist()->Fill(step, fSampleIndex, posZ, 0.5, 0.5, RecoDecay::constrainAngle(phiA + 2 * PIHalf - phiC, -PIHalf), deltaEta, amplA * amplC * eventWeight * triggerWeight);
879879
if (mirrorChannelC)
880-
mixedFt0aFt0c->getPairHist()->Fill(step, fSampleIndex, posZ, 0.5, 0.5, deltaPhi, deltaEta, amplA * amplC * eventWeight * triggerWeight);
880+
mixedFt0aFt0c->getPairHist()->Fill(step, fSampleIndex, posZ, 0.5, 0.5, deltaPhi, deltaEta, amplA * amplC * eventWeight * triggerWeight);
881881
}
882882
if (mirrorChannelC)
883883
mixedFt0aFt0c->getPairHist()->Fill(step, fSampleIndex, posZ, 0.5, 0.5, RecoDecay::constrainAngle(phiA - phiC - 2 * PIHalf, -PIHalf), deltaEta, amplA * amplC * eventWeight * triggerWeight);
@@ -1251,7 +1251,7 @@ struct LongRangeDihadronCor {
12511251
return;
12521252
}
12531253

1254-
int currentRunNumber = bc.runNumber();
1254+
int currentRunNumber = bc.runNumber();
12551255
if (cfgFwdConfig.cfgRunbyRunAmplitudeFT0 && currentRunNumber != lastRunNumber) {
12561256
lastRunNumber = currentRunNumber;
12571257
if (std::find(runNumbers.begin(), runNumbers.end(), currentRunNumber) == runNumbers.end()) {

0 commit comments

Comments
 (0)