Skip to content

Commit 38f328f

Browse files
[PWGLF] Fix histogram getter (AliceO2Group#15906)
1 parent 1ec1f8f commit 38f328f

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

PWGLF/Tasks/QC/v0cascadesqa.cxx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -427,14 +427,14 @@ struct v0cascadesQA {
427427

428428
if (isMC) {
429429
histos.add("histos_V0/GeneratedV0s", "GeneratedV0s", kTH3D, {{3, 0.0f, 3.0f}, axisConfigurations.axisPt, axisConfigurations.axisV0Radius});
430-
histos.get<TH1>(HIST("histos_V0/GeneratedV0s"))->GetXaxis()->SetBinLabel(1, "K^{0}_{S}");
431-
histos.get<TH1>(HIST("histos_V0/GeneratedV0s"))->GetXaxis()->SetBinLabel(2, "#Lambda");
432-
histos.get<TH1>(HIST("histos_V0/GeneratedV0s"))->GetXaxis()->SetBinLabel(3, "#bar{#Lambda}");
430+
histos.get<TH3>(HIST("histos_V0/GeneratedV0s"))->GetXaxis()->SetBinLabel(1, "K^{0}_{S}");
431+
histos.get<TH3>(HIST("histos_V0/GeneratedV0s"))->GetXaxis()->SetBinLabel(2, "#Lambda");
432+
histos.get<TH3>(HIST("histos_V0/GeneratedV0s"))->GetXaxis()->SetBinLabel(3, "#bar{#Lambda}");
433433
histos.add("histos_Casc/GeneratedCascades", "GeneratedCascades", kTH3D, {{4, 0.0f, 4.0f}, axisConfigurations.axisPtCasc, axisConfigurations.axisCascRadius});
434-
histos.get<TH1>(HIST("histos_Casc/GeneratedCascades"))->GetXaxis()->SetBinLabel(1, "#Xi^{#minus}");
435-
histos.get<TH1>(HIST("histos_Casc/GeneratedCascades"))->GetXaxis()->SetBinLabel(2, "#bar{#Xi}^{+}");
436-
histos.get<TH1>(HIST("histos_Casc/GeneratedCascades"))->GetXaxis()->SetBinLabel(3, "#Omega^{#minus}");
437-
histos.get<TH1>(HIST("histos_Casc/GeneratedCascades"))->GetXaxis()->SetBinLabel(4, "#bar{#Omega}^{+}");
434+
histos.get<TH3>(HIST("histos_Casc/GeneratedCascades"))->GetXaxis()->SetBinLabel(1, "#Xi^{#minus}");
435+
histos.get<TH3>(HIST("histos_Casc/GeneratedCascades"))->GetXaxis()->SetBinLabel(2, "#bar{#Xi}^{+}");
436+
histos.get<TH3>(HIST("histos_Casc/GeneratedCascades"))->GetXaxis()->SetBinLabel(3, "#Omega^{#minus}");
437+
histos.get<TH3>(HIST("histos_Casc/GeneratedCascades"))->GetXaxis()->SetBinLabel(4, "#bar{#Omega}^{+}");
438438

439439
histos.add("histos_V0/InvMassK0sTrue", "InvMassK0sTrue", {HistType::kTH3F, {{100, 0.0f, 10.0f}, {100, 0.f, 50.f}, {200, 0.4f, 0.6f}}});
440440
histos.add("histos_V0/InvMassLambdaTrue", "InvMassLambdaTrue", {HistType::kTH3F, {{100, 0.0f, 10.0f}, {100, 0.f, 50.f}, {200, 1.07f, 1.17f}}});
@@ -1260,7 +1260,7 @@ struct v0cascadesQA {
12601260
////////// QA - MC /////////////
12611261
////////////////////////////////
12621262

1263-
void processMonteCarlo(soa::Join<aod::Collisions, aod::EvSels, aod::PVMults, aod::McCollisionLabels>::iterator const& collision, soa::Join<aod::McCollisions, aod::MultsExtraMC> const&, soa::Join<aod::V0Datas, aod::V0TOFPIDs, aod::V0TOFNSigmas, aod::V0CoreMCLabels> const& fullV0s, soa::Join<aod::V0MCDatas, aod::V0MCCollRefs> const&, soa::Join<aod::CascDatas, aod::CascTOFPIDs, aod::CascTOFNSigmas, aod::CascCoreMCLabels> const& fullCascades, soa::Join<aod::CascMCDatas, aod::CascMCCollRefs> const&, DaughterTracks const&, aod::BCsWithTimestamps const&)
1263+
void processMonteCarlo(soa::Join<aod::Collisions, aod::EvSels, aod::PVMults, aod::McCollisionLabels>::iterator const& collision, soa::Join<aod::McCollisions, aod::MultsExtraMC> const&, soa::Join<aod::V0Datas, aod::V0TOFPIDs, aod::V0TOFNSigmas, aod::V0CoreMCLabels> const& fullV0s, soa::Join<aod::V0MCCores, aod::V0MCCollRefs> const&, soa::Join<aod::CascDatas, aod::CascTOFPIDs, aod::CascTOFNSigmas, aod::CascCoreMCLabels> const& fullCascades, soa::Join<aod::CascMCCores, aod::CascMCCollRefs> const&, DaughterTracks const&, aod::BCsWithTimestamps const&)
12641264
{
12651265
if (!isEventAccepted(collision, false)) {
12661266
return;
@@ -1315,12 +1315,12 @@ struct v0cascadesQA {
13151315
if (!casc.has_cascMCCore())
13161316
continue;
13171317

1318-
auto cascMC = casc.template cascMCCore_as<soa::Join<aod::CascMCDatas, aod::CascMCCollRefs>>();
1318+
auto cascMC = casc.template cascMCCore_as<soa::Join<aod::CascMCCores, aod::CascMCCollRefs>>();
13191319

13201320
histos.fill(HIST("histos_Casc/QA_CascadeCandidates"), 0.5);
13211321

13221322
if (isCascadeSelected(casc, collision, cascMC.rapidityMC(0), kXiM)) {
1323-
histos.fill(HIST("histos_Casc/QA_CascCandidates"), 1.5);
1323+
histos.fill(HIST("histos_Casc/QA_CascadeCandidates"), 1.5);
13241324
if (checkCascadeMCAssociation(cascMC, kXiM)) {
13251325
histos.fill(HIST("histos_Casc/QA_CascadeCandidates"), 2.5);
13261326
histos.fill(HIST("histos_Casc/InvMassXiMinusTrue"), cascMC.ptMC(), casc.cascradius(), casc.mXi());
@@ -1334,7 +1334,7 @@ struct v0cascadesQA {
13341334
}
13351335
}
13361336
if (isCascadeSelected(casc, collision, cascMC.rapidityMC(2), kOmegaM)) {
1337-
histos.fill(HIST("histos_Casc/QA_CascCandidates"), 5.5);
1337+
histos.fill(HIST("histos_Casc/QA_CascadeCandidates"), 5.5);
13381338
if (checkCascadeMCAssociation(cascMC, kOmegaM)) {
13391339
histos.fill(HIST("histos_Casc/QA_CascadeCandidates"), 6.5);
13401340
histos.fill(HIST("histos_Casc/InvMassOmegaMinusTrue"), cascMC.ptMC(), casc.cascradius(), casc.mOmega());
@@ -1354,7 +1354,7 @@ struct v0cascadesQA {
13541354
////////// Collision QA - MC //////////
13551355
///////////////////////////////////////
13561356

1357-
void processGenerated(soa::Join<aod::McCollisions, aod::MultsExtraMC>::iterator const& mcCollision, aod::McParticles const& mcParticles, soa::SmallGroups<o2::soa::Join<o2::aod::Collisions, o2::aod::McCollisionLabels, o2::aod::EvSels, aod::PVMults>> const& collisions)
1357+
void processGenerated(soa::Join<aod::McCollisions, aod::MultsExtraMC>::iterator const& mcCollision, aod::McParticles const& mcParticles, soa::SmallGroups<o2::soa::Join<o2::aod::Collisions, o2::aod::McCollisionLabels, o2::aod::EvSels, aod::PVMults>> const& collisions, aod::BCsWithTimestamps const&)
13581358
{
13591359
// Apply selections on MC collisions
13601360
if (eventSelections.applyZVtxSelOnMCPV && std::abs(mcCollision.posZ()) > eventSelections.maxZVtxPosition) {

0 commit comments

Comments
 (0)