From a8c88b003aa0638aadf1891c41cc329d1f1dfd22 Mon Sep 17 00:00:00 2001 From: Evgeny Kryshen Date: Tue, 10 Nov 2026 07:30:10 +0300 Subject: [PATCH 1/3] retrigger CI From 626f94982857db8b7c220847b6eedfeca5b40424 Mon Sep 17 00:00:00 2001 From: Evgeny Kryshen Date: Thu, 12 Nov 2026 10:40:13 +0300 Subject: [PATCH 2/3] Adjustable maximum number of TFs --- PWGUD/TableProducer/upcCandProducerBarrel.cxx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/PWGUD/TableProducer/upcCandProducerBarrel.cxx b/PWGUD/TableProducer/upcCandProducerBarrel.cxx index 135fdd887ac..1e816e55451 100644 --- a/PWGUD/TableProducer/upcCandProducerBarrel.cxx +++ b/PWGUD/TableProducer/upcCandProducerBarrel.cxx @@ -274,6 +274,7 @@ struct UpcCandProducerBarrel { Configurable minAmpFDDA{"minAmpFDDA", 1000.f, "Minimum amplitude for FDDA veto"}; Configurable minAmpFDDC{"minAmpFDDC", 1000.f, "Minimum amplitude for FDDC veto"}; + Configurable maxTF{"maxTF", 4.e7, "Maximum TF id"}; Configurable maxStoredDistance{"maxStoredDistance", 32, "Maximum stored veto distance"}; Configurable nBinsOccupancy{"nBinsOccupancy", 25, "Number of occupancy bins"}; Configurable nBinsTF{"nBinsTF", 100, "Number of TF bins"}; @@ -337,15 +338,13 @@ struct UpcCandProducerBarrel { const AxisSpec axisBCs{NBCsPerOrbit, 0., NBCsPerOrbit, "BC in orbit"}; const AxisSpec axisVeto{maxStoredDistance + 1, -0.5, maxStoredDistance + 0.5, "veto range in BCs"}; const AxisSpec axisOccupancy{nBinsOccupancy, 0., 250000., "FT0-based occupancy"}; - const AxisSpec axisTFs{nBinsTF, 0., 4.e7, "TFs"}; // 100 bins -> 400000 TFs per bin (1 bin ~ 1140 seconds for 32 orbits per TF) + const AxisSpec axisTFs{nBinsTF, 0., maxTFs, "TFs"}; registry.add("hTF", "TF counts", HistType::kTH1D, {axisTFs}); registry.add("hTVX", "TVX counts", HistType::kTH2D, {axisBCs, axisTFs}); registry.add("hTVXRCT", "TVX counts after RCT selection", HistType::kTH2D, {axisBCs, axisTFs}); - registry.add("hTVXRCTnoPileupROF", "TVX counts after RCT and ROF pileup selection", HistType::kTH2D, {axisBCs, axisTFs}); registry.add("hTVXupc", "TVX counts in upc ROFs", HistType::kTH2D, {axisBCs, axisTFs}); registry.add("hTVXRCTupc", "TVX counts after RCT selection in upc ROFs", HistType::kTH2D, {axisBCs, axisTFs}); - registry.add("hTVXRCTnoPileupROFupc", "TVX counts after RCT and ROF pileup selection in upc ROFs", HistType::kTH2D, {axisBCs, axisTFs}); registry.add("hVetoT00", "no RCT selection", HistType::kTH3D, {axisBCs, axisTFs, axisVeto}); registry.add("hVetoTV0", "no RCT selection", HistType::kTH3D, {axisBCs, axisTFs, axisVeto}); @@ -386,8 +385,7 @@ struct UpcCandProducerBarrel { const auto runInfo = o2::parameters::AggregatedRunInfo::buildAggregatedRunInfo(ccdb->instance(), runNumber); const int64_t orbitsPerTF = configuredOrbitsPerTF < 0 ? runInfo.orbitsPerTF : configuredOrbitsPerTF; const bool needsEventSelectionParams = configuredTFStartBorder < 0 || configuredTFEndBorder < 0; - const auto ts = (runInfo.sor + runInfo.eor) / 2; - const auto* eventSelectionParams = needsEventSelectionParams ? ccdb->getForTimeStamp("EventSelection/EventSelectionParams", ts) : nullptr; + const auto* eventSelectionParams = needsEventSelectionParams ? ccdb->getForRun("EventSelection/EventSelectionParams", runNumber) : nullptr; if (orbitsPerTF <= 0 || !runInfo.grpLHC || (needsEventSelectionParams && !eventSelectionParams)) { LOGF(fatal, "Incomplete run information for run %d", runNumber); } @@ -398,7 +396,7 @@ struct UpcCandProducerBarrel { collidingBCs = runInfo.grpLHC->getBunchFilling().getBCPattern(); // get ITS ROF parameters - auto alppar = ccdb->getForTimeStamp>("ITS/Config/AlpideParam", ts); + auto alppar = ccdb->getForRun>("ITS/Config/AlpideParam", runNumber); rofOffset = alppar->roFrameBiasInBC; rofLength = alppar->roFrameLengthInBC; nRofPerTF = nBCsPerTF / rofLength; From c0b7c9c55658d75005c23f768397e9a133bbd7ec Mon Sep 17 00:00:00 2001 From: Evgeny Kryshen Date: Thu, 12 Nov 2026 11:59:30 +0300 Subject: [PATCH 3/3] Fixed typo in maxTF --- PWGUD/TableProducer/upcCandProducerBarrel.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PWGUD/TableProducer/upcCandProducerBarrel.cxx b/PWGUD/TableProducer/upcCandProducerBarrel.cxx index 1e816e55451..583fc4b788a 100644 --- a/PWGUD/TableProducer/upcCandProducerBarrel.cxx +++ b/PWGUD/TableProducer/upcCandProducerBarrel.cxx @@ -338,7 +338,7 @@ struct UpcCandProducerBarrel { const AxisSpec axisBCs{NBCsPerOrbit, 0., NBCsPerOrbit, "BC in orbit"}; const AxisSpec axisVeto{maxStoredDistance + 1, -0.5, maxStoredDistance + 0.5, "veto range in BCs"}; const AxisSpec axisOccupancy{nBinsOccupancy, 0., 250000., "FT0-based occupancy"}; - const AxisSpec axisTFs{nBinsTF, 0., maxTFs, "TFs"}; + const AxisSpec axisTFs{nBinsTF, 0., maxTF, "TFs"}; registry.add("hTF", "TF counts", HistType::kTH1D, {axisTFs}); registry.add("hTVX", "TVX counts", HistType::kTH2D, {axisBCs, axisTFs});