From 76946cb990a1f62d25841ed648e718c1fb484c2e Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Sun, 5 May 2024 01:59:57 +0000 Subject: [PATCH] Please consider the following formatting changes --- .../Strangeness/lambdakzeromcbuilder.cxx | 37 ++++++++++--------- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/PWGLF/TableProducer/Strangeness/lambdakzeromcbuilder.cxx b/PWGLF/TableProducer/Strangeness/lambdakzeromcbuilder.cxx index 18282fd4a98..2a84c8e5b94 100644 --- a/PWGLF/TableProducer/Strangeness/lambdakzeromcbuilder.cxx +++ b/PWGLF/TableProducer/Strangeness/lambdakzeromcbuilder.cxx @@ -51,28 +51,29 @@ struct lambdakzeromcbuilder { HistogramRegistry histos{"Histos", {}, OutputObjHandlingPolicy::AnalysisObject}; - void init(InitContext const&) { - if(populateV0MCCoresAsymmetric){ + void init(InitContext const&) + { + if (populateV0MCCoresAsymmetric) { LOGF(info, "Asymmetric V0MCCores filling enabled!"); } - if(populateV0MCCoresSymmetric){ + if (populateV0MCCoresSymmetric) { LOGF(info, "Symmetric V0MCCores filling enabled!"); } - if(populateV0MCCoresAsymmetric && populateV0MCCoresSymmetric){ + if (populateV0MCCoresAsymmetric && populateV0MCCoresSymmetric) { LOGF(fatal, "Error in configuration: please select only one out of populateV0MCCoresAsymmetric and populateV0MCCoresSymmetric! Crashing!"); } // for storing basic statistics - histos.add("hBuildingStatistics", "hBuildingStatistics", kTH1F, {{10,-0.5,9.5f}}); + histos.add("hBuildingStatistics", "hBuildingStatistics", kTH1F, {{10, -0.5, 9.5f}}); } //*+-+*+-+*+-+*+-+*+-+*+-+*+-+*+-+*+-+*+-+* // Helper struct to contain V0MCCore information prior to filling - struct mcV0info{ + struct mcV0info { int label; int motherLabel; - int pdgCode; - int pdgCodeMother; + int pdgCode; + int pdgCodeMother; int pdgCodePositive; int pdgCodeNegative; bool isPhysicalPrimary; @@ -147,7 +148,7 @@ struct lambdakzeromcbuilder { // and it might use more disk space unnecessarily. if (populateV0MCCoresSymmetric) { v0mccores( - thisInfo.label, thisInfo.pdgCode, + thisInfo.label, thisInfo.pdgCode, thisInfo.pdgCodeMother, thisInfo.pdgCodePositive, thisInfo.pdgCodeNegative, thisInfo.isPhysicalPrimary, thisInfo.xyz[0], thisInfo.xyz[1], thisInfo.xyz[2], thisInfo.posP[0], thisInfo.posP[1], thisInfo.posP[2], @@ -155,21 +156,21 @@ struct lambdakzeromcbuilder { } // ---] Asymmetric populate [--- // in this approach, V0Cores will NOT be joinable with V0MCCores. - // an additional reference to V0MCCore that IS joinable with V0Cores + // an additional reference to V0MCCore that IS joinable with V0Cores // will be provided to the user. if (populateV0MCCoresAsymmetric) { int thisV0MCCoreIndex = -1; // step 1: check if this element is already provided in the table // using the packedIndices variable calculated above - for(uint32_t ii=0; ii