From d54babcd25b05f8d6f05a9afa1110733c02a635f Mon Sep 17 00:00:00 2001 From: Evgeny Kryshen Date: Wed, 18 Nov 2026 23:20:52 +0300 Subject: [PATCH 1/5] Example time scan task added for tutorial --- Tutorials/PWGUD/timeScan.cxx | 246 +++++++++++++++++++++++++++++++++++ 1 file changed, 246 insertions(+) create mode 100644 Tutorials/PWGUD/timeScan.cxx diff --git a/Tutorials/PWGUD/timeScan.cxx b/Tutorials/PWGUD/timeScan.cxx new file mode 100644 index 00000000000..84483ae6114 --- /dev/null +++ b/Tutorials/PWGUD/timeScan.cxx @@ -0,0 +1,246 @@ +// Copyright 2019-2020 CERN and copyright holders of ALICE O2. +// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders. +// All rights not expressly granted are reserved. +// +// This software is distributed under the terms of the GNU General Public +// License v3 (GPL Version 3), copied verbatim in the file "COPYING". +// +// In applying this license CERN does not waive the privileges and immunities +// granted to it by virtue of its status as an Intergovernmental Organization +// or submit itself to any jurisdiction. + +/// \file timeScan.cxx +/// \brief Example task to scan data vs time TF-by-TF in single AO2D.root +/// Run as: o2-analysis-ud-time-structure --aod-file AO2D.root +/// Filling 1D histos (fill1D=1) might require large shm size: --shm-segment-size 14000000000 +/// \author Evgeny Kryshen + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include + +using namespace o2; +using namespace o2::framework; + +struct TimeScan { + // Need several histogram registries since each HistogramRegistry has a limit of 512 histos + HistogramRegistry histos{"histos", {}}; + HistogramRegistry histosCollidingBCs{"histosCollidingBCs", {}}; + HistogramRegistry histosBCs{"histosBCs", {}}; + HistogramRegistry histosCols{"histosCols", {}}; + HistogramRegistry histosFT0A{"histosFT0A", {}}; + HistogramRegistry histosFT0C{"histosFT0C", {}}; + HistogramRegistry histosFV0A{"histosFV0A", {}}; + HistogramRegistry histosFDDA{"histosFDDA", {}}; + HistogramRegistry histosFDDC{"histosFDDC", {}}; + HistogramRegistry histosZNA{"histosZNA", {}}; + HistogramRegistry histosZNC{"histosZNC", {}}; + Service ccdb{}; + + int32_t cachedRunNumber = -1; + int64_t bcSOR = 0; + int32_t nBCsPerTF = 32 * o2::constants::lhc::LHCMaxBunches; + std::bitset collidingBCs; + + std::map> mapHistoCollidingBCs; + std::map> mapHistoBCs; + std::map> mapHistoCols; + std::map> mapHistoFT0A; + std::map> mapHistoFT0C; + std::map> mapHistoFV0A; + std::map> mapHistoFDDA; + std::map> mapHistoFDDC; + std::map> mapHistoZNA; + std::map> mapHistoZNC; + + Configurable fill1D{"fill1D", 0, "Fill 1D histos: 0=off, 1=on"}; + + void init(InitContext&) + { + ccdb->setLocalObjectValidityChecking(); + const AxisSpec axisBCinTF{nBCsPerTF, 0., static_cast(nBCsPerTF), "BC in TF"}; + const AxisSpec axisTF{1, 0., 1., "TF"}; + const AxisSpec axisNumContrib{1000, 0., 8000., "Number of contributors"}; + const AxisSpec axisSumAmpFV0A{2000, 0., 200000., "V0A amplitude"}; + const AxisSpec axisSumAmpFT0A{2000, 0., 200000., "T0A amplitude"}; + const AxisSpec axisSumAmpFT0C{2000, 0., 70000., "T0C amplitude"}; + const AxisSpec axisSumAmpFDDA{2000, 0., 40000., "FDA amplitude"}; + const AxisSpec axisSumAmpFDDC{2000, 0., 40000., "FDC amplitude"}; + const AxisSpec axisSumAmpZNA{3000, 0., 300., "ZNA amplitude"}; + const AxisSpec axisSumAmpZNC{3000, 0., 300., "ZNC amplitude"}; + + histos.add("hCollidingBCs", "Colliding BCs", HistType::kTH2D, {axisTF, axisBCinTF}); + histos.add("hBCs", "Non-empty BCs", HistType::kTH2D, {axisTF, axisBCinTF}); + histos.add("hCols", "Number of contributors", HistType::kTH2D, {axisTF, axisBCinTF}); + histos.add("hFT0A", "FT0A amplitude", HistType::kTH2D, {axisTF, axisBCinTF}); + histos.add("hFT0C", "FT0C amplitude", HistType::kTH2D, {axisTF, axisBCinTF}); + histos.add("hFV0A", "FV0A amplitude", HistType::kTH2D, {axisTF, axisBCinTF}); + histos.add("hFDDA", "FDDA amplitude", HistType::kTH2D, {axisTF, axisBCinTF}); + histos.add("hFDDC", "FDDC amplitude", HistType::kTH2D, {axisTF, axisBCinTF}); + histos.add("hZNA", "ZNA amplitude", HistType::kTH2D, {axisTF, axisBCinTF}); + histos.add("hZNC", "ZNC amplitude", HistType::kTH2D, {axisTF, axisBCinTF}); + + histos.add("hNumContrib", "Number of contributors", HistType::kTH1D, {axisNumContrib}); + histos.add("hSumAmpFV0A", "FV0A amplitude", HistType::kTH1D, {axisSumAmpFV0A}); + histos.add("hSumAmpFT0A", "FT0A amplitude", HistType::kTH1D, {axisSumAmpFT0A}); + histos.add("hSumAmpFT0C", "FT0C amplitude", HistType::kTH1D, {axisSumAmpFT0C}); + histos.add("hSumAmpFDDA", "FDDA amplitude", HistType::kTH1D, {axisSumAmpFDDA}); + histos.add("hSumAmpFDDC", "FDDC amplitude", HistType::kTH1D, {axisSumAmpFDDC}); + histos.add("hSumAmpZNA", "ZNA amplitude", HistType::kTH1D, {axisSumAmpZNA}); + histos.add("hSumAmpZNC", "ZNC amplitude", HistType::kTH1D, {axisSumAmpZNC}); + } + + void process(aod::BCs const& bcs, aod::Collisions const& collisions, aod::FT0s const& ft0s, aod::FV0As const& fv0s, aod::FDDs const& fdds, aod::Zdcs const& zdcs) + { + LOGP(info, "Processing new DF"); + + int32_t runNumber = bcs.begin().runNumber(); + if (runNumber != cachedRunNumber) { + LOGP(debug, "Updating run info (called once per run)"); + cachedRunNumber = runNumber; + const auto runInfo = o2::parameters::AggregatedRunInfo::buildAggregatedRunInfo(ccdb->instance(), runNumber); + bcSOR = runInfo.orbitSOR * o2::constants::lhc::LHCMaxBunches; + nBCsPerTF = runInfo.orbitsPerTF * o2::constants::lhc::LHCMaxBunches; + collidingBCs = runInfo.grpLHC->getBunchFilling().getBCPattern(); + } + + for (const auto& bc : bcs) { + const int64_t globalBC = bc.globalBC(); + const int32_t tfID = (globalBC - bcSOR) / nBCsPerTF; + if (!mapHistoCollidingBCs.contains(tfID)) { + LOGP(debug, "Fill maps of 1D histograms for new TF"); + const AxisSpec axisBCinTF{nBCsPerTF, 0., static_cast(nBCsPerTF), "BC in TF"}; + mapHistoCollidingBCs[tfID] = histosCollidingBCs.add(Form("%d/hCollidingBCs", tfID), "Colliding BCs", HistType::kTH1D, {axisBCinTF}); + if (fill1D) { + mapHistoBCs[tfID] = histosBCs.add(Form("%d/hBCs", tfID), "Non-empty BCs", HistType::kTH1D, {axisBCinTF}); + mapHistoCols[tfID] = histosCols.add(Form("%d/hCols", tfID), "Number of contributors", HistType::kTH1D, {axisBCinTF}); + mapHistoFT0A[tfID] = histosFT0A.add(Form("%d/hFT0A", tfID), "FT0A amplitude", HistType::kTH1D, {axisBCinTF}); + mapHistoFT0C[tfID] = histosFT0C.add(Form("%d/hFT0C", tfID), "FT0C amplitude", HistType::kTH1D, {axisBCinTF}); + mapHistoFV0A[tfID] = histosFV0A.add(Form("%d/hFV0A", tfID), "FV0A amplitude", HistType::kTH1D, {axisBCinTF}); + mapHistoFDDA[tfID] = histosFDDA.add(Form("%d/hFDDA", tfID), "FDDA amplitude", HistType::kTH1D, {axisBCinTF}); + mapHistoFDDC[tfID] = histosFDDC.add(Form("%d/hFDDC", tfID), "FDDC amplitude", HistType::kTH1D, {axisBCinTF}); + mapHistoZNA[tfID] = histosZNA.add(Form("%d/hZNA", tfID), "ZNA amplitude", HistType::kTH1D, {axisBCinTF}); + mapHistoZNC[tfID] = histosZNC.add(Form("%d/hZNC", tfID), "ZNC amplitude", HistType::kTH1D, {axisBCinTF}); + } + + LOGP(debug, "Filling colliding bcs"); + for (int32_t bcInTF = 0; bcInTF < nBCsPerTF; bcInTF++) { + if (collidingBCs[bcInTF % o2::constants::lhc::LHCMaxBunches]) { + mapHistoCollidingBCs[tfID]->Fill(bcInTF); + histos.get(HIST("hCollidingBCs"))->Fill(Form("%d", tfID), bcInTF, 1.); + } + } + } + } + + LOGP(debug, "Filling bc activity"); + for (const auto& bc : bcs) { + const int64_t globalBC = bc.globalBC(); + const int32_t tfID = (globalBC - bcSOR) / nBCsPerTF; + const int32_t bcInTF = (globalBC - bcSOR) % nBCsPerTF; + LOGP(debug, "globalBC={} tfID={} bcInTF={}", globalBC, tfID, bcInTF); + histos.get(HIST("hBCs"))->Fill(Form("%d", tfID), bcInTF, 1.); + if (fill1D) { + mapHistoBCs[tfID]->Fill(bcInTF); + } + } + + LOGP(debug, "Filling collision activity"); + for (const auto& collision : collisions) { + const int64_t globalBC = collision.bc().globalBC(); + const int32_t tfID = (globalBC - bcSOR) / nBCsPerTF; + const int32_t bcInTF = (globalBC - bcSOR) % nBCsPerTF; + const int32_t nContributors = collision.numContrib(); + LOGP(debug, "globalBC={} nContributors={}", globalBC, nContributors); + histos.get(HIST("hCols"))->Fill(Form("%d", tfID), bcInTF, nContributors); + histos.get(HIST("hNumContrib"))->Fill(nContributors); + if (fill1D) { + mapHistoCols[tfID]->Fill(bcInTF, nContributors); + } + } + + LOGP(debug, "Filling FT0 activity"); + for (const auto& ft0 : ft0s) { + const int64_t globalBC = ft0.bc().globalBC(); + const int32_t tfID = (globalBC - bcSOR) / nBCsPerTF; + const int32_t bcInTF = (globalBC - bcSOR) % nBCsPerTF; + const float sumAmpFT0A = ft0.sumAmpA(); + const float sumAmpFT0C = ft0.sumAmpC(); + LOGP(debug, "globalBC={} sumAmpFT0A={} sumAmpFT0C", globalBC, sumAmpFT0A, sumAmpFT0C); + histos.get(HIST("hFT0A"))->Fill(Form("%d", tfID), bcInTF, sumAmpFT0A); + histos.get(HIST("hFT0C"))->Fill(Form("%d", tfID), bcInTF, sumAmpFT0C); + histos.get(HIST("hSumAmpFT0A"))->Fill(sumAmpFT0A); + histos.get(HIST("hSumAmpFT0C"))->Fill(sumAmpFT0C); + if (fill1D) { + mapHistoFT0A[tfID]->Fill(bcInTF, sumAmpFT0A); + mapHistoFT0C[tfID]->Fill(bcInTF, sumAmpFT0C); + } + } + + LOGP(debug, "Filling FV0 activity"); + for (const auto& fv0 : fv0s) { + const int64_t globalBC = fv0.bc().globalBC(); + const int32_t tfID = (globalBC - bcSOR) / nBCsPerTF; + const int32_t bcInTF = (globalBC - bcSOR) % nBCsPerTF; + const float sumAmpFV0A = std::accumulate(fv0.amplitude().begin(), fv0.amplitude().end(), 0.f); + LOGP(debug, "globalBC={} sumAmpFV0A={}", globalBC, sumAmpFV0A); + histos.get(HIST("hFV0A"))->Fill(Form("%d", tfID), bcInTF, sumAmpFV0A); + histos.get(HIST("hSumAmpFV0A"))->Fill(sumAmpFV0A); + if (fill1D) { + mapHistoFV0A[tfID]->Fill(bcInTF, sumAmpFV0A); + } + } + + LOGP(debug, "Filling FDD activity"); + for (const auto& fdd : fdds) { + const int64_t globalBC = fdd.bc().globalBC(); + const int32_t tfID = (globalBC - bcSOR) / nBCsPerTF; + const int32_t bcInTF = (globalBC - bcSOR) % nBCsPerTF; + const float sumAmpFDDA = std::accumulate(std::begin(fdd.chargeA()), std::end(fdd.chargeA()), 0.f); + const float sumAmpFDDC = std::accumulate(std::begin(fdd.chargeC()), std::end(fdd.chargeC()), 0.f); + LOGP(debug, "globalBC={} sumAmpFDDA={} sumAmpFDDC={}", globalBC, sumAmpFDDA, sumAmpFDDC); + histos.get(HIST("hFDDA"))->Fill(Form("%d", tfID), bcInTF, sumAmpFDDA); + histos.get(HIST("hFDDC"))->Fill(Form("%d", tfID), bcInTF, sumAmpFDDC); + histos.get(HIST("hSumAmpFDDA"))->Fill(sumAmpFDDA); + histos.get(HIST("hSumAmpFDDC"))->Fill(sumAmpFDDC); + if (fill1D) { + mapHistoFDDA[tfID]->Fill(bcInTF, sumAmpFDDA); + mapHistoFDDC[tfID]->Fill(bcInTF, sumAmpFDDC); + } + } + + LOGP(debug, "Filling ZDC activity"); + for (const auto& zdc : zdcs) { + const int64_t globalBC = zdc.bc().globalBC(); + const int32_t tfID = (globalBC - bcSOR) / nBCsPerTF; + const int32_t bcInTF = (globalBC - bcSOR) % nBCsPerTF; + const float sumAmpZNA = zdc.energyCommonZNA() > 0 ? zdc.energyCommonZNA() : 0; + const float sumAmpZNC = zdc.energyCommonZNC() > 0 ? zdc.energyCommonZNC() : 0; + LOGP(debug, "globalBC={} sumAmpZNA={} sumAmpZNC={}", globalBC, sumAmpZNA, sumAmpZNC); + histos.get(HIST("hZNA"))->Fill(Form("%d", tfID), bcInTF, sumAmpZNA); + histos.get(HIST("hZNC"))->Fill(Form("%d", tfID), bcInTF, sumAmpZNC); + histos.get(HIST("hSumAmpZNA"))->Fill(sumAmpZNA); + histos.get(HIST("hSumAmpZNC"))->Fill(sumAmpZNC); + if (fill1D) { + mapHistoZNA[tfID]->Fill(bcInTF, sumAmpZNA); + mapHistoZNC[tfID]->Fill(bcInTF, sumAmpZNC); + } + } + } +}; + +WorkflowSpec defineDataProcessing(ConfigContext const& context) { return WorkflowSpec{adaptAnalysisTask(context)}; } From 89bf8848bfd232c12a1ca188b678f2977170dc2d Mon Sep 17 00:00:00 2001 From: Evgeny Kryshen Date: Wed, 18 Nov 2026 23:36:14 +0300 Subject: [PATCH 2/5] Fixed includes --- Tutorials/PWGUD/timeScan.cxx | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/Tutorials/PWGUD/timeScan.cxx b/Tutorials/PWGUD/timeScan.cxx index 84483ae6114..dc9e2ee9566 100644 --- a/Tutorials/PWGUD/timeScan.cxx +++ b/Tutorials/PWGUD/timeScan.cxx @@ -32,6 +32,14 @@ #include #include +#include +#include + +#include +#include +#include +#include +#include using namespace o2; using namespace o2::framework; @@ -125,7 +133,7 @@ struct TimeScan { LOGP(debug, "Fill maps of 1D histograms for new TF"); const AxisSpec axisBCinTF{nBCsPerTF, 0., static_cast(nBCsPerTF), "BC in TF"}; mapHistoCollidingBCs[tfID] = histosCollidingBCs.add(Form("%d/hCollidingBCs", tfID), "Colliding BCs", HistType::kTH1D, {axisBCinTF}); - if (fill1D) { + if (fill1D>0) { mapHistoBCs[tfID] = histosBCs.add(Form("%d/hBCs", tfID), "Non-empty BCs", HistType::kTH1D, {axisBCinTF}); mapHistoCols[tfID] = histosCols.add(Form("%d/hCols", tfID), "Number of contributors", HistType::kTH1D, {axisBCinTF}); mapHistoFT0A[tfID] = histosFT0A.add(Form("%d/hFT0A", tfID), "FT0A amplitude", HistType::kTH1D, {axisBCinTF}); @@ -154,7 +162,7 @@ struct TimeScan { const int32_t bcInTF = (globalBC - bcSOR) % nBCsPerTF; LOGP(debug, "globalBC={} tfID={} bcInTF={}", globalBC, tfID, bcInTF); histos.get(HIST("hBCs"))->Fill(Form("%d", tfID), bcInTF, 1.); - if (fill1D) { + if (fill1D>0) { mapHistoBCs[tfID]->Fill(bcInTF); } } @@ -168,7 +176,7 @@ struct TimeScan { LOGP(debug, "globalBC={} nContributors={}", globalBC, nContributors); histos.get(HIST("hCols"))->Fill(Form("%d", tfID), bcInTF, nContributors); histos.get(HIST("hNumContrib"))->Fill(nContributors); - if (fill1D) { + if (fill1D>0) { mapHistoCols[tfID]->Fill(bcInTF, nContributors); } } @@ -185,7 +193,7 @@ struct TimeScan { histos.get(HIST("hFT0C"))->Fill(Form("%d", tfID), bcInTF, sumAmpFT0C); histos.get(HIST("hSumAmpFT0A"))->Fill(sumAmpFT0A); histos.get(HIST("hSumAmpFT0C"))->Fill(sumAmpFT0C); - if (fill1D) { + if (fill1D>0) { mapHistoFT0A[tfID]->Fill(bcInTF, sumAmpFT0A); mapHistoFT0C[tfID]->Fill(bcInTF, sumAmpFT0C); } @@ -200,7 +208,7 @@ struct TimeScan { LOGP(debug, "globalBC={} sumAmpFV0A={}", globalBC, sumAmpFV0A); histos.get(HIST("hFV0A"))->Fill(Form("%d", tfID), bcInTF, sumAmpFV0A); histos.get(HIST("hSumAmpFV0A"))->Fill(sumAmpFV0A); - if (fill1D) { + if (fill1D>0) { mapHistoFV0A[tfID]->Fill(bcInTF, sumAmpFV0A); } } @@ -217,7 +225,7 @@ struct TimeScan { histos.get(HIST("hFDDC"))->Fill(Form("%d", tfID), bcInTF, sumAmpFDDC); histos.get(HIST("hSumAmpFDDA"))->Fill(sumAmpFDDA); histos.get(HIST("hSumAmpFDDC"))->Fill(sumAmpFDDC); - if (fill1D) { + if (fill1D>0) { mapHistoFDDA[tfID]->Fill(bcInTF, sumAmpFDDA); mapHistoFDDC[tfID]->Fill(bcInTF, sumAmpFDDC); } @@ -235,7 +243,7 @@ struct TimeScan { histos.get(HIST("hZNC"))->Fill(Form("%d", tfID), bcInTF, sumAmpZNC); histos.get(HIST("hSumAmpZNA"))->Fill(sumAmpZNA); histos.get(HIST("hSumAmpZNC"))->Fill(sumAmpZNC); - if (fill1D) { + if (fill1D>0) { mapHistoZNA[tfID]->Fill(bcInTF, sumAmpZNA); mapHistoZNC[tfID]->Fill(bcInTF, sumAmpZNC); } From 8fccbaa0f252aca49059421a2db4e9db51f232d0 Mon Sep 17 00:00:00 2001 From: Evgeny Kryshen Date: Wed, 18 Nov 2026 23:39:50 +0300 Subject: [PATCH 3/5] Removed timestamp header --- Tutorials/PWGUD/timeScan.cxx | 1 - 1 file changed, 1 deletion(-) diff --git a/Tutorials/PWGUD/timeScan.cxx b/Tutorials/PWGUD/timeScan.cxx index dc9e2ee9566..587e0d20c76 100644 --- a/Tutorials/PWGUD/timeScan.cxx +++ b/Tutorials/PWGUD/timeScan.cxx @@ -17,7 +17,6 @@ #include #include -#include #include #include #include From 9ce6083f6afda9409ebe27e7402e562491e43190 Mon Sep 17 00:00:00 2001 From: Evgeny Kryshen Date: Wed, 18 Nov 2026 23:44:16 +0300 Subject: [PATCH 4/5] Added time scan task in CMakeLists.txt --- Tutorials/PWGUD/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tutorials/PWGUD/CMakeLists.txt b/Tutorials/PWGUD/CMakeLists.txt index 8eeea02cd35..e384393ff7f 100644 --- a/Tutorials/PWGUD/CMakeLists.txt +++ b/Tutorials/PWGUD/CMakeLists.txt @@ -59,3 +59,7 @@ o2physics_add_dpl_workflow(udtutorial-08 PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2Physics::SGCutParHolder COMPONENT_NAME Analysis) +o2physics_add_dpl_workflow(time-scan + SOURCES timeScan.cxx + PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore + COMPONENT_NAME Analysis) From c0e74fb88cacd00669102adf2e53be9630fbafb4 Mon Sep 17 00:00:00 2001 From: Evgeny Kryshen Date: Wed, 18 Nov 2026 23:48:42 +0300 Subject: [PATCH 5/5] Clang-format fixes --- Tutorials/PWGUD/timeScan.cxx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Tutorials/PWGUD/timeScan.cxx b/Tutorials/PWGUD/timeScan.cxx index 587e0d20c76..d4aa4e27765 100644 --- a/Tutorials/PWGUD/timeScan.cxx +++ b/Tutorials/PWGUD/timeScan.cxx @@ -11,7 +11,7 @@ /// \file timeScan.cxx /// \brief Example task to scan data vs time TF-by-TF in single AO2D.root -/// Run as: o2-analysis-ud-time-structure --aod-file AO2D.root +/// Run as: o2-analysis-ud-time-structure --aod-file AO2D.root /// Filling 1D histos (fill1D=1) might require large shm size: --shm-segment-size 14000000000 /// \author Evgeny Kryshen @@ -34,8 +34,8 @@ #include #include -#include #include +#include #include #include #include @@ -132,7 +132,7 @@ struct TimeScan { LOGP(debug, "Fill maps of 1D histograms for new TF"); const AxisSpec axisBCinTF{nBCsPerTF, 0., static_cast(nBCsPerTF), "BC in TF"}; mapHistoCollidingBCs[tfID] = histosCollidingBCs.add(Form("%d/hCollidingBCs", tfID), "Colliding BCs", HistType::kTH1D, {axisBCinTF}); - if (fill1D>0) { + if (fill1D > 0) { mapHistoBCs[tfID] = histosBCs.add(Form("%d/hBCs", tfID), "Non-empty BCs", HistType::kTH1D, {axisBCinTF}); mapHistoCols[tfID] = histosCols.add(Form("%d/hCols", tfID), "Number of contributors", HistType::kTH1D, {axisBCinTF}); mapHistoFT0A[tfID] = histosFT0A.add(Form("%d/hFT0A", tfID), "FT0A amplitude", HistType::kTH1D, {axisBCinTF}); @@ -161,7 +161,7 @@ struct TimeScan { const int32_t bcInTF = (globalBC - bcSOR) % nBCsPerTF; LOGP(debug, "globalBC={} tfID={} bcInTF={}", globalBC, tfID, bcInTF); histos.get(HIST("hBCs"))->Fill(Form("%d", tfID), bcInTF, 1.); - if (fill1D>0) { + if (fill1D > 0) { mapHistoBCs[tfID]->Fill(bcInTF); } } @@ -175,7 +175,7 @@ struct TimeScan { LOGP(debug, "globalBC={} nContributors={}", globalBC, nContributors); histos.get(HIST("hCols"))->Fill(Form("%d", tfID), bcInTF, nContributors); histos.get(HIST("hNumContrib"))->Fill(nContributors); - if (fill1D>0) { + if (fill1D > 0) { mapHistoCols[tfID]->Fill(bcInTF, nContributors); } } @@ -192,7 +192,7 @@ struct TimeScan { histos.get(HIST("hFT0C"))->Fill(Form("%d", tfID), bcInTF, sumAmpFT0C); histos.get(HIST("hSumAmpFT0A"))->Fill(sumAmpFT0A); histos.get(HIST("hSumAmpFT0C"))->Fill(sumAmpFT0C); - if (fill1D>0) { + if (fill1D > 0) { mapHistoFT0A[tfID]->Fill(bcInTF, sumAmpFT0A); mapHistoFT0C[tfID]->Fill(bcInTF, sumAmpFT0C); } @@ -207,7 +207,7 @@ struct TimeScan { LOGP(debug, "globalBC={} sumAmpFV0A={}", globalBC, sumAmpFV0A); histos.get(HIST("hFV0A"))->Fill(Form("%d", tfID), bcInTF, sumAmpFV0A); histos.get(HIST("hSumAmpFV0A"))->Fill(sumAmpFV0A); - if (fill1D>0) { + if (fill1D > 0) { mapHistoFV0A[tfID]->Fill(bcInTF, sumAmpFV0A); } } @@ -224,7 +224,7 @@ struct TimeScan { histos.get(HIST("hFDDC"))->Fill(Form("%d", tfID), bcInTF, sumAmpFDDC); histos.get(HIST("hSumAmpFDDA"))->Fill(sumAmpFDDA); histos.get(HIST("hSumAmpFDDC"))->Fill(sumAmpFDDC); - if (fill1D>0) { + if (fill1D > 0) { mapHistoFDDA[tfID]->Fill(bcInTF, sumAmpFDDA); mapHistoFDDC[tfID]->Fill(bcInTF, sumAmpFDDC); } @@ -242,7 +242,7 @@ struct TimeScan { histos.get(HIST("hZNC"))->Fill(Form("%d", tfID), bcInTF, sumAmpZNC); histos.get(HIST("hSumAmpZNA"))->Fill(sumAmpZNA); histos.get(HIST("hSumAmpZNC"))->Fill(sumAmpZNC); - if (fill1D>0) { + if (fill1D > 0) { mapHistoZNA[tfID]->Fill(bcInTF, sumAmpZNA); mapHistoZNC[tfID]->Fill(bcInTF, sumAmpZNC); }