From 4697dfceace286ba7c336455f52e7a6c2bbfa00c Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Fri, 16 May 2025 11:11:35 +0000 Subject: [PATCH] Please consider the following formatting changes --- Common/TableProducer/eventSelection.cxx | 28 ++++++++++++------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/Common/TableProducer/eventSelection.cxx b/Common/TableProducer/eventSelection.cxx index 5ecf7801a4c..c213db42776 100644 --- a/Common/TableProducer/eventSelection.cxx +++ b/Common/TableProducer/eventSelection.cxx @@ -267,7 +267,7 @@ struct BcSelectionTask { if (run != lastRun) { lastRun = run; int run3min = 500000; - if (run < run3min) { // unanchored Run3 MC + if (run < run3min) { // unanchored Run3 MC auto runDuration = ccdb->getRunDuration(run, true); // fatalise if timestamps are not found // SOR and EOR timestamps sorTimestamp = runDuration.first; // timestamp of the SOR/SOX/STF in ms @@ -351,7 +351,7 @@ struct BcSelectionTask { } int triggerBcShift = confTriggerBcShift; - if (confTriggerBcShift == 999) { // o2-linter: disable=magic-number (indeed, this is a magic number) + if (confTriggerBcShift == 999) { // o2-linter: disable=magic-number (indeed, this is a magic number) triggerBcShift = (run <= 526766 || (run >= 526886 && run <= 527237) || (run >= 527259 && run <= 527518) || run == 527523 || run == 527734 || run >= 534091) ? 0 : 294; // o2-linter: disable=magic-number (magic list of runs) } @@ -415,7 +415,7 @@ struct BcSelectionTask { timeT0ABG = bc.has_ft0() ? bc.ft0().timeA() : -999.f; timeT0CBG = bc.has_ft0() ? bc.ft0().timeC() : -999.f; } - if (bc.globalBC() + bcDistanceToBeamGasForFDD == globalBC) { + if (bc.globalBC() + bcDistanceToBeamGasForFDD == globalBC) { timeFDABG = bc.has_fdd() ? bc.fdd().timeA() : -999.f; timeFDCBG = bc.has_fdd() ? bc.fdd().timeC() : -999.f; } @@ -499,7 +499,7 @@ struct BcSelectionTask { float csTCE = isPP ? -1. : 10.36e6; float csZEM = isPP ? -1. : 415.2e6; // see AN: https://alice-notes.web.cern.ch/node/1515 float csZNC = isPP ? -1. : 214.5e6; // see AN: https://alice-notes.web.cern.ch/node/1515 - if (run > 543437 && run < 543514) { // o2-linter: disable=magic-number (todo: store and extract cross sections from ccdb) + if (run > 543437 && run < 543514) { // o2-linter: disable=magic-number (todo: store and extract cross sections from ccdb) csTCE = 8.3e6; } if (run >= 543514) { @@ -720,7 +720,7 @@ struct EventSelectionTask { int spdClusters = bc.spdClustersL0() + bc.spdClustersL1(); selection |= (spdClusters < par->fSPDClsVsTklA + nTkl * par->fSPDClsVsTklB) ? BIT(kNoSPDClsVsTklBG) : 0; - selection |= !(nTkl < 6 && multV0C012 > par->fV0C012vsTklA + nTkl * par->fV0C012vsTklB) ? BIT(kNoV0C012vsTklBG) : 0; // o2-linter: disable=magic-number (nTkl dependent parameterization) + selection |= !(nTkl < 6 && multV0C012 > par->fV0C012vsTklA + nTkl * par->fV0C012vsTklB) ? BIT(kNoV0C012vsTklBG) : 0; // o2-linter: disable=magic-number (nTkl dependent parameterization) // copy rct flags from bcsel table uint32_t rct = bc.rct_raw(); @@ -740,7 +740,7 @@ struct EventSelectionTask { sel1 = sel1 && bc.selection_bit(kNoTPCHVdip); // INT1 (SPDFO>0 | V0A | V0C) minimum bias trigger logic used in pp2010 and pp2011 - bool isINT1period = bc.runNumber() <= 136377 || (bc.runNumber() >= 144871 && bc.runNumber() <= 159582); // o2-linter: disable=magic-number (magic run numbers) + bool isINT1period = bc.runNumber() <= 136377 || (bc.runNumber() >= 144871 && bc.runNumber() <= 159582); // o2-linter: disable=magic-number (magic run numbers) // fill counters if (isMC == 1 || (!isINT1period && bc.alias_bit(kINT7)) || (isINT1period && bc.alias_bit(kINT1))) { @@ -760,7 +760,7 @@ struct EventSelectionTask { int run = bcs.iteratorAt(0).runNumber(); // extract bc pattern from CCDB for data or anchored MC only int run3min = 500000; - if (run != lastRun && run >= run3min) { + if (run != lastRun && run >= run3min) { lastRun = run; auto runInfo = o2::parameters::AggregatedRunInfo::buildAggregatedRunInfo(o2::ccdb::BasicCCDBManager::instance(), run); // first bc of the first orbit @@ -1127,16 +1127,16 @@ struct EventSelectionTask { if (confUseWeightsForOccupancyVariable) { // weighted occupancy wOccup = 0; - if (dt >= -40 && dt < -5) // collisions in the past // o2-linter: disable=magic-number (to be checked by Igor) - wOccup = 1. / 1225 * (dt + 40) * (dt + 40); // o2-linter: disable=magic-number (to be checked by Igor) - else if (dt >= -5 && dt < 15) // collisions near a given one // o2-linter: disable=magic-number (to be checked by Igor) + if (dt >= -40 && dt < -5) // collisions in the past // o2-linter: disable=magic-number (to be checked by Igor) + wOccup = 1. / 1225 * (dt + 40) * (dt + 40); // o2-linter: disable=magic-number (to be checked by Igor) + else if (dt >= -5 && dt < 15) // collisions near a given one // o2-linter: disable=magic-number (to be checked by Igor) wOccup = 1; // else if (dt >= 15 && dt < 100) // collisions from the future // wOccup = -1. / 85 * dt + 20. / 17; - else if (dt >= 15 && dt < 40) // collisions from the future // o2-linter: disable=magic-number (to be checked by Igor) - wOccup = -0.4 / 25 * dt + 1.24; // o2-linter: disable=magic-number (to be checked by Igor) - else if (dt >= 40 && dt < 100) // collisions from the distant future // o2-linter: disable=magic-number (to be checked by Igor) - wOccup = -0.4 / 60 * dt + 0.6 + 0.8 / 3; // o2-linter: disable=magic-number (to be checked by Igor) + else if (dt >= 15 && dt < 40) // collisions from the future // o2-linter: disable=magic-number (to be checked by Igor) + wOccup = -0.4 / 25 * dt + 1.24; // o2-linter: disable=magic-number (to be checked by Igor) + else if (dt >= 40 && dt < 100) // collisions from the distant future // o2-linter: disable=magic-number (to be checked by Igor) + wOccup = -0.4 / 60 * dt + 0.6 + 0.8 / 3; // o2-linter: disable=magic-number (to be checked by Igor) } nITS567tracksInFullTimeWindow += wOccup * vTracksITS567perColl[thisColIndex]; sumAmpFT0CInFullTimeWindow += wOccup * vAmpFT0CperColl[thisColIndex];