From ebe838861f479a018f6f8694fc37004e0a49b3ba Mon Sep 17 00:00:00 2001 From: tutripat <73981392+tutripat@users.noreply.github.com> Date: Fri, 27 Jun 2025 14:35:20 +0200 Subject: [PATCH 1/6] Modification in event selection cuts --- .../GlobalEventProperties/dndeta-mft-pp.cxx | 47 +++++++++++-------- 1 file changed, 27 insertions(+), 20 deletions(-) diff --git a/PWGLF/Tasks/GlobalEventProperties/dndeta-mft-pp.cxx b/PWGLF/Tasks/GlobalEventProperties/dndeta-mft-pp.cxx index 452a040d92f..3b941f568e8 100644 --- a/PWGLF/Tasks/GlobalEventProperties/dndeta-mft-pp.cxx +++ b/PWGLF/Tasks/GlobalEventProperties/dndeta-mft-pp.cxx @@ -82,6 +82,7 @@ struct PseudorapidityDensityMFT { "eta range for INEL>0 sample definition"}; Configurable useEvSel{"useEvSel", true, "use event selection"}; + Configurable disableITSROFCut{"disableITSROFCut", false, "Disable ITS ROC cut for event selection"}; ConfigurableAxis multBinning{"multBinning", {701, -0.5, 700.5}, ""}; ConfigurableAxis EtaAxis = {"etaBinning", {18, -4.6, -1.}, ""}; @@ -145,15 +146,15 @@ struct PseudorapidityDensityMFT { auto hstat = registry.get(HIST("EventSelection")); auto* x = hstat->GetXaxis(); x->SetBinLabel(1, "All"); - x->SetBinLabel(2, "Selected"); - x->SetBinLabel(3, "Selected Vz Cut"); - x->SetBinLabel(4, "Sel8+Vz+INEL>0"); - x->SetBinLabel(5, "Sel INEL,INEL_fwd>0"); - x->SetBinLabel(6, "Rejected"); - x->SetBinLabel(7, "Good BCs"); - x->SetBinLabel(8, "BCs with collisions"); - x->SetBinLabel(9, "BCs with pile-up/splitting"); - x->SetBinLabel(10, "midtracks>0"); + x->SetBinLabel(2, "Vz"); + x->SetBinLabel(3, "Vz+ITSRof"); + x->SetBinLabel(4, "Vz+Selected"); + x->SetBinLabel(5, "Sel8+Vz+INEL>0"); + x->SetBinLabel(6, "Sel INEL,INEL_fwd>0"); + x->SetBinLabel(7, "Rejected"); + x->SetBinLabel(8, "Good BCs"); + x->SetBinLabel(9, "BCs with collisions"); + x->SetBinLabel(10, "BCs with pile-up/splitting"); x->SetBinLabel(11, "percollisionSample>0"); x->SetBinLabel(12, "midtracks+percollisionSample>0"); registry.add({"EventsNtrkZvtx", @@ -450,7 +451,7 @@ struct PseudorapidityDensityMFT { if (!useEvSel || (useEvSel && ((bc.selection_bit(aod::evsel::kIsBBT0A) && bc.selection_bit(aod::evsel::kIsBBT0C)) != 0))) { - registry.fill(HIST("EventSelection"), 7); // added 5->12 + registry.fill(HIST("EventSelection"), 8); // added 5->12 cols.clear(); for (auto& collision : collisions) { if (collision.has_foundBC()) { @@ -463,9 +464,9 @@ struct PseudorapidityDensityMFT { } LOGP(debug, "BC {} has {} collisions", bc.globalBC(), cols.size()); if (!cols.empty()) { - registry.fill(HIST("EventSelection"), 8); // added 6->13 + registry.fill(HIST("EventSelection"), 9); // added 6->13 if (cols.size() > 1) { - registry.fill(HIST("EventSelection"), 9); // added 7->14 + registry.fill(HIST("EventSelection"), 10); // added 7->14 } } } @@ -569,16 +570,20 @@ struct PseudorapidityDensityMFT { registry.fill(HIST("EventsNtrkZvtx"), Ntrk, z); if ((z >= cfgVzCut1) && (z <= cfgVzCut2)) { registry.fill(HIST("Tracks/2Danalysis/EventsNtrkZvtx_all"), Ntrk, z); + registry.fill(HIST("EventSelection"), 2.); for (auto& retrack : retracks) { auto track = retrack.mfttrack(); if ((cfgnEta1 < track.eta()) && (track.eta() < cfgnEta2) && track.nClusters() >= cfgnCluster && retrack.ambDegree() > 0) { registry.fill(HIST("Tracks/2Danalysis/EtaZvtx"), track.eta(), z); } } - if (!useEvSel || (useEvSel && collision.sel8())) { - registry.fill(HIST("EventSelection"), 2.); + if (!disableITSROFCut && !collision.selection_bit(aod::evsel::kNoITSROFrameBorder)) { + return; + } + registry.fill(HIST("EventSelection"), 3.); + if (!useEvSel || (useEvSel && collision.selection_bit(aod::evsel::kIsTriggerTVX) && collision.selection_bit(aod::evsel::kNoTimeFrameBorder))) { + registry.fill(HIST("EventSelection"), 4.); registry.fill(HIST("Tracks/2Danalysis/EventsNtrkZvtx_sel8"), Ntrk, z); - registry.fill(HIST("EventSelection"), 3.); std::unordered_set uniqueEvents; std::unordered_set uniqueEventsAmb; std::unordered_set uniqueCollisions; @@ -586,8 +591,7 @@ struct PseudorapidityDensityMFT { std::unordered_set eventsInelMFT; std::unordered_set eventsInel; if (midtracks.size() > 0) { - registry.fill(HIST("EventSelection"), 4.); - registry.fill(HIST("EventSelection"), 10.); + registry.fill(HIST("EventSelection"), 5.); registry.fill(HIST("EventsNtrkZvtx_gt0"), Ntrk, z); registry.fill(HIST("Tracks/2Danalysis/EventsNtrkZvtx_sel8_inelgt0"), Ntrk, z); eventsInel.insert(collision.globalIndex()); @@ -609,7 +613,7 @@ struct PseudorapidityDensityMFT { } } if (retracks.size() > 0) { - registry.fill(HIST("EventSelection"), 5.); + registry.fill(HIST("EventSelection"), 6.); if (midtracks.size() > 0) { registry.fill(HIST("Tracks/2Danalysis/EventsNtrkZvtx_sel8_inelfwdgt0"), Ntrk, z); } @@ -736,7 +740,7 @@ struct PseudorapidityDensityMFT { registry.fill(HIST("hNumCollisions_Inel"), 1, eventsInel.size()); } } else { - registry.fill(HIST("EventSelection"), 6); + registry.fill(HIST("EventSelection"), 7); } } PROCESS_SWITCH(PseudorapidityDensityMFT, processMultReassoc, @@ -851,7 +855,10 @@ struct PseudorapidityDensityMFT { collisions.size()); for (auto& collision : collisions) { registry.fill(HIST("EventEfficiency"), 3.); - if (!useEvSel || (useEvSel && collision.sel8())) { + if (!disableITSROFCut && !collision.selection_bit(aod::evsel::kNoITSROFrameBorder)) { + return; + } + if (!useEvSel || (useEvSel && collision.selection_bit(aod::evsel::kIsTriggerTVX) && collision.selection_bit(aod::evsel::kNoTimeFrameBorder))) { atLeastOne = true; auto perCollisionSample = sample->sliceByCached( o2::aod::fwdtrack::collisionId, collision.globalIndex(), cache); From a085068ff4743bf9742a1cc9cd366aee178c6835 Mon Sep 17 00:00:00 2001 From: tutripat <73981392+tutripat@users.noreply.github.com> Date: Fri, 27 Jun 2025 14:45:52 +0200 Subject: [PATCH 2/6] Update in formating --- .../GlobalEventProperties/dndeta-mft-pp.cxx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/PWGLF/Tasks/GlobalEventProperties/dndeta-mft-pp.cxx b/PWGLF/Tasks/GlobalEventProperties/dndeta-mft-pp.cxx index 3b941f568e8..a9932f73060 100644 --- a/PWGLF/Tasks/GlobalEventProperties/dndeta-mft-pp.cxx +++ b/PWGLF/Tasks/GlobalEventProperties/dndeta-mft-pp.cxx @@ -51,7 +51,7 @@ using namespace o2::aod::track; AxisSpec PtAxis = {1001, -0.005, 10.005}; AxisSpec DeltaZAxis = {61, -6.1, 6.1}; AxisSpec ZAxis = {301, -30.1, 30.1}; -AxisSpec PhiAxis = {629, 0, 2 * M_PI, "Rad", "phi axis"}; +AxisSpec PhiAxis = {629, 0, 2 * o2::constants::math::PI, "Rad", "phi axis"}; // AxisSpec EtaAxis = {18, -4.6, -1.}; AxisSpec DCAxyAxis = {100, -1, 10}; AxisSpec CentAxis = {{0, 10, 20, 30, 40, 50, 60, 70, 80, 100}}; @@ -530,10 +530,10 @@ struct PseudorapidityDensityMFT { if (usePhiCut) { if ((phi < cfgPhiCut) || - ((phi > M_PI - cfgPhiCut) && (phi < M_PI + cfgPhiCut)) || - (phi > 2. * M_PI - cfgPhiCut) || - ((phi > ((M_PI / 2. - 0.1) * M_PI) - cfgPhiCut) && - (phi < ((M_PI / 2. - 0.1) * M_PI) + cfgPhiCut))) + ((phi > o2::constants::math::PI - cfgPhiCut) && (phi < o2::constants::math::PI + cfgPhiCut)) || + (phi > 2. * o2::constants::math::PI - cfgPhiCut) || + ((phi > ((o2::constants::math::PI / 2. - 0.1) * o2::constants::math::PI) - cfgPhiCut) && + (phi < ((o2::constants::math::PI / 2. - 0.1) * o2::constants::math::PI) + cfgPhiCut))) continue; } @@ -770,10 +770,10 @@ struct PseudorapidityDensityMFT { if (usePhiCut) { if ((phi < cfgPhiCut) || - ((phi > M_PI - cfgPhiCut) && (phi < M_PI + cfgPhiCut)) || - (phi > 2. * M_PI - cfgPhiCut) || - ((phi > ((M_PI / 2. - 0.1) * M_PI) - cfgPhiCut) && - (phi < ((M_PI / 2. - 0.1) * M_PI) + cfgPhiCut))) + ((phi > o2::constants::math::PI - cfgPhiCut) && (phi < o2::constants::math::PI + cfgPhiCut)) || + (phi > 2. * o2::constants::math::PI - cfgPhiCut) || + ((phi > ((o2::constants::math::PI / 2. - 0.1) * o2::constants::math::PI) - cfgPhiCut) && + (phi < ((o2::constants::math::PI / 2. - 0.1) * o2::constants::math::PI) + cfgPhiCut))) continue; } From 8f03c837cc60e7740e8206179ea9b34c49180f5b Mon Sep 17 00:00:00 2001 From: tutripat <73981392+tutripat@users.noreply.github.com> Date: Fri, 27 Jun 2025 15:01:36 +0200 Subject: [PATCH 3/6] Update in formating --- .../GlobalEventProperties/dndeta-mft-pp.cxx | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/PWGLF/Tasks/GlobalEventProperties/dndeta-mft-pp.cxx b/PWGLF/Tasks/GlobalEventProperties/dndeta-mft-pp.cxx index a9932f73060..8a5c98012b8 100644 --- a/PWGLF/Tasks/GlobalEventProperties/dndeta-mft-pp.cxx +++ b/PWGLF/Tasks/GlobalEventProperties/dndeta-mft-pp.cxx @@ -19,7 +19,6 @@ #include #include #include -#include #include #include @@ -38,7 +37,6 @@ #include "CommonConstants/MathConstants.h" #include "MathUtils/Utils.h" #include "ReconstructionDataFormats/GlobalTrackID.h" -#include "TDatabasePDG.h" #include "PWGMM/Mult/DataModel/bestCollisionTable.h" #include "TFile.h" @@ -51,7 +49,7 @@ using namespace o2::aod::track; AxisSpec PtAxis = {1001, -0.005, 10.005}; AxisSpec DeltaZAxis = {61, -6.1, 6.1}; AxisSpec ZAxis = {301, -30.1, 30.1}; -AxisSpec PhiAxis = {629, 0, 2 * o2::constants::math::PI, "Rad", "phi axis"}; +AxisSpec PhiAxis = {629, 0, o2::constants::math::TwoPI, "Rad", "phi axis"}; // AxisSpec EtaAxis = {18, -4.6, -1.}; AxisSpec DCAxyAxis = {100, -1, 10}; AxisSpec CentAxis = {{0, 10, 20, 30, 40, 50, 60, 70, 80, 100}}; @@ -531,9 +529,9 @@ struct PseudorapidityDensityMFT { if (usePhiCut) { if ((phi < cfgPhiCut) || ((phi > o2::constants::math::PI - cfgPhiCut) && (phi < o2::constants::math::PI + cfgPhiCut)) || - (phi > 2. * o2::constants::math::PI - cfgPhiCut) || - ((phi > ((o2::constants::math::PI / 2. - 0.1) * o2::constants::math::PI) - cfgPhiCut) && - (phi < ((o2::constants::math::PI / 2. - 0.1) * o2::constants::math::PI) + cfgPhiCut))) + (phi > o2::constants::math::TwoPI - cfgPhiCut) || + ((phi > ((o2::constants::math::PIHalf - 0.1) * o2::constants::math::PI) - cfgPhiCut) && + (phi < ((o2::constants::math::PIHalf - 0.1) * o2::constants::math::PI) + cfgPhiCut))) continue; } @@ -771,9 +769,9 @@ struct PseudorapidityDensityMFT { if (usePhiCut) { if ((phi < cfgPhiCut) || ((phi > o2::constants::math::PI - cfgPhiCut) && (phi < o2::constants::math::PI + cfgPhiCut)) || - (phi > 2. * o2::constants::math::PI - cfgPhiCut) || - ((phi > ((o2::constants::math::PI / 2. - 0.1) * o2::constants::math::PI) - cfgPhiCut) && - (phi < ((o2::constants::math::PI / 2. - 0.1) * o2::constants::math::PI) + cfgPhiCut))) + (phi > o2::constants::math::TwoPI - cfgPhiCut) || + ((phi > ((o2::constants::math::PIHalf - 0.1) * o2::constants::math::PI) - cfgPhiCut) && + (phi < ((o2::constants::math::PIHalf - 0.1) * o2::constants::math::PI) + cfgPhiCut))) continue; } From 448db395c29ce346ad45e5e20f7b40cfe04446e1 Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Fri, 27 Jun 2025 13:02:05 +0000 Subject: [PATCH 4/6] Please consider the following formatting changes --- .../GlobalEventProperties/dndeta-mft-pp.cxx | 27 ++++++++++--------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/PWGLF/Tasks/GlobalEventProperties/dndeta-mft-pp.cxx b/PWGLF/Tasks/GlobalEventProperties/dndeta-mft-pp.cxx index 8a5c98012b8..c39ab3c4fa1 100644 --- a/PWGLF/Tasks/GlobalEventProperties/dndeta-mft-pp.cxx +++ b/PWGLF/Tasks/GlobalEventProperties/dndeta-mft-pp.cxx @@ -15,13 +15,14 @@ // \brief This code loops over MFT tracks and collisions and fills histograms // useful to compute dNdeta -#include -#include -#include -#include -#include -#include +#include "PWGMM/Mult/DataModel/bestCollisionTable.h" +#include "Common/DataModel/Centrality.h" +#include "Common/DataModel/EventSelection.h" +#include "Common/DataModel/Multiplicity.h" +#include "Common/DataModel/TrackSelectionTables.h" + +#include "CommonConstants/MathConstants.h" #include "Framework/ASoAHelpers.h" #include "Framework/AnalysisDataModel.h" #include "Framework/AnalysisTask.h" @@ -29,18 +30,18 @@ #include "Framework/O2DatabasePDGPlugin.h" #include "Framework/RuntimeError.h" #include "Framework/runDataProcessing.h" - -#include "Common/DataModel/Centrality.h" -#include "Common/DataModel/EventSelection.h" -#include "Common/DataModel/Multiplicity.h" -#include "Common/DataModel/TrackSelectionTables.h" -#include "CommonConstants/MathConstants.h" #include "MathUtils/Utils.h" #include "ReconstructionDataFormats/GlobalTrackID.h" -#include "PWGMM/Mult/DataModel/bestCollisionTable.h" #include "TFile.h" +#include +#include +#include +#include +#include +#include + using namespace o2; using namespace o2::framework; using namespace o2::framework::expressions; From ba88800d6677a8a34a80d84ee993636f40093ee5 Mon Sep 17 00:00:00 2001 From: tutripat <73981392+tutripat@users.noreply.github.com> Date: Fri, 27 Jun 2025 15:13:55 +0200 Subject: [PATCH 5/6] Update in formating --- .../GlobalEventProperties/dndeta-mft-pp.cxx | 57 +++++++++---------- 1 file changed, 28 insertions(+), 29 deletions(-) diff --git a/PWGLF/Tasks/GlobalEventProperties/dndeta-mft-pp.cxx b/PWGLF/Tasks/GlobalEventProperties/dndeta-mft-pp.cxx index c39ab3c4fa1..e6cc57bdf0e 100644 --- a/PWGLF/Tasks/GlobalEventProperties/dndeta-mft-pp.cxx +++ b/PWGLF/Tasks/GlobalEventProperties/dndeta-mft-pp.cxx @@ -15,14 +15,13 @@ // \brief This code loops over MFT tracks and collisions and fills histograms // useful to compute dNdeta -#include "PWGMM/Mult/DataModel/bestCollisionTable.h" - -#include "Common/DataModel/Centrality.h" -#include "Common/DataModel/EventSelection.h" -#include "Common/DataModel/Multiplicity.h" -#include "Common/DataModel/TrackSelectionTables.h" +#include +#include +#include +#include +#include +#include -#include "CommonConstants/MathConstants.h" #include "Framework/ASoAHelpers.h" #include "Framework/AnalysisDataModel.h" #include "Framework/AnalysisTask.h" @@ -30,18 +29,18 @@ #include "Framework/O2DatabasePDGPlugin.h" #include "Framework/RuntimeError.h" #include "Framework/runDataProcessing.h" + +#include "Common/DataModel/Centrality.h" +#include "Common/DataModel/EventSelection.h" +#include "Common/DataModel/Multiplicity.h" +#include "Common/DataModel/TrackSelectionTables.h" +#include "CommonConstants/MathConstants.h" #include "MathUtils/Utils.h" #include "ReconstructionDataFormats/GlobalTrackID.h" +#include "PWGMM/Mult/DataModel/bestCollisionTable.h" #include "TFile.h" -#include -#include -#include -#include -#include -#include - using namespace o2; using namespace o2::framework; using namespace o2::framework::expressions; @@ -446,13 +445,13 @@ struct PseudorapidityDensityMFT { { std::vector::iterator> cols; - for (auto& bc : bcs) { + for (const auto& bc : bcs) { if (!useEvSel || (useEvSel && ((bc.selection_bit(aod::evsel::kIsBBT0A) && bc.selection_bit(aod::evsel::kIsBBT0C)) != 0))) { registry.fill(HIST("EventSelection"), 8); // added 5->12 cols.clear(); - for (auto& collision : collisions) { + for (const auto& collision : collisions) { if (collision.has_foundBC()) { if (collision.foundBCId() == bc.globalIndex()) { cols.emplace_back(collision); @@ -522,7 +521,7 @@ struct PseudorapidityDensityMFT { } if (tracks.size() > 0) { - for (auto& track : tracks) { + for (const auto& track : tracks) { float phi = track.phi(); o2::math_utils::bringTo02Pi(phi); @@ -570,7 +569,7 @@ struct PseudorapidityDensityMFT { if ((z >= cfgVzCut1) && (z <= cfgVzCut2)) { registry.fill(HIST("Tracks/2Danalysis/EventsNtrkZvtx_all"), Ntrk, z); registry.fill(HIST("EventSelection"), 2.); - for (auto& retrack : retracks) { + for (const auto& retrack : retracks) { auto track = retrack.mfttrack(); if ((cfgnEta1 < track.eta()) && (track.eta() < cfgnEta2) && track.nClusters() >= cfgnCluster && retrack.ambDegree() > 0) { registry.fill(HIST("Tracks/2Danalysis/EtaZvtx"), track.eta(), z); @@ -602,7 +601,7 @@ struct PseudorapidityDensityMFT { registry.fill(HIST("EventSelection"), 12.); } int64_t i = 0.0, j = 0.0, k = 0.0; - for (auto& retrack : retracks) { + for (const auto& retrack : retracks) { auto track = retrack.mfttrack(); if ((cfgnEta1 < track.eta()) && (track.eta() < cfgnEta2) && track.nClusters() >= cfgnCluster && retrack.ambDegree() > 0) { registry.fill(HIST("Tracks/2Danalysis/EtaZvtx_sel8"), track.eta(), z); @@ -616,7 +615,7 @@ struct PseudorapidityDensityMFT { if (midtracks.size() > 0) { registry.fill(HIST("Tracks/2Danalysis/EventsNtrkZvtx_sel8_inelfwdgt0"), Ntrk, z); } - for (auto& retrack : retracks) { + for (const auto& retrack : retracks) { auto track = retrack.mfttrack(); if ((cfgnEta1 < track.eta()) && (track.eta() < cfgnEta2) && track.nClusters() >= cfgnCluster) { @@ -762,7 +761,7 @@ struct PseudorapidityDensityMFT { registry.fill(HIST("Events/Centrality/NtrkZvtx"), Ntrk, z, c); - for (auto& track : tracks) { + for (const auto& track : tracks) { float phi = track.phi(); o2::math_utils::bringTo02Pi(phi); @@ -810,7 +809,7 @@ struct PseudorapidityDensityMFT { auto perCollisionMCSample = mcSample->sliceByCached( aod::mcparticle::mcCollisionId, mcCollision.globalIndex(), cache); auto nCharged = 0; - for (auto& particle : perCollisionMCSample) { + for (const auto& particle : perCollisionMCSample) { auto charge = 0.; auto p = pdg->GetParticle(particle.pdgCode()); if (p != nullptr) { @@ -827,7 +826,7 @@ struct PseudorapidityDensityMFT { auto perCollisionMCSampleCentral = mcSampleCentral->sliceByCached( aod::mcparticle::mcCollisionId, mcCollision.globalIndex(), cache); auto nChargedCentral = 0; - for (auto& particle : perCollisionMCSampleCentral) { + for (const auto& particle : perCollisionMCSample) { auto charge = 0.; auto p = pdg->GetParticle(particle.pdgCode()); if (p != nullptr) { @@ -852,7 +851,7 @@ struct PseudorapidityDensityMFT { LOGP(debug, "MC col {} has {} reco cols", mcCollision.globalIndex(), collisions.size()); - for (auto& collision : collisions) { + for (const auto& collision : collisions) { registry.fill(HIST("EventEfficiency"), 3.); if (!disableITSROFCut && !collision.selection_bit(aod::evsel::kNoITSROFrameBorder)) { return; @@ -894,7 +893,7 @@ struct PseudorapidityDensityMFT { registry.fill(HIST("EventsSplitMult"), nCharged); } if ((mcCollision.posZ() >= cfgVzCut1) && (mcCollision.posZ() <= cfgVzCut2)) { - for (auto& particle : particles) { + for (const auto& particle : particles) { auto p = pdg->GetParticle(particle.pdgCode()); auto charge = 0; if (p != nullptr) { @@ -949,7 +948,7 @@ struct PseudorapidityDensityMFT { float c_gen = -1; bool atLeastOne = false; - for (auto& collision : collisions) { + for (const auto& collision : collisions) { float c_rec = -1; if constexpr (ExColsGenCent::template contains()) { c_rec = collision.centFT0C(); @@ -978,7 +977,7 @@ struct PseudorapidityDensityMFT { aod::mcparticle::mcCollisionId, mcCollision.globalIndex(), cache); auto nCharged = 0; - for (auto& particle : perCollisionMCSample) { + for (const auto& particle : perCollisionMCSample) { auto p = pdg->GetParticle(particle.pdgCode()); auto charge = 0; if (p != nullptr) { @@ -995,7 +994,7 @@ struct PseudorapidityDensityMFT { mcCollision.posZ(), c_gen); } - for (auto& particle : particles) { + for (const auto& particle : particles) { auto p = pdg->GetParticle(particle.pdgCode()); auto charge = 0; if (p != nullptr) { @@ -1031,7 +1030,7 @@ struct PseudorapidityDensityMFT { MFTTracksLabeled const& tracks, aod::McParticles const&) { if (!useEvSel || (useEvSel && collision.sel8())) { - for (auto& track : tracks) { + for (const auto& track : tracks) { if (!track.has_mcParticle()) { continue; } From fadcc275582027acea27c50148925e978c9cfc79 Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Fri, 27 Jun 2025 13:14:19 +0000 Subject: [PATCH 6/6] Please consider the following formatting changes --- .../GlobalEventProperties/dndeta-mft-pp.cxx | 27 ++++++++++--------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/PWGLF/Tasks/GlobalEventProperties/dndeta-mft-pp.cxx b/PWGLF/Tasks/GlobalEventProperties/dndeta-mft-pp.cxx index e6cc57bdf0e..6edb6b9a497 100644 --- a/PWGLF/Tasks/GlobalEventProperties/dndeta-mft-pp.cxx +++ b/PWGLF/Tasks/GlobalEventProperties/dndeta-mft-pp.cxx @@ -15,13 +15,14 @@ // \brief This code loops over MFT tracks and collisions and fills histograms // useful to compute dNdeta -#include -#include -#include -#include -#include -#include +#include "PWGMM/Mult/DataModel/bestCollisionTable.h" +#include "Common/DataModel/Centrality.h" +#include "Common/DataModel/EventSelection.h" +#include "Common/DataModel/Multiplicity.h" +#include "Common/DataModel/TrackSelectionTables.h" + +#include "CommonConstants/MathConstants.h" #include "Framework/ASoAHelpers.h" #include "Framework/AnalysisDataModel.h" #include "Framework/AnalysisTask.h" @@ -29,18 +30,18 @@ #include "Framework/O2DatabasePDGPlugin.h" #include "Framework/RuntimeError.h" #include "Framework/runDataProcessing.h" - -#include "Common/DataModel/Centrality.h" -#include "Common/DataModel/EventSelection.h" -#include "Common/DataModel/Multiplicity.h" -#include "Common/DataModel/TrackSelectionTables.h" -#include "CommonConstants/MathConstants.h" #include "MathUtils/Utils.h" #include "ReconstructionDataFormats/GlobalTrackID.h" -#include "PWGMM/Mult/DataModel/bestCollisionTable.h" #include "TFile.h" +#include +#include +#include +#include +#include +#include + using namespace o2; using namespace o2::framework; using namespace o2::framework::expressions;