29 gtCollection_ = consumes<L1GlobalTriggerReadoutRecord>(
31 dcsStatusCollection_ = consumes<DcsStatusCollection>(
33 l1tscollectionToken_ = consumes<Level1TriggerScalersCollection>(
35 lumicollectionToken_ = consumes<LumiScalersCollection>(
44 const int maxNbins = 2001;
49 const int fracLS = 16;
50 const int maxLS = 250;
51 hlresync_ = ibooker.
book1D(
"lresync",
"Orbit of last resync", fracLS * maxLS, 0, maxLS * 262144);
52 hlOC0_ = ibooker.
book1D(
"lOC0",
"Orbit of last OC0", fracLS * maxLS, 0, maxLS * 262144);
53 hlTE_ = ibooker.
book1D(
"lTE",
"Orbit of last TestEnable", fracLS * maxLS, 0, maxLS * 262144);
54 hlstart_ = ibooker.
book1D(
"lstart",
"Orbit of last Start", fracLS * maxLS, 0, maxLS * 262144);
55 hlEC0_ = ibooker.
book1D(
"lEC0",
"Orbit of last EC0", fracLS * maxLS, 0, maxLS * 262144);
56 hlHR_ = ibooker.
book1D(
"lHR",
"Orbit of last HardReset", fracLS * maxLS, 0, maxLS * 262144);
58 hphysTrig_ = ibooker.
book1D(
"Physics_Triggers",
"Physics Triggers", maxNbins, -0.5,
double(maxNbins) - 0.5);
63 hinstLumi_ = ibooker.
book1D(
"Instant_Lumi",
"Instant Lumi", maxNbins, -0.5,
double(maxNbins) - 0.5);
74 e.getByToken(l1tscollectionToken_, l1ts);
78 auto it = l1ts->begin();
82 hlresync_->Fill((*l1ts)[0].lastResync());
83 hlOC0_->Fill((*l1ts)[0].lastOrbitCounter0());
84 hlTE_->Fill((*l1ts)[0].lastTestEnable());
85 hlstart_->Fill((*l1ts)[0].lastStart());
86 hlEC0_->Fill((*l1ts)[0].lastEventCounter0());
87 hlHR_->Fill((*l1ts)[0].lastHardReset());
89 unsigned int lumisection = it->lumiSegmentNr();
91 hphysTrig_->setBinContent(lumisection + 1, it->l1AsPhysics());
104 unsigned int lumisection = it->sectionNumber();
106 hinstLumi_->setBinContent(lumisection + 1, it->instantLumi());