Skip to content

Commit 2d99f6c

Browse files
authored
[PWGEM,PWGEM-36] Fix some bugs in flow task (#15996)
1 parent 68356aa commit 2d99f6c

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

PWGEM/PhotonMeson/Tasks/taskPi0FlowEMC.cxx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ struct TaskPi0FlowEMC {
124124
Configurable<bool> cfgDoM02{"cfgDoM02", false, "Flag to enable flow vs M02 for single photons"};
125125
Configurable<bool> cfgDoPlaneQA{"cfgDoPlaneQA", false, "Flag to enable QA plots comparing in and out of plane"};
126126
Configurable<float> cfgMaxQVector{"cfgMaxQVector", 20.f, "Maximum allowed absolute QVector value."};
127-
Configurable<float> cfgMaxAsymmetry{"cfgMaxAsymmetry", 0.1f, "Maximum allowed asymmetry for photon pairs used in calibration."};
128127

129128
// configurable axis
130129
ConfigurableAxis thnConfigAxisInvMass{"thnConfigAxisInvMass", {400, 0.0, 0.8}, "invariant mass axis for the neutral meson"};
@@ -226,7 +225,7 @@ struct TaskPi0FlowEMC {
226225
std::string prefix = "mixingConfig";
227226
ConfigurableAxis cfgVtxBins{"cfgVtxBins", {VARIABLE_WIDTH, -10.0f, -8.f, -6.f, -4.f, -2.f, 0.f, 2.f, 4.f, 6.f, 8.f, 10.f}, "Mixing bins - z-vertex"};
228227
ConfigurableAxis cfgCentBins{"cfgCentBins", {VARIABLE_WIDTH, 0.0f, 5.0f, 10.0f, 20.0f, 30.0f, 40.0f, 50.0f, 60.0f, 70.0f, 80.0f, 90.0f, 100.f}, "Mixing bins - centrality"};
229-
ConfigurableAxis cfgEPBins{"cfgEPBins", {8, o2::constants::math::PIHalf, o2::constants::math::PIHalf}, "Mixing bins - event plane angle"};
228+
ConfigurableAxis cfgEPBins{"cfgEPBins", {8, -o2::constants::math::PIHalf, o2::constants::math::PIHalf}, "Mixing bins - event plane angle"};
230229
ConfigurableAxis cfgOccupancyBins{"cfgOccupancyBins", {VARIABLE_WIDTH, 0, 100, 500, 1000, 2000}, "Mixing bins - occupancy"};
231230
Configurable<int> cfgMixingDepth{"cfgMixingDepth", 2, "Mixing depth"};
232231
} mixingConfig;
@@ -1342,6 +1341,10 @@ struct TaskPi0FlowEMC {
13421341
// event selection
13431342
continue;
13441343
}
1344+
if (!isQvecGood(getAllQvec(c1)) || !isQvecGood(getAllQvec(c2))) {
1345+
// selection based on QVector
1346+
continue;
1347+
}
13451348
runNow = c1.runNumber();
13461349
if (runNow != runBefore) {
13471350
initCCDB(c1);
@@ -1440,8 +1443,6 @@ struct TaskPi0FlowEMC {
14401443
registry.fill(HIST("clusterQA/hEClusterBefore"), photon.e()); // before cuts
14411444
registry.fill(HIST("clusterQA/hClusterEtaPhiBefore"), photon.phi(), photon.eta()); // before cuts
14421445
}
1443-
auto matchedPrimsPerCluster = matchedPrims.sliceBy(perEMCClusterMT, photon.globalIndex());
1444-
auto matchedSecondsPerCluster = matchedSeconds.sliceBy(perEMCClusterMS, photon.globalIndex());
14451446
if (!(emcFlags.test(photon.globalIndex()))) {
14461447
continue;
14471448
}
@@ -1468,7 +1469,7 @@ struct TaskPi0FlowEMC {
14681469
registry.fill(HIST("p3DM02Flow"), photon.m02(), photon.pt(), cent, scalprodCand);
14691470
registry.fill(HIST("h3DSparsePi0"), photon.m02(), photon.pt(), cent);
14701471
}
1471-
return;
1472+
continue;
14721473
} // end of loop over single cluster
14731474
} // end of loop over collisions
14741475
} // processM02
@@ -1500,8 +1501,8 @@ struct TaskPi0FlowEMC {
15001501
continue;
15011502
}
15021503

1503-
ROOT::Math::PtEtaPhiMVector v1(g1.pt(), g1.eta(), g1.phi(), 0.);
1504-
ROOT::Math::PtEtaPhiMVector v2(g2.pt(), g2.eta(), g2.phi(), 0.);
1504+
ROOT::Math::PtEtaPhiMVector v1(g1.corrPt(), g1.eta(), g1.phi(), 0.);
1505+
ROOT::Math::PtEtaPhiMVector v2(g2.corrPt(), g2.eta(), g2.phi(), 0.);
15051506
ROOT::Math::PtEtaPhiMVector vMeson = v1 + v2;
15061507

15071508
float openingAngle = std::acos(v1.Vect().Dot(v2.Vect()) / (v1.P() * v2.P()));

0 commit comments

Comments
 (0)