Skip to content

Commit 2790e56

Browse files
authored
[PWGEM,Photon] Add new QA histogram to monitor cluster angle dsitribu… (#17834)
1 parent 24a51f8 commit 2790e56

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

PWGEM/PhotonMeson/Tasks/taskPi0FlowEMC.cxx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ struct TaskPi0FlowEMC {
133133
ConfigurableAxis thnConfigAxisCosDeltaPhi{"thnConfigAxisCosDeltaPhi", {8, -1., 1.}, "cos(delta phi) axis for the current event"};
134134
ConfigurableAxis thnConfigAxisM02{"thnConfigAxisM02", {200, 0., 5.}, "M02 axis for the EMCal cluster"};
135135
ConfigurableAxis thnConfigAxisEnergyCalib{"thnConfigAxisEnergyCalib", {200, 0., 20.}, "energy axis for the emcal clusters for the calibration process"};
136+
ConfigurableAxis thConfigAxisEtaPhiAngle{"thConfigAxisEtaPhiAngle", {180, -o2::constants::math::PI, o2::constants::math::PI}, "atan2(#Delta#eta,#Delta#varphi) axis (deg)"};
136137

137138
EMPhotonEventCut fEMEventCut;
138139
struct : ConfigurableGroup {
@@ -417,6 +418,7 @@ struct TaskPi0FlowEMC {
417418
const AxisSpec thnAxisMixingVtx{mixingConfig.cfgVtxBins, "#it{z} (cm)"};
418419
const AxisSpec thnAxisMixingCent{mixingConfig.cfgCentBins, "Centrality (%)"};
419420
const AxisSpec thnAxisMixingEP{mixingConfig.cfgEPBins, Form("cos(%d#varphi)", harmonic.value)};
421+
const AxisSpec thAxisEtaPhiAngle{thConfigAxisEtaPhiAngle, "atan2(#Delta#eta,#Delta#varphi) (rad)"};
420422

421423
if (!doprocessM02) {
422424
registry.add("hSparsePi0Flow", "<v_n> vs m_{inv} vs p_T vs cent for same event", HistType::kTProfile3D, {thnAxisInvMass, thnAxisPt, thnAxisCent});
@@ -470,6 +472,8 @@ struct TaskPi0FlowEMC {
470472
registry.add("mesonQA/hInvMassPtMixed", "Histo for inv pair mass vs pt for mixed event", HistType::kTH2D, {thnAxisInvMass, thnAxisPt});
471473
registry.add("mesonQA/hTanThetaPhiMixed", "Histo for identification of conversion cluster for mixed event", HistType::kTH2D, {thnAxisInvMass, thAxisTanThetaPhi});
472474
registry.add("mesonQA/hAlphaPtMixed", "Histo of meson asymmetry vs pT for mixed event", HistType::kTH2D, {thAxisAlpha, thnAxisPt});
475+
registry.add("mesonQA/hEtaPhiAngleMassCent", "atan2(#Delta#eta,#Delta#varphi) vs m_{inv} vs cent, same event", HistType::kTH3D, {thAxisEtaPhiAngle, thnAxisInvMass, thnAxisCent});
476+
registry.add("mesonQA/hEtaPhiAngleMassCentMixed", "atan2(#Delta#eta,#Delta#varphi) vs m_{inv} vs cent, mixed event", HistType::kTH3D, {thAxisEtaPhiAngle, thnAxisInvMass, thnAxisCent});
473477
}
474478

475479
if (correctionConfig.doEMCalCalib.value) {
@@ -1066,6 +1070,7 @@ struct TaskPi0FlowEMC {
10661070

10671071
float dTheta = v1.Theta() - v2.Theta();
10681072
float dPhi = v1.Phi() - v2.Phi();
1073+
float dEta = v1.Eta() - v2.Eta();
10691074
float openingAngle = std::acos(v1.Vect().Dot(v2.Vect()) / (v1.P() * v2.P()));
10701075

10711076
registry.fill(HIST("hMesonCuts"), 1);
@@ -1088,6 +1093,7 @@ struct TaskPi0FlowEMC {
10881093
registry.fill(HIST("mesonQA/hInvMassPt"), vMeson.M(), vMeson.Pt());
10891094
registry.fill(HIST("mesonQA/hTanThetaPhi"), vMeson.M(), getAngleDegree(std::atan(dTheta / dPhi)));
10901095
registry.fill(HIST("mesonQA/hAlphaPt"), (v1.E() - v2.E()) / (v1.E() + v2.E()), vMeson.Pt());
1096+
registry.fill(HIST("mesonQA/hEtaPhiAngleMassCent"), RecoDecay::constrainAngle(std::atan2(dEta, dPhi), -o2::constants::math::PI), vMeson.M(), getCentrality(collision));
10911097
}
10921098
if (mesonConfig.enableTanThetadPhi.value && mesonConfig.minTanThetadPhi > std::fabs(getAngleDegree(std::atan(dTheta / dPhi)))) {
10931099
registry.fill(HIST("hMesonCuts"), 5);
@@ -1227,6 +1233,7 @@ struct TaskPi0FlowEMC {
12271233

12281234
float dTheta = v1.Theta() - v2.Theta();
12291235
float dPhi = v1.Phi() - v2.Phi();
1236+
float dEta = v1.Eta() - eta2;
12301237
float openingAngle = std::acos(v1.Vect().Dot(v2.Vect()) / (v1.P() * v2.P()));
12311238

12321239
registry.fill(HIST("hMesonCutsMixed"), 1);
@@ -1246,6 +1253,7 @@ struct TaskPi0FlowEMC {
12461253
registry.fill(HIST("mesonQA/hInvMassPtMixed"), vMeson.M(), vMeson.Pt());
12471254
registry.fill(HIST("mesonQA/hTanThetaPhiMixed"), vMeson.M(), getAngleDegree(std::atan(dTheta / dPhi)));
12481255
registry.fill(HIST("mesonQA/hAlphaPtMixed"), (v1.E() - v2.E()) / (v1.E() + v2.E()), vMeson.Pt());
1256+
registry.fill(HIST("mesonQA/hEtaPhiAngleMassCentMixed"), RecoDecay::constrainAngle(std::atan2(dEta, dPhi), -o2::constants::math::PI), vMeson.M(), getCentrality(c1));
12491257
}
12501258
if (mesonConfig.enableTanThetadPhi.value && mesonConfig.minTanThetadPhi > std::fabs(getAngleDegree(std::atan(dTheta / dPhi)))) {
12511259
registry.fill(HIST("hMesonCutsMixed"), 5);

0 commit comments

Comments
 (0)