From 062dfa1608e7436c9ae107a893ac2f254bae3322 Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Wed, 20 Nov 2024 10:20:06 +0000 Subject: [PATCH] Please consider the following formatting changes --- .../candidateCreatorCharmResoReduced.cxx | 5 +++-- PWGHF/D2H/Tasks/taskCharmResoReduced.cxx | 19 ++++++++++--------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/PWGHF/D2H/TableProducer/candidateCreatorCharmResoReduced.cxx b/PWGHF/D2H/TableProducer/candidateCreatorCharmResoReduced.cxx index bbcac5072d3..843402fd41f 100644 --- a/PWGHF/D2H/TableProducer/candidateCreatorCharmResoReduced.cxx +++ b/PWGHF/D2H/TableProducer/candidateCreatorCharmResoReduced.cxx @@ -333,7 +333,7 @@ struct HfCandidateCreatorCharmResoReduced { switch (channel) { case DecayChannel::Ds1ToDstarK0s: invMassV0 = candV0Tr.invMassK0s(); - if (candD.dType() > 0){ + if (candD.dType() > 0) { invMassReso = RecoDecay::m(std::array{candD.pVectorProng0(), candD.pVectorProng1(), candD.pVectorProng2(), pVecV0Tr}, std::array{massPion, massKaon, massPion, massK0}) - invMassD; } else { invMassReso = RecoDecay::m(std::array{candD.pVectorProng1(), candD.pVectorProng0(), candD.pVectorProng2(), pVecV0Tr}, std::array{massPion, massKaon, massPion, massK0}) - invMassD; @@ -737,4 +737,5 @@ WorkflowSpec defineDataProcessing(ConfigContext const& cfgc) { return WorkflowSpec{adaptAnalysisTask(cfgc), adaptAnalysisTask(cfgc)}; -} \ No newline at end of file +} + \ No newline at end of file diff --git a/PWGHF/D2H/Tasks/taskCharmResoReduced.cxx b/PWGHF/D2H/Tasks/taskCharmResoReduced.cxx index cf576dc88f0..f17a9f88bef 100644 --- a/PWGHF/D2H/Tasks/taskCharmResoReduced.cxx +++ b/PWGHF/D2H/Tasks/taskCharmResoReduced.cxx @@ -80,7 +80,7 @@ DECLARE_SOA_COLUMN(SignD0, signD0, float); } // namespace hf_cand_reso_lite DECLARE_SOA_TABLE(HfCandResoLites, "AOD", "HFCANDRESOLITE", //! Table with some B0 properties - // Candidate Properties + // Candidate Properties hf_cand_reso_lite::M, hf_cand_reso_lite::Pt, hf_cand_reso_lite::P, @@ -114,7 +114,7 @@ DECLARE_SOA_TABLE(HfCandResoLites, "AOD", "HFCANDRESOLITE", //! Table with some hf_cand_reso_lite::PtGen, hf_cand_reso_lite::SignD0); - DECLARE_SOA_TABLE(HfGenResoLites, "AOD", "HFGENRESOLITE", //! Table with some B0 properties +DECLARE_SOA_TABLE(HfGenResoLites, "AOD", "HFGENRESOLITE", //! Table with some B0 properties hf_cand_reso_lite::Pt, hf_cand_reso_lite::Y, hf_cand_reso_lite::Origin); @@ -176,7 +176,7 @@ struct HfTaskCharmResoReduced { registry.add("hBz", "Collision Bz ; Bz [T] ; entries", {HistType::kTH1F, {{20, -10., 10.}}}); registry.add("hSparse", "THn for production studies with cosThStar and BDT scores", HistType::kTHnSparseF, {axisPt, axisPtProng0, axisPtProng1, axisInvMassReso, axisInvMassProng0, axisInvMassProng1, axisCosThetaStar, axisBkgBdtScore, axisNonPromptBdtScore}); - if (doprocessDs1Mc || doprocessDs2StarMc || doprocessDs1McWithMl|| doprocessDs2StarMcWithMl) { + if (doprocessDs1Mc || doprocessDs2StarMc || doprocessDs1McWithMl || doprocessDs2StarMcWithMl) { // gen histos registry.add("hYRecPrompt", "Charm resonance candidates pT", {HistType::kTH2F, {axisPt, axisEta}}); registry.add("hYRecNonPrompt", "Charm resonance candidates pT", {HistType::kTH2F, {axisPt, axisEta}}); @@ -262,13 +262,13 @@ struct HfTaskCharmResoReduced { if (channel == DecayChannel::Ds1ToDstarK0s && !(std::abs(flagMcMatchRec) == DecayTypeMc::Ds1ToDStarK0ToD0PiK0s || std::abs(flagMcMatchRec) == DecayTypeMc::Ds1ToDStarK0ToD0PiK0sPart || std::abs(flagMcMatchRec) == DecayTypeMc::Ds1ToDStarK0ToD0NoPiK0sPart || std::abs(flagMcMatchRec) == DecayTypeMc::Ds1ToDStarK0ToD0PiK0sOneMu)) { return; } - if (channel == DecayChannel::Ds2StarToDplusK0s && !(std::abs(flagMcMatchRec) == DecayTypeMc::Ds2StarToDplusK0sToPiKaPiPiPi || std::abs(flagMcMatchRec) == DecayTypeMc::Ds2StarToDplusK0sOneMu)) { + if (channel == DecayChannel::Ds2StarToDplusK0s && !(std::abs(flagMcMatchRec) == DecayTypeMc::Ds2StarToDplusK0sToPiKaPiPiPi || std::abs(flagMcMatchRec) == DecayTypeMc::Ds2StarToDplusK0sOneMu)) { return; } } - if (origin == 1){ + if (origin == 1) { registry.fill(HIST("hYRecPrompt"), candidate.pt(), y); - } else if (origin == 2){ + } else if (origin == 2) { registry.fill(HIST("hYRecNonPrompt"), candidate.pt(), y); } } @@ -292,7 +292,7 @@ struct HfTaskCharmResoReduced { if (fillSparses) { registry.fill(HIST("hSparse"), candidate.pt(), candidate.ptProng0(), candidate.ptProng1(), invMassReso, invMassBach0, invMassBach1, cosThetaStar, mlScoreBkg, mlScoreNonPrompt); } - + if (fillTrees) { hfCandResoLite( invMassReso, @@ -404,7 +404,7 @@ struct HfTaskCharmResoReduced { registry.fill(HIST("hPtYWithProngsInAccepanceGenSig"), ptParticle, yParticle, originParticle, flag); } } - if (fillTrees){ + if (fillTrees) { hfGenResoLite(ptParticle, yParticle, originParticle); } } @@ -468,4 +468,5 @@ struct HfTaskCharmResoReduced { WorkflowSpec defineDataProcessing(ConfigContext const& cfgc) { return WorkflowSpec{adaptAnalysisTask(cfgc)}; -} \ No newline at end of file +} + \ No newline at end of file