From 09f34b90d1424f68e16e905dd0671fafcc41dade Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Sat, 21 Dec 2024 18:34:28 +0000 Subject: [PATCH] Please consider the following formatting changes --- PWGLF/DataModel/LFStrangenessTables.h | 20 +++++++++--------- .../stradautracksextraconverter2.cxx | 9 ++++---- .../Strangeness/strangederivedbuilder.cxx | 12 +++++------ PWGLF/Tasks/Strangeness/lambdapolsp.cxx | 21 +++++++++---------- 4 files changed, 31 insertions(+), 31 deletions(-) diff --git a/PWGLF/DataModel/LFStrangenessTables.h b/PWGLF/DataModel/LFStrangenessTables.h index d7f638cdd8e..c9b6e37b1dc 100644 --- a/PWGLF/DataModel/LFStrangenessTables.h +++ b/PWGLF/DataModel/LFStrangenessTables.h @@ -230,7 +230,7 @@ DECLARE_SOA_TABLE(StraTPCQVs, "AOD", "STRATPCQVS", //! tpc Qvec DECLARE_SOA_TABLE(StraFT0CQVsEv, "AOD", "STRAFT0CQVSEv", //! events used to compute t0c Qvec epcalibrationtable::TriggerEventEP); DECLARE_SOA_TABLE(StraZDCSP, "AOD", "STRAZDCSP", //! ZDC SP information - spcalibrationtable::TriggerEventSP, + spcalibrationtable::TriggerEventSP, spcalibrationtable::PsiZDCA, spcalibrationtable::PsiZDCC, spcalibrationtable::QXZDCA, spcalibrationtable::QXZDCC, spcalibrationtable::QYZDCA, spcalibrationtable::QYZDCC); @@ -312,16 +312,16 @@ DECLARE_SOA_DYNAMIC_COLUMN(HasITSTracker, hasITSTracker, //! Flag to check if tr DECLARE_SOA_DYNAMIC_COLUMN(HasITSAfterburner, hasITSAfterburner, //! Flag to check if track is from ITS AB [](uint8_t detectorMap, float itsChi2PerNcl) -> bool { return (detectorMap & o2::aod::track::ITS) ? (itsChi2PerNcl < -1e-3f) : false; }); -//sub-namespace for compatibility purposes +// sub-namespace for compatibility purposes namespace compatibility -{ // adds dynamics that ensure full backwards compatibility with previous getters +{ // adds dynamics that ensure full backwards compatibility with previous getters DECLARE_SOA_DYNAMIC_COLUMN(TPCClusters, tpcClusters, //! number of TPC clusters [](uint8_t tpcNClsFindable, int8_t tpcNClsFindableMinusFound) -> int16_t { return (int16_t)tpcNClsFindable - tpcNClsFindableMinusFound; }); DECLARE_SOA_DYNAMIC_COLUMN(TPCCrossedRows, tpcCrossedRows, //! Number of crossed TPC Rows [](uint8_t tpcNClsFindable, int8_t TPCNClsFindableMinusCrossedRows) -> int16_t { return (int16_t)tpcNClsFindable - TPCNClsFindableMinusCrossedRows; }); DECLARE_SOA_DYNAMIC_COLUMN(ITSChi2PerNcl, itsChi2PerNcl, //! simple equivalent return [](float itsChi2NCl) -> float { return (float)itsChi2NCl; }); -} +} // namespace compatibility } // namespace dautrack @@ -355,18 +355,18 @@ DECLARE_SOA_TABLE_VERSIONED(DauTrackExtras_001, "AOD", "DAUTRACKEXTRA", 1, //! d dautrack::HasITSAfterburner); DECLARE_SOA_TABLE_VERSIONED(DauTrackExtras_002, "AOD", "DAUTRACKEXTRA", 2, //! detector properties of decay daughters - track::ITSChi2NCl, + track::ITSChi2NCl, dautrack::DetectorMap, // here we don´t save everything so we simplify this track::ITSClusterSizes, - track::TPCNClsFindable, + track::TPCNClsFindable, track::TPCNClsFindableMinusFound, track::TPCNClsFindableMinusCrossedRows, - + // Dynamics for ITS matching TracksExtra track::v001::ITSNClsInnerBarrel, track::v001::ITSClsSizeInLayer, - track::v001::ITSClusterMap, - track::v001::ITSNCls, + track::v001::ITSClusterMap, + track::v001::ITSNCls, track::v001::IsITSAfterburner, /*compatibility*/ dautrack::HasITSTracker, /*compatibility*/ dautrack::HasITSAfterburner, @@ -384,7 +384,7 @@ DECLARE_SOA_TABLE_VERSIONED(DauTrackExtras_002, "AOD", "DAUTRACKEXTRA", 2, //! d dautrack::HasITS, dautrack::HasTPC, dautrack::HasTRD, - dautrack::HasTOF); + dautrack::HasTOF); DECLARE_SOA_TABLE(DauTrackMCIds, "AOD", "DAUTRACKMCID", // index table when using AO2Ds dautrack::ParticleMCId); diff --git a/PWGLF/TableProducer/Strangeness/Converters/stradautracksextraconverter2.cxx b/PWGLF/TableProducer/Strangeness/Converters/stradautracksextraconverter2.cxx index 62b9c27e05b..d715145031c 100644 --- a/PWGLF/TableProducer/Strangeness/Converters/stradautracksextraconverter2.cxx +++ b/PWGLF/TableProducer/Strangeness/Converters/stradautracksextraconverter2.cxx @@ -27,9 +27,9 @@ struct stradautracksextraconverter2 { dauTrackExtras_002(values.itsChi2PerNcl(), values.detectorMap(), values.itsClusterSizes(), - static_cast(0), // findable (unknown in old format) - -values.tpcClusters(), // findable minus found: we know found - values.tpcCrossedRows()); // findable minus crossed rows: we know crossed rows + static_cast(0), // findable (unknown in old format) + -values.tpcClusters(), // findable minus found: we know found + values.tpcCrossedRows()); // findable minus crossed rows: we know crossed rows } } }; @@ -38,4 +38,5 @@ WorkflowSpec defineDataProcessing(ConfigContext const& cfgc) { return WorkflowSpec{ adaptAnalysisTask(cfgc)}; -} \ No newline at end of file +} + \ No newline at end of file diff --git a/PWGLF/TableProducer/Strangeness/strangederivedbuilder.cxx b/PWGLF/TableProducer/Strangeness/strangederivedbuilder.cxx index 269a20b8d43..950ad90be99 100644 --- a/PWGLF/TableProducer/Strangeness/strangederivedbuilder.cxx +++ b/PWGLF/TableProducer/Strangeness/strangederivedbuilder.cxx @@ -483,10 +483,10 @@ struct strangederivedbuilder { for (auto const& tr : tracksExtra) { if (trackMap[tr.globalIndex()] >= 0) { dauTrackExtras(tr.itsChi2NCl(), - tr.detectorMap(), + tr.detectorMap(), tr.itsClusterSizes(), tr.tpcNClsFindable(), - tr.tpcNClsFindableMinusFound(), + tr.tpcNClsFindableMinusFound(), tr.tpcNClsFindableMinusCrossedRows()); } } @@ -577,10 +577,10 @@ struct strangederivedbuilder { for (auto const& tr : tracksExtra) { if (trackMap[tr.globalIndex()] >= 0) { dauTrackExtras(tr.itsChi2NCl(), - tr.detectorMap(), + tr.detectorMap(), tr.itsClusterSizes(), tr.tpcNClsFindable(), - tr.tpcNClsFindableMinusFound(), + tr.tpcNClsFindableMinusFound(), tr.tpcNClsFindableMinusCrossedRows()); // if the table has MC info @@ -813,8 +813,8 @@ struct strangederivedbuilder { } void processZDCSP(soa::Join::iterator const& collision) { - StraZDCSP(collision.triggereventsp(), - collision.psiZDCA(), collision.psiZDCC(), + StraZDCSP(collision.triggereventsp(), + collision.psiZDCA(), collision.psiZDCC(), collision.qxZDCA(), collision.qxZDCC(), collision.qyZDCA(), collision.qyZDCC()); } diff --git a/PWGLF/Tasks/Strangeness/lambdapolsp.cxx b/PWGLF/Tasks/Strangeness/lambdapolsp.cxx index cb2e0f21ac6..362992e6d27 100644 --- a/PWGLF/Tasks/Strangeness/lambdapolsp.cxx +++ b/PWGLF/Tasks/Strangeness/lambdapolsp.cxx @@ -432,7 +432,8 @@ struct lambdapolsp { } template - bool isCompatible(TV0 const& v0, int pid /*0: lambda, 1: antilambda*/){ + bool isCompatible(TV0 const& v0, int pid /*0: lambda, 1: antilambda*/) + { // checks if this V0 is compatible with the requested hypothesis // de-ref track extras @@ -440,24 +441,24 @@ struct lambdapolsp { auto negTrackExtra = v0.template negTrackExtra_as(); // check for desired kinematics - if(pid == 0 && (v0.positivept() < cfgDaughPrPt || v0.negativept() < cfgDaughPiPt)) { + if (pid == 0 && (v0.positivept() < cfgDaughPrPt || v0.negativept() < cfgDaughPiPt)) { return false; // doesn´t pass lambda pT sels } - if(pid == 1 && (v0.positivept() < cfgDaughPiPt || v0.negativept() < cfgDaughPrPt)) { + if (pid == 1 && (v0.positivept() < cfgDaughPiPt || v0.negativept() < cfgDaughPrPt)) { return false; // doesn´t pass antilambda pT sels } - if(std::abs(v0.positiveeta()) > ConfDaughEta || std::abs(v0.negativeeta()) > ConfDaughEta) { + if (std::abs(v0.positiveeta()) > ConfDaughEta || std::abs(v0.negativeeta()) > ConfDaughEta) { return false; } // check TPC tracking properties - if(posTrackExtra.tpcNClsCrossedRows() < 70 || negTrackExtra.tpcNClsCrossedRows() < 70) { + if (posTrackExtra.tpcNClsCrossedRows() < 70 || negTrackExtra.tpcNClsCrossedRows() < 70) { return false; } - if(posTrackExtra.tpcNClsFound() < ConfDaughTPCnclsMin || negTrackExtra.tpcNClsFound() < ConfDaughTPCnclsMin) { + if (posTrackExtra.tpcNClsFound() < ConfDaughTPCnclsMin || negTrackExtra.tpcNClsFound() < ConfDaughTPCnclsMin) { return false; } - if(posTrackExtra.tpcCrossedRowsOverFindableCls() < 0.8 || negTrackExtra.tpcCrossedRowsOverFindableCls() < 0.8) { + if (posTrackExtra.tpcCrossedRowsOverFindableCls() < 0.8 || negTrackExtra.tpcCrossedRowsOverFindableCls() < 0.8) { return false; } @@ -794,7 +795,7 @@ struct lambdapolsp { void processDerivedData(soa::Join::iterator const& collision, v0Candidates const& V0s, dauTracks const&) { //___________________________________________________________________________________________________ - // event selection + // event selection if (!collision.sel8()) { return; } @@ -870,7 +871,7 @@ struct lambdapolsp { Pion = ROOT::Math::PxPyPzMVector(v0.pxpos(), v0.pypos(), v0.pzpos(), massPi); } Lambda = Proton + Pion; - + ROOT::Math::Boost boost{Lambda.BoostToCM()}; fourVecDauCM = boost(Proton); threeVecDauCM = fourVecDauCM.Vect(); @@ -932,8 +933,6 @@ struct lambdapolsp { } // end loop over V0s } PROCESS_SWITCH(lambdapolsp, processDerivedData, "Process derived data", false); - - }; WorkflowSpec defineDataProcessing(ConfigContext const& cfgc) {