85 gtCollection_ = consumes<L1GlobalTriggerReadoutRecord>(
87 dcsStatusCollection_ = consumes<DcsStatusCollection>(
89 l1tscollectionToken_ = consumes<Level1TriggerScalersCollection>(
91 lumicollectionToken_ = consumes<LumiScalersCollection>(
98 const int maxNbins = 2001;
103 const int fracLS = 16;
104 const int maxLS = 250;
105 hlresync_ = ibooker.
book1D(
"lresync",
"Orbit of last resync", fracLS * maxLS, 0, maxLS * 262144);
106 hlOC0_ = ibooker.
book1D(
"lOC0",
"Orbit of last OC0", fracLS * maxLS, 0, maxLS * 262144);
107 hlTE_ = ibooker.
book1D(
"lTE",
"Orbit of last TestEnable", fracLS * maxLS, 0, maxLS * 262144);
108 hlstart_ = ibooker.
book1D(
"lstart",
"Orbit of last Start", fracLS * maxLS, 0, maxLS * 262144);
109 hlEC0_ = ibooker.
book1D(
"lEC0",
"Orbit of last EC0", fracLS * maxLS, 0, maxLS * 262144);
110 hlHR_ = ibooker.
book1D(
"lHR",
"Orbit of last HardReset", fracLS * maxLS, 0, maxLS * 262144);
112 hphysTrig_ = ibooker.
book1D(
"Physics_Triggers",
"Physics Triggers", maxNbins, -0.5,
double(maxNbins) - 0.5);
117 hinstLumi_ = ibooker.
book1D(
"Instant_Lumi",
"Instant Lumi", maxNbins, -0.5,
double(maxNbins) - 0.5);
128 e.getByToken(l1tscollectionToken_, l1ts);
132 auto it = l1ts->begin();
136 hlresync_->Fill((*l1ts)[0].lastResync());
137 hlOC0_->Fill((*l1ts)[0].lastOrbitCounter0());
138 hlTE_->Fill((*l1ts)[0].lastTestEnable());
139 hlstart_->Fill((*l1ts)[0].lastStart());
140 hlEC0_->Fill((*l1ts)[0].lastEventCounter0());
141 hlHR_->Fill((*l1ts)[0].lastHardReset());
143 unsigned int lumisection = it->lumiSegmentNr();
145 hphysTrig_->setBinContent(lumisection + 1, it->l1AsPhysics());
158 unsigned int lumisection = it->sectionNumber();
160 hinstLumi_->setBinContent(lumisection + 1, it->instantLumi());
virtual void setCurrentFolder(std::string const &fullpath)
void makeL1Scalars(const edm::Event &e)
T getUntrackedParameter(std::string const &, T const &) const
void makeLumiScalars(const edm::Event &e)
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
edm::EDGetTokenT< DcsStatusCollection > dcsStatusCollection_
~DQMScalInfo() override=default
Destructor.
#define DEFINE_FWK_MODULE(type)
DQMScalInfo(const edm::ParameterSet &ps)
Constructor.
MonitorElement * hphysTrig_
MonitorElement * hinstLumi_
edm::EDGetTokenT< LumiScalersCollection > lumicollectionToken_
MonitorElement * hlstart_
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Analyze.
edm::EDGetTokenT< L1GlobalTriggerReadoutRecord > gtCollection_
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
edm::ParameterSet parameters_
edm::EDGetTokenT< Level1TriggerScalersCollection > l1tscollectionToken_
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
MonitorElement * hlresync_