Skip to content

Commit

Permalink
Merge pull request #35661 from alejands/bxFirstLastLabels_121X
Browse files Browse the repository at this point in the history
Set equivalence of first/last bx labels used by different subsystems in ECAL DQM
  • Loading branch information
cmsbuild committed Oct 18, 2021
2 parents 33356e6 + 71e5474 commit 42c9ea8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions DQM/EcalMonitorTasks/src/RawDataTask.cc
Expand Up @@ -22,7 +22,15 @@ namespace ecaldqm {

void RawDataTask::beginEvent(edm::Event const& _evt, edm::EventSetup const&, bool const& ByLumiResetSwitch, bool&) {
orbit_ = _evt.orbitNumber() & 0xffffffff;

bx_ = _evt.bunchCrossing() & 0xfff;
// There's no agreement in CMS on how to label the last/first BX
// TCDS calls it always 3564, but some subsystems call it 0.
// From testing: bx_ is labeled 0, dccBX and FEBxs[iFE] labeled 3564
// Setting bx_ to 0 to match the other two
if (bx_ == 3564)
bx_ = 0;

triggerType_ = _evt.experimentType() & 0xf;
l1A_ = 0;
feL1Offset_ = _evt.isRealData() ? 1 : 0;
Expand Down

0 comments on commit 42c9ea8

Please sign in to comment.