From 9deead4e356f671b998613d7623c2bfe2117187f Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Thu, 2 Jan 2025 09:34:29 +0000 Subject: [PATCH] Please consider the following formatting changes --- .../Tasks/Nuspex/nucleiFromHypertritonMap.cxx | 21 ++++++++----------- 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/PWGLF/Tasks/Nuspex/nucleiFromHypertritonMap.cxx b/PWGLF/Tasks/Nuspex/nucleiFromHypertritonMap.cxx index 9c70492a5b6..ace8de3fa99 100644 --- a/PWGLF/Tasks/Nuspex/nucleiFromHypertritonMap.cxx +++ b/PWGLF/Tasks/Nuspex/nucleiFromHypertritonMap.cxx @@ -80,12 +80,11 @@ struct nucleiFromHypertritonMap { void init(InitContext const&) { registryMC.add("hypertritonPtgen", "hypertritonPtGen", HistType::kTH1F, {{nbin_pt, min_pt, max_pt, "p_{T} (GeV/c)"}}); - if(saveHelium){ - registryMC.add("he3SecPtRec_from_hypertriton", "he3SecPtRec_from_hypertriton", HistType::kTH1F, {{nbin_pt, min_pt, max_pt, "p_{T} (GeV/c)"}}); - registryMC.add("hyperHe4Ptgen", "hyperHe4PtGen", HistType::kTH1F, {{nbin_pt, min_pt, max_pt, "p_{T} (GeV/c)"}}); - registryMC.add("he3SecPtRec_from_hyperHe4", "he3SecPtRec_from_hyperHe4", HistType::kTH1F, {{nbin_pt, min_pt, max_pt, "p_{T} (GeV/c)"}}); - } - else{ + if (saveHelium) { + registryMC.add("he3SecPtRec_from_hypertriton", "he3SecPtRec_from_hypertriton", HistType::kTH1F, {{nbin_pt, min_pt, max_pt, "p_{T} (GeV/c)"}}); + registryMC.add("hyperHe4Ptgen", "hyperHe4PtGen", HistType::kTH1F, {{nbin_pt, min_pt, max_pt, "p_{T} (GeV/c)"}}); + registryMC.add("he3SecPtRec_from_hyperHe4", "he3SecPtRec_from_hyperHe4", HistType::kTH1F, {{nbin_pt, min_pt, max_pt, "p_{T} (GeV/c)"}}); + } else { registryMC.add("deutSecPtRec_from_hypertriton", "deutSecPtRec_from_hypertriton", HistType::kTH1F, {{nbin_pt, min_pt, max_pt, "p_{T} (GeV/c)"}}); } } @@ -97,12 +96,11 @@ struct nucleiFromHypertritonMap { continue; } auto mcparticle = track.mcParticle(); - if(saveHelium){ + if (saveHelium) { if (mcparticle.pdgCode() != AntihePDG || mcparticle.isPhysicalPrimary()) { continue; } - } - else{ + } else { if (mcparticle.pdgCode() != AntideuteronPDG || mcparticle.isPhysicalPrimary()) { continue; } @@ -124,10 +122,9 @@ struct nucleiFromHypertritonMap { } if (motherparticle.pdgCode() == AntiHypertritonPDG) { registryMC.fill(HIST("hypertritonPtgen"), motherparticle.pt()); - if(saveHelium){ + if (saveHelium) { registryMC.fill(HIST("he3SecPtRec_from_hypertriton"), 2 * track.pt()); - } - else{ + } else { registryMC.fill(HIST("deutSecPtRec_from_hypertriton"), track.pt()); } }