From 871e932cd3dae176cb1857e2f7c564e8fd554e72 Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Sat, 21 Jun 2025 10:37:12 +0000 Subject: [PATCH] Please consider the following formatting changes --- Common/DataModel/SelectionStudyTables.h | 8 +-- Common/TableProducer/selectionStudyTable.cxx | 72 ++++++++++---------- 2 files changed, 40 insertions(+), 40 deletions(-) diff --git a/Common/DataModel/SelectionStudyTables.h b/Common/DataModel/SelectionStudyTables.h index a55892d85ac..3a62c30b267 100644 --- a/Common/DataModel/SelectionStudyTables.h +++ b/Common/DataModel/SelectionStudyTables.h @@ -14,11 +14,11 @@ /// /// \author ALICE -#include - #include "Framework/ASoA.h" #include "Framework/AnalysisDataModel.h" +#include + #ifndef COMMON_DATAMODEL_SELECTIONSTUDYTABLES_H_ #define COMMON_DATAMODEL_SELECTIONSTUDYTABLES_H_ @@ -40,8 +40,8 @@ DECLARE_SOA_COLUMN(PtLambdaCs, ptLambdaCs, std::vector); DECLARE_SOA_COLUMN(PtJPsis, ptJPsis, std::vector); } // namespace selectionstudy -DECLARE_SOA_TABLE(PIDPts, "AOD", "PIDPTS", o2::soa::Index<>, - o2::aod::selectionstudy::PtPions, +DECLARE_SOA_TABLE(PIDPts, "AOD", "PIDPTS", o2::soa::Index<>, + o2::aod::selectionstudy::PtPions, o2::aod::selectionstudy::PtKaons, o2::aod::selectionstudy::PtProtons, o2::aod::selectionstudy::PtK0s, diff --git a/Common/TableProducer/selectionStudyTable.cxx b/Common/TableProducer/selectionStudyTable.cxx index 6086b7a51f4..8ee84134cf3 100644 --- a/Common/TableProducer/selectionStudyTable.cxx +++ b/Common/TableProducer/selectionStudyTable.cxx @@ -15,20 +15,20 @@ /// \author ALICE /// -#include -#include -#include -#include +#include "Common/DataModel/SelectionStudyTables.h" -#include "Framework/ConfigParamSpec.h" -#include "Framework/runDataProcessing.h" -#include "Framework/AnalysisTask.h" +#include "Framework/ASoAHelpers.h" #include "Framework/AnalysisDataModel.h" +#include "Framework/AnalysisTask.h" +#include "Framework/ConfigParamSpec.h" #include "Framework/HistogramRegistry.h" -#include "Framework/ASoAHelpers.h" #include "Framework/O2DatabasePDGPlugin.h" -#include "Common/DataModel/SelectionStudyTables.h" +#include "Framework/runDataProcessing.h" +#include +#include +#include +#include using namespace o2; using namespace o2::framework; @@ -39,18 +39,18 @@ struct SelectionStudyTable { // could be done in a vector of vectors // left for future iteration - std::vector ptpi; - std::vector ptka; - std::vector ptpr; - std::vector ptk0; - std::vector ptla; - std::vector ptxi; - std::vector ptom; - std::vector ptph; - std::vector ptks; - std::vector ptd; - std::vector ptlc; - std::vector ptjp; + std::vector ptpi; + std::vector ptka; + std::vector ptpr; + std::vector ptk0; + std::vector ptla; + std::vector ptxi; + std::vector ptom; + std::vector ptph; + std::vector ptks; + std::vector ptd; + std::vector ptlc; + std::vector ptjp; void init(InitContext&) { @@ -71,15 +71,15 @@ struct SelectionStudyTable { ptlc.clear(); ptjp.clear(); for (auto const& mcPart : mcParticles) { - if(std::fabs(mcPart.y())>0.5){ + if (std::fabs(mcPart.y()) > 0.5) { continue; // only do midrapidity particles } // handle resonances first to make sure phys prim crit does not reject them - if(mcPart.pdgCode()==333){ + if (mcPart.pdgCode() == 333) { ptph.push_back(mcPart.pt()); } - if(std::abs(mcPart.pdgCode())==313){ + if (std::abs(mcPart.pdgCode()) == 313) { ptks.push_back(mcPart.pt()); } @@ -87,38 +87,38 @@ struct SelectionStudyTable { if (!mcPart.isPhysicalPrimary()) { continue; } - if(std::abs(mcPart.pdgCode())==211){ + if (std::abs(mcPart.pdgCode()) == 211) { ptpi.push_back(mcPart.pt()); } - if(std::abs(mcPart.pdgCode())==321){ + if (std::abs(mcPart.pdgCode()) == 321) { ptka.push_back(mcPart.pt()); } - if(std::abs(mcPart.pdgCode())==2212){ + if (std::abs(mcPart.pdgCode()) == 2212) { ptpr.push_back(mcPart.pt()); } - if(std::abs(mcPart.pdgCode())==310){ + if (std::abs(mcPart.pdgCode()) == 310) { ptk0.push_back(mcPart.pt()); } - if(std::abs(mcPart.pdgCode())==3122){ + if (std::abs(mcPart.pdgCode()) == 3122) { ptla.push_back(mcPart.pt()); } - if(std::abs(mcPart.pdgCode())==3312){ + if (std::abs(mcPart.pdgCode()) == 3312) { ptxi.push_back(mcPart.pt()); } - if(std::abs(mcPart.pdgCode())==3334){ + if (std::abs(mcPart.pdgCode()) == 3334) { ptom.push_back(mcPart.pt()); } - if(std::abs(mcPart.pdgCode())==3334){ + if (std::abs(mcPart.pdgCode()) == 3334) { ptom.push_back(mcPart.pt()); } - // inclusive HF for now - if(std::abs(mcPart.pdgCode())==421){ + // inclusive HF for now + if (std::abs(mcPart.pdgCode()) == 421) { ptd.push_back(mcPart.pt()); } - if(std::abs(mcPart.pdgCode())==4122){ + if (std::abs(mcPart.pdgCode()) == 4122) { ptd.push_back(mcPart.pt()); } - if(std::abs(mcPart.pdgCode())==443){ + if (std::abs(mcPart.pdgCode()) == 443) { ptjp.push_back(mcPart.pt()); } }