From 1ab25d8a91421e97c25380a9bef23174ef6c1acb Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Wed, 15 Jul 2026 14:59:17 +0000 Subject: [PATCH] Please consider the following formatting changes --- PWGUD/Tasks/upcVmRof.cxx | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/PWGUD/Tasks/upcVmRof.cxx b/PWGUD/Tasks/upcVmRof.cxx index d30a7360ed2..ad8bbc60782 100644 --- a/PWGUD/Tasks/upcVmRof.cxx +++ b/PWGUD/Tasks/upcVmRof.cxx @@ -23,9 +23,9 @@ #include #include #include +#include #include #include -#include #include #include #include @@ -186,8 +186,8 @@ struct UpcVmRof { // variables to store ITS ROF info int rofPerOrbit = -1; // number of rofs per orbit - int rofLength = -1; // number of bcs per ROF - int rofShift = -1; // bc shift of ITS. + int rofLength = -1; // number of bcs per ROF + int rofShift = -1; // bc shift of ITS. // variables to store run info int runNumberBc = 0; // run number used to process BCs @@ -219,8 +219,6 @@ struct UpcVmRof { Configurable maxTrkDcaZ{"maxTrkDcaZ", 2.0, "max DCA in z of track to vtx (cm)"}; Configurable tfPerBin{"tfPerBin", 10000, "timeframes per bin 1e4 means some 28 s"}; - - //-------------------------------------------------------------------------------- // get ITS ROF info // code from https://github.com/AliceO2Group/O2Physics/blob/master/Common/Tools/EventSelectionModule.h#L779-L780 @@ -229,7 +227,7 @@ struct UpcVmRof { auto alppar = ccdb->getForTimeStamp>("ITS/Config/AlpideParam", sor); rofShift = alppar->roFrameBiasInBC; rofLength = alppar->roFrameLengthInBC; - rofPerOrbit = static_cast(o2::constants::lhc::LHCMaxBunches/rofLength); + rofPerOrbit = static_cast(o2::constants::lhc::LHCMaxBunches / rofLength); } //-------------------------------------------------------------------------------- @@ -310,7 +308,6 @@ struct UpcVmRof { return static_cast(bctmp / rofLength); } - //-------------------------------------------------------------------------------- // check flags for a bc bool checkBcFlags(const auto& bc, int run) @@ -367,8 +364,8 @@ struct UpcVmRof { {HistType::kTH1D, {{o2::constants::lhc::LHCMaxBunches, -0.5, static_cast(o2::constants::lhc::LHCMaxBunches) - 0.5}}}); // bc sel and tf info - int nBinsTF = static_cast(nTF/tfPerBin)+1; - int lastTFinHisto = (nBinsTF*tfPerBin)-1; // first TF is zero + int nBinsTF = static_cast(nTF / tfPerBin) + 1; + int lastTFinHisto = (nBinsTF * tfPerBin) - 1; // first TF is zero bcTH1Pointers[Form("bc/%d/bcSel_H", run)] = bcTH1Registry.add(Form("bc/%d/bcSel_H", run), "bc selection counter; selID; Counter", {HistType::kTH1D, {{4, -0.5, 3.5}}}); bcTH1Pointers[Form("bc/%d/tf_H", run)] = bcTH1Registry.add(Form("bc/%d/tf_H", run), "analysed time frames;TF;Counts", @@ -382,8 +379,7 @@ struct UpcVmRof { bcTH2Pointers[Form("bc/%d/ft0Vtx_bcb_H", run)] = bcTH2Registry.add(Form("bc/%d/ft0Vtx_bcb_H", run), "ft0Vtx triggers; TF; bc-B idx; Counter", {HistType::kTH2F, {{nBinsTF, -0.5, static_cast(lastTFinHisto) - 0.5}, {nbcB, -0.5, nbcB - 0.5}}}); bcTH2Pointers[Form("bc/%d/ft0VtxCe_bcb_H", run)] = bcTH2Registry.add(Form("bc/%d/ft0VtxCe_bcb_H", run), "ft0Vtx triggers; TF; bc-B idx; Counter", - {HistType::kTH2F, {{nBinsTF, -0.5, static_cast(lastTFinHisto) - 0.5}, {nbcB, -0.5, nbcB - 0.5}}}); - + {HistType::kTH2F, {{nBinsTF, -0.5, static_cast(lastTFinHisto) - 0.5}, {nbcB, -0.5, nbcB - 0.5}}}); } // addBcHistos