Skip to content

Commit a045975

Browse files
authored
[PWGEM/Dilepton] swap axes for visualization (#12502)
1 parent 8e8d940 commit a045975

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

PWGEM/Dilepton/Core/DileptonHadronMPC.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ struct DileptonHadronMPC {
527527

528528
// hadron-hadron
529529
const AxisSpec axis_dphi_hh{cfgNbinsDPhi, -M_PI / 2, 3 * M_PI / 2, "#Delta#varphi = #varphi_{h}^{ref1} - #varphi_{h}^{ref2} (rad.)"};
530-
fRegistry.add("HadronHadron/same/hDEtaDPhi", "hadron-hadron 2PC", kTH2D, {axis_deta_hh, axis_dphi_hh}, true);
530+
fRegistry.add("HadronHadron/same/hDEtaDPhi", "hadron-hadron 2PC", kTH2D, {axis_dphi_hh, axis_deta_hh}, true);
531531
fRegistry.addClone("HadronHadron/same/", "HadronHadron/mix/");
532532
fRegistry.add("HadronHadron/mix/hDiffBC", "diff. global BC in mixed event;|BC_{current} - BC_{mixed}|", kTH1D, {{10001, -0.5, 10000.5}}, true);
533533
} else if (cfgAnalysisType == static_cast<int>(o2::aod::pwgem::dilepton::utils::pairutil::DileptonHadronAnalysisType::kCumulant)) {
@@ -541,7 +541,7 @@ struct DileptonHadronMPC {
541541

542542
// hadron-hadron
543543
const AxisSpec axis_cosndphi_hh{cfgNbinsCosNDPhi, -1, +1, std::format("cos({0:d}(#varphi_{{h}}^{{trg}} - #varphi_{{h}}^{{ref}}))", cfgNmod.value)};
544-
fRegistry.add("HadronHadron/same/hDEtaCosNDPhi", "hadron-hadron 2PC", kTH2D, {axis_deta_hh, axis_cosndphi_hh}, true);
544+
fRegistry.add("HadronHadron/same/hDEtaCosNDPhi", "hadron-hadron 2PC", kTH2D, {axis_cosndphi_hh, axis_deta_hh}, true);
545545
}
546546
fRegistry.add("Dilepton/mix/hDiffBC", "diff. global BC in mixed event;|BC_{current} - BC_{mixed}|", kTH1D, {{10001, -0.5, 10000.5}}, true);
547547
}
@@ -994,11 +994,11 @@ struct DileptonHadronMPC {
994994

995995
if (cfgAnalysisType == static_cast<int>(o2::aod::pwgem::dilepton::utils::pairutil::DileptonHadronAnalysisType::kAzimuthalCorrelation)) {
996996
dphi = RecoDecay::constrainAngle(dphi, -M_PI / 2, 1U);
997-
fRegistry.fill(HIST("HadronHadron/") + HIST(event_pair_types[ev_id]) + HIST("hDEtaDPhi"), deta, dphi, weight);
997+
fRegistry.fill(HIST("HadronHadron/") + HIST(event_pair_types[ev_id]) + HIST("hDEtaDPhi"), dphi, deta, weight);
998998
} else if (cfgAnalysisType == static_cast<int>(o2::aod::pwgem::dilepton::utils::pairutil::DileptonHadronAnalysisType::kCumulant)) {
999999
o2::math_utils::bringTo02Pi(dphi);
10001000
float cosndphi = std::cos(cfgNmod * dphi);
1001-
fRegistry.fill(HIST("HadronHadron/") + HIST(event_pair_types[ev_id]) + HIST("hDEtaCosNDPhi"), deta, cosndphi, weight);
1001+
fRegistry.fill(HIST("HadronHadron/") + HIST(event_pair_types[ev_id]) + HIST("hDEtaCosNDPhi"), cosndphi, deta, weight);
10021002
}
10031003

10041004
// store ref tracks for mixed event in case of kAzimuthalCorrelation

PWGEM/PhotonMeson/Core/DiphotonHadronMPC.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ struct DiphotonHadronMPC {
374374
const AxisSpec axis_deta_hh{ConfDEtaBins, "#Delta#eta = #eta_{h}^{ref1} - #eta_{h}^{ref2}"};
375375
const AxisSpec axis_dphi_hh{cfgNbinsDPhi, -M_PI / 2, +3 * M_PI / 2, "#Delta#varphi = #varphi_{h}^{ref1} - #varphi_{h}^{ref2} (rad.)"};
376376
// const AxisSpec axis_cosndphi_hh{cfgNbinsCosNDPhi, -1, +1, std::format("cos({0:d}(#varphi_{{h}}^{{ref1}} - #varphi_{{h}}^{{ref2}}))", cfgNmod.value)};
377-
fRegistry.add("HadronHadron/same/hDEtaDPhi", "hadron-hadron 2PC", kTH2D, {axis_deta_hh, axis_dphi_hh}, true);
377+
fRegistry.add("HadronHadron/same/hDEtaDPhi", "hadron-hadron 2PC", kTH2D, {axis_dphi_hh, axis_deta_hh}, true);
378378
fRegistry.addClone("HadronHadron/same/", "HadronHadron/mix/");
379379
}
380380

@@ -720,7 +720,7 @@ struct DiphotonHadronMPC {
720720
float dphi = ref1.phi() - ref2.phi();
721721
// o2::math_utils::bringTo02Pi(dphi);
722722
dphi = RecoDecay::constrainAngle(dphi, -M_PI / 2, 1U);
723-
fRegistry.fill(HIST("HadronHadron/same/hDEtaDPhi"), deta, dphi);
723+
fRegistry.fill(HIST("HadronHadron/same/hDEtaDPhi"), dphi, deta);
724724
}
725725
}
726726
}
@@ -917,7 +917,7 @@ struct DiphotonHadronMPC {
917917
float dphi = ref1.phi() - ref2.phi();
918918
// o2::math_utils::bringTo02Pi(dphi);
919919
dphi = RecoDecay::constrainAngle(dphi, -M_PI / 2, 1U);
920-
fRegistry.fill(HIST("HadronHadron/mix/hDEtaDPhi"), deta, dphi);
920+
fRegistry.fill(HIST("HadronHadron/mix/hDEtaDPhi"), dphi, deta);
921921
}
922922
}
923923
} // end of loop over mixed event pool between hadron-hadron

0 commit comments

Comments
 (0)