From 7d8d9a71183ee12397c9b73a6829e1f9fb7b44a8 Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Thu, 2 Apr 2026 14:22:27 +0000 Subject: [PATCH] Please consider the following formatting changes --- PWGUD/Tasks/flowMcUpc.cxx | 42 +++++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/PWGUD/Tasks/flowMcUpc.cxx b/PWGUD/Tasks/flowMcUpc.cxx index 43e6a9c63f1..457367cf97d 100644 --- a/PWGUD/Tasks/flowMcUpc.cxx +++ b/PWGUD/Tasks/flowMcUpc.cxx @@ -14,27 +14,31 @@ /// \since Apr/2/2026 /// \brief flow efficiency analysis on UPC MC -#include #include "PWGUD/Core/SGSelector.h" #include "PWGUD/DataModel/UDTables.h" -#include -#include -#include "Framework/AnalysisDataModel.h" -#include "Framework/AnalysisTask.h" -#include "Framework/HistogramRegistry.h" -#include "Framework/runDataProcessing.h" -#include "Framework/ASoAHelpers.h" -#include "Framework/RunningWorkflowInfo.h" -#include "Common/DataModel/TrackSelectionTables.h" + #include "Common/Core/RecoDecay.h" #include "Common/Core/TrackSelection.h" #include "Common/Core/TrackSelectionDefaults.h" #include "Common/Core/trackUtilities.h" +#include "Common/DataModel/TrackSelectionTables.h" + +#include "Framework/ASoAHelpers.h" +#include "Framework/AnalysisDataModel.h" +#include "Framework/AnalysisTask.h" +#include "Framework/HistogramRegistry.h" +#include "Framework/RunningWorkflowInfo.h" +#include "Framework/runDataProcessing.h" #include "ReconstructionDataFormats/Track.h" +#include + +#include +#include #include #include -#include -#include + +#include +#include using namespace o2; using namespace o2::framework; @@ -54,7 +58,6 @@ struct FlowMcUpc { O2_DEFINE_CONFIGURABLE(cfgCutDCAxy, float, 0.2f, "DCAxy cut for tracks") O2_DEFINE_CONFIGURABLE(cfgDcaxy, bool, true, "choose dcaxy") - ConfigurableAxis axisB{"axisB", {100, 0.0f, 20.0f}, ""}; ConfigurableAxis axisPt{"axisPt", {VARIABLE_WIDTH, 0.0f, 0.1f, 0.2f, 0.3f, 0.4f, 0.5f, 0.6f, 0.7f, 0.8f, 0.9f, 1.0f, 1.1f, 1.2f, 1.3f, 1.4f, 1.5f, 1.6f, 1.7f, 1.8f, 1.9f, 2.0f, 2.2f, 2.4f, 2.6f, 2.8f, 3.0f, 3.2f, 3.4f, 3.6f, 3.8f, 4.0f, 4.4f, 4.8f, 5.2f, 5.6f, 6.0f, 6.5f, 7.0f, 7.5f, 8.0f, 9.0f, 10.0f, 11.0f, 12.0f}, "pt axis"}; // Connect to ccdb @@ -65,7 +68,6 @@ struct FlowMcUpc { using McParticles = soa::Join; - void init(InitContext&) { ccdb->setURL(ccdbUrl.value); @@ -85,7 +87,6 @@ struct FlowMcUpc { histos.add("hEtaPtVtxzMCGen", "Monte Carlo Truth; #eta; p_{T} (GeV/c); V_{z} (cm);", {HistType::kTH3D, {axisEta, axisPt, axisVertex}}); histos.add("hPtReco", "Monte Carlo Reco Global; pT (GeV/c);", {HistType::kTH1D, {axisPt}}); histos.add("hEtaPtVtxzMCReco", "Monte Carlo Global; #eta; p_{T} (GeV/c); V_{z} (cm);", {HistType::kTH3D, {axisEta, axisPt, axisVertex}}); - } // template @@ -136,12 +137,11 @@ struct FlowMcUpc { continue; // if (std::fabs(mcParticle.eta()) > cfgCutEta) // main acceptance // continue; - + histos.fill(HIST("hPtMCGen"), pt); histos.fill(HIST("hEtaPtVtxzMCGen"), eta, pt, vtxz); } } - } PROCESS_SWITCH(FlowMcUpc, processMCTrue, "process pure simulation information", true); @@ -165,9 +165,9 @@ struct FlowMcUpc { for (const auto& track : tracks) { auto momentum = std::array{track.px(), track.py(), track.pz()}; - double pt = RecoDecay::pt(momentum); - double phi = RecoDecay::phi(momentum); - double eta = RecoDecay::eta(momentum); + double pt = RecoDecay::pt(momentum); + double phi = RecoDecay::phi(momentum); + double eta = RecoDecay::eta(momentum); if (!trackSelected(track) || (!track.has_udMcParticle())) continue; auto mcParticle = track.udMcParticle(); @@ -178,7 +178,7 @@ struct FlowMcUpc { // continue; if (!mcParticle.isPhysicalPrimary()) continue; - + histos.fill(HIST("hPtReco"), pt); histos.fill(HIST("hEtaPtVtxzMCReco"), eta, pt, vtxz); }