Skip to content

Commit 2ca5480

Browse files
committed
correct filling of corr container
1 parent bb8659e commit 2ca5480

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

PWGHF/HFC/Tasks/taskFlow.cxx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1316,10 +1316,10 @@ struct HfTaskFlow {
13161316

13171317
if (!fillingHFcontainer) {
13181318
// fill pair correlations
1319-
target->getPairHist()->Fill(step, sampleIndex, eta1 - eta2, pt2, pt1, multiplicity, deltaPhi, posZ,
1319+
target->getPairHist()->Fill(step, eta1 - eta2, pt2, pt1, multiplicity, deltaPhi, posZ, sampleIndex,
13201320
triggerWeight * associatedWeight);
13211321
} else {
1322-
target->getPairHist()->Fill(step, sampleIndex, eta1 - eta2, pt2, pt1, multiplicity, deltaPhi, posZ, invmass,
1322+
target->getPairHist()->Fill(step, eta1 - eta2, pt2, pt1, multiplicity, deltaPhi, posZ, invmass, sampleIndex,
13231323
triggerWeight * associatedWeight);
13241324
}
13251325

@@ -1484,10 +1484,10 @@ struct HfTaskFlow {
14841484
deltaPhi = RecoDecay::constrainAngle(deltaPhi, -PIHalf);
14851485

14861486
if (!fillingHFcontainer) {
1487-
target->getPairHist()->Fill(step, sampleIndex, eta1 - eta2, pt2, pt1, multiplicity, deltaPhi, posZ,
1487+
target->getPairHist()->Fill(step, eta1 - eta2, pt2, pt1, multiplicity, deltaPhi, posZ, sampleIndex,
14881488
triggerWeight * associatedWeight);
14891489
} else {
1490-
target->getPairHist()->Fill(step, sampleIndex, eta1 - eta2, pt2, pt1, multiplicity, deltaPhi, posZ, invmass,
1490+
target->getPairHist()->Fill(step, eta1 - eta2, pt2, pt1, multiplicity, deltaPhi, posZ, invmass, sampleIndex,
14911491
triggerWeight * associatedWeight);
14921492
}
14931493

@@ -1617,10 +1617,10 @@ struct HfTaskFlow {
16171617
deltaPhi = RecoDecay::constrainAngle(deltaPhi, -PIHalf); // set range of delta phi in (-pi/2 , 3/2*pi)
16181618

16191619
if (!fillingHFcontainer) {
1620-
target->getPairHist()->Fill(step, sampleIndex, eta1 - eta2, pt1, pt1, multiplicity, deltaPhi, posZ,
1620+
target->getPairHist()->Fill(step, eta1 - eta2, pt1, pt1, multiplicity, deltaPhi, posZ, sampleIndex,
16211621
triggerWeight * associatedWeight);
16221622
} else {
1623-
target->getPairHist()->Fill(step, sampleIndex, eta1 - eta2, pt1, pt1, multiplicity, deltaPhi, posZ, invmass,
1623+
target->getPairHist()->Fill(step, eta1 - eta2, pt1, pt1, multiplicity, deltaPhi, posZ, invmass, sampleIndex,
16241624
triggerWeight * associatedWeight);
16251625
}
16261626

@@ -1665,10 +1665,10 @@ struct HfTaskFlow {
16651665
deltaPhi = RecoDecay::constrainAngle(deltaPhi, -PIHalf); // set range of delta phi in (-pi/2 , 3/2*pi)
16661666

16671667
if (!fillingHFcontainer) {
1668-
target->getPairHist()->Fill(step, sampleIndex, eta1 - eta2, pt1, pt1, multiplicity, deltaPhi, posZ,
1668+
target->getPairHist()->Fill(step, eta1 - eta2, pt1, pt1, multiplicity, deltaPhi, posZ, sampleIndex,
16691669
amplitude * triggerWeight * associatedWeight);
16701670
} else {
1671-
target->getPairHist()->Fill(step, sampleIndex, eta1 - eta2, pt1, pt1, multiplicity, deltaPhi, posZ, invmass,
1671+
target->getPairHist()->Fill(step, eta1 - eta2, pt1, pt1, multiplicity, deltaPhi, posZ, invmass, sampleIndex,
16721672
amplitude * triggerWeight * associatedWeight);
16731673
}
16741674

@@ -1763,7 +1763,7 @@ struct HfTaskFlow {
17631763
float deltaPhi = phi1 - phi2;
17641764
deltaPhi = RecoDecay::constrainAngle(deltaPhi, -PIHalf); // set range of delta phi in (-pi/2 , 3/2*pi)
17651765

1766-
target->getPairHist()->Fill(step, sampleIndex, eta1 - eta2, pt1, pt1, multiplicity, deltaPhi, posZ,
1766+
target->getPairHist()->Fill(step, eta1 - eta2, pt1, pt1, multiplicity, deltaPhi, posZ, sampleIndex,
17671767
triggerWeight * associatedWeight);
17681768

17691769
// FILL QA PLOTS for associated particle
@@ -1796,7 +1796,7 @@ struct HfTaskFlow {
17961796
float deltaPhi = phi1 - phi2;
17971797
deltaPhi = RecoDecay::constrainAngle(deltaPhi, -PIHalf); // set range of delta phi in (-pi/2 , 3/2*pi)
17981798

1799-
target->getPairHist()->Fill(step, sampleIndex, eta1 - eta2, pt1, pt1, multiplicity, deltaPhi, posZ,
1799+
target->getPairHist()->Fill(step, eta1 - eta2, pt1, pt1, multiplicity, deltaPhi, posZ, sampleIndex,
18001800
amplitude * triggerWeight * associatedWeight);
18011801

18021802
// FILL QA PLOTS for associated particle
@@ -1845,7 +1845,7 @@ struct HfTaskFlow {
18451845
auto etaC = getEtaFT0(channelIdC, isFT0C);
18461846
float deltaPhi = RecoDecay::constrainAngle(phiA - phiC, -PIHalf);
18471847

1848-
target->getPairHist()->Fill(step, sampleIndex, etaA - etaC, 0.f, 0.f, multiplicity, deltaPhi, posZ,
1848+
target->getPairHist()->Fill(step, etaA - etaC, 0.f, 0.f, multiplicity, deltaPhi, posZ, sampleIndex,
18491849
amplitude * triggerWeight * associatedWeight);
18501850

18511851
if (sameEvent && (loopCounter == 1) && (step == CorrelationContainer::kCFStepReconstructed)) {

0 commit comments

Comments
 (0)