From 427286e3aad320612c45a94452c14e0b3eeeca0e Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Wed, 29 Nov 2023 14:57:47 +0000 Subject: [PATCH] Please consider the following formatting changes --- PWGLF/DataModel/LFStrangenessPIDTables.h | 6 +++--- PWGLF/DataModel/LFStrangenessTables.h | 4 ++-- PWGLF/TableProducer/strangederivedbuilder.cxx | 21 +++++++++---------- 3 files changed, 15 insertions(+), 16 deletions(-) diff --git a/PWGLF/DataModel/LFStrangenessPIDTables.h b/PWGLF/DataModel/LFStrangenessPIDTables.h index bb9bf16aa70..531d124af71 100644 --- a/PWGLF/DataModel/LFStrangenessPIDTables.h +++ b/PWGLF/DataModel/LFStrangenessPIDTables.h @@ -32,11 +32,11 @@ DECLARE_SOA_COLUMN(TPCNSigmaPi, tpcNSigmaPi, float); //! Nsigma proton DECLARE_SOA_COLUMN(TPCNSigmaKa, tpcNSigmaKa, float); //! Nsigma proton DECLARE_SOA_COLUMN(TPCNSigmaPr, tpcNSigmaPr, float); //! Nsigma proton DECLARE_SOA_COLUMN(TPCNSigmaHe, tpcNSigmaHe, float); //! Nsigma proton -} +} // namespace dautrack DECLARE_SOA_TABLE(DauTrackTPCPIDs, "AOD", "DAUTRACKTPCPID", // nsigma table (for analysis) - dautrack::TPCSignal, dautrack::TPCNSigmaEl, - dautrack::TPCNSigmaPi, dautrack::TPCNSigmaKa, + dautrack::TPCSignal, dautrack::TPCNSigmaEl, + dautrack::TPCNSigmaPi, dautrack::TPCNSigmaKa, dautrack::TPCNSigmaPr, dautrack::TPCNSigmaHe); namespace v0data diff --git a/PWGLF/DataModel/LFStrangenessTables.h b/PWGLF/DataModel/LFStrangenessTables.h index 16e36cf7c7e..6d5d0374f7d 100644 --- a/PWGLF/DataModel/LFStrangenessTables.h +++ b/PWGLF/DataModel/LFStrangenessTables.h @@ -784,11 +784,11 @@ DECLARE_SOA_EXTENDED_TABLE_USER(TraCascCores, StoredTraCascCores, "TraCascDATAEX namespace cascdata { - // For cross-linking all cascade kinds +// For cross-linking all cascade kinds DECLARE_SOA_INDEX_COLUMN_FULL(TrackedCascade, trackedCascade, int, TraCascCores, "_Refs"); //! DECLARE_SOA_INDEX_COLUMN_FULL(KFCascade, kfCascade, int, KFCascCores, "_Refs"); //! DECLARE_SOA_INDEX_COLUMN_FULL(StandardCascade, standardCascade, int, CascCores, "_Refs"); //! -} +} // namespace cascdata // interlink different cascade types DECLARE_SOA_TABLE(CascToTraRefs, "AOD", "CASCTOTRAREFS", //! standard -> tracked diff --git a/PWGLF/TableProducer/strangederivedbuilder.cxx b/PWGLF/TableProducer/strangederivedbuilder.cxx index dd8f7aa5ee5..fbc9682e3d7 100644 --- a/PWGLF/TableProducer/strangederivedbuilder.cxx +++ b/PWGLF/TableProducer/strangederivedbuilder.cxx @@ -70,7 +70,7 @@ struct strangederivedbuilder { //__________________________________________________ // track extra references Produces dauTrackExtras; // daughter track detector properties - Produces dauTrackTPCPIDs; // daughter track TPC PID + Produces dauTrackTPCPIDs; // daughter track TPC PID Produces v0Extras; // references DauTracks from V0s Produces cascExtras; // references DauTracks from cascades Produces kfcascExtras; // references DauTracks from KF cascades @@ -78,11 +78,10 @@ struct strangederivedbuilder { //__________________________________________________ // cascade interlinks - Produces cascToTraRefs; // cascades -> tracked - Produces cascToKFRefs; // cascades -> KF - Produces traToCascRefs; // tracked -> cascades + Produces cascToTraRefs; // cascades -> tracked + Produces cascToKFRefs; // cascades -> KF + Produces traToCascRefs; // tracked -> cascades Produces kfToCascRefs; // KF -> cascades - // histogram registry for bookkeeping HistogramRegistry histos{"Histos", {}, OutputObjHandlingPolicy::AnalysisObject}; @@ -343,10 +342,10 @@ struct strangederivedbuilder { void processCascadeInterlink(interlinkedCascades const& masterCascades, aod::CascIndices const& Cascades, aod::KFCascIndices const& KFCascades, aod::TraCascIndices const& TraCascades) { - //Standard to tracked + // Standard to tracked for (auto const& c : Cascades) { int indexTracked = -1, indexKF = -1; - if(c.has_cascade()){ + if (c.has_cascade()) { auto cascade = c.cascade_as(); indexTracked = cascade.traCascDataId(); indexKF = cascade.kfCascDataId(); @@ -354,19 +353,19 @@ struct strangederivedbuilder { cascToTraRefs(indexTracked); cascToKFRefs(indexKF); } - //Tracked to standard + // Tracked to standard for (auto const& c : TraCascades) { int index = -1; - if(c.has_cascade()){ + if (c.has_cascade()) { auto cascade = c.cascade_as(); index = cascade.cascDataId(); } traToCascRefs(index); } - //Tracked to KF + // Tracked to KF for (auto const& c : KFCascades) { int index = -1; - if(c.has_cascade()){ + if (c.has_cascade()) { auto cascade = c.cascade_as(); index = cascade.cascDataId(); }