Skip to content

Commit d71cac3

Browse files
committed
Remove workaround for trigger bc shift
1 parent 7ab065b commit d71cac3

1 file changed

Lines changed: 2 additions & 16 deletions

File tree

Common/Tools/EventSelectionModule.h

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ struct bcselEntry {
9191
struct bcselConfigurables : o2::framework::ConfigurableGroup {
9292
std::string prefix = "bcselOpts";
9393
o2::framework::Configurable<int> amIneeded{"amIneeded", -1, "run BC selection or not. -1: automatic; 0: no; 1: yes"}; // o2-linter: disable=name/configurable (temporary fix)
94-
o2::framework::Configurable<int> confTriggerBcShift{"triggerBcShift", 0, "set either custom shift or 999 for apass2/apass3 in LHC22o-t"}; // o2-linter: disable=name/configurable (temporary fix)
9594
o2::framework::Configurable<int> confITSROFrameStartBorderMargin{"ITSROFrameStartBorderMargin", -1, "Number of bcs at the start of ITS RO Frame border. Take from CCDB if -1"}; // o2-linter: disable=name/configurable (temporary fix)
9695
o2::framework::Configurable<int> confITSROFrameEndBorderMargin{"ITSROFrameEndBorderMargin", -1, "Number of bcs at the end of ITS RO Frame border. Take from CCDB if -1"}; // o2-linter: disable=name/configurable (temporary fix)
9796
o2::framework::Configurable<int> confTimeFrameStartBorderMargin{"TimeFrameStartBorderMargin", -1, "Number of bcs to cut at the start of the Time Frame. Take from CCDB if -1"}; // o2-linter: disable=name/configurable (temporary fix)
@@ -453,16 +452,6 @@ class BcSelectionModule
453452
return; // don't do anything in case configuration reported not ok
454453

455454
int run = bcs.iteratorAt(0).runNumber();
456-
// map from GlobalBC to BcId needed to find triggerBc
457-
std::map<uint64_t, int32_t> mapGlobalBCtoBcId;
458-
for (const auto& bc : bcs) {
459-
mapGlobalBCtoBcId[bc.globalBC()] = bc.globalIndex();
460-
}
461-
462-
int triggerBcShift = bcselOpts.confTriggerBcShift;
463-
if (bcselOpts.confTriggerBcShift == 999) { // o2-linter: disable=magic-number (special shift for early 2022 data)
464-
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)
465-
}
466455

467456
// bc loop
468457
for (auto bc : bcs) { // o2-linter: disable=const-ref-in-for-loop (use bc as nonconst iterator)
@@ -481,11 +470,8 @@ class BcSelectionModule
481470
}
482471

483472
uint32_t alias{0};
484-
// workaround for pp2022 (trigger info is shifted by -294 bcs)
485-
int32_t triggerBcId = mapGlobalBCtoBcId[bc.globalBC() + triggerBcShift];
486-
if (triggerBcId && aliases) {
487-
auto triggerBc = bcs.iteratorAt(triggerBcId);
488-
uint64_t triggerMask = triggerBc.triggerMask();
473+
if (aliases) {
474+
uint64_t triggerMask = bc.triggerMask();
489475
for (const auto& al : aliases->GetAliasToTriggerMaskMap()) {
490476
if (triggerMask & al.second) {
491477
alias |= BIT(al.first);

0 commit comments

Comments
 (0)