32 gtCollection_ = consumes<L1GlobalTriggerReadoutRecord>(parameters_.getUntrackedParameter<
edm::InputTag>(
"gtCollection",
edm::InputTag(
"gtDigis")));
33 dcsStatusCollection_ = consumes<DcsStatusCollection>(parameters_.getUntrackedParameter<
edm::InputTag>(
"dcsStatusCollection",
edm::InputTag(
"scalersRawToDigi")));
34 l1tscollectionToken_ = consumes<Level1TriggerScalersCollection>(parameters_.getUntrackedParameter<
edm::InputTag>(
"l1TSCollection",
edm::InputTag(
"scalersRawToDigi")));
35 lumicollectionToken_ = consumes<LumiScalersCollection>(parameters_.getUntrackedParameter<
edm::InputTag>(
"lumiCollection",
edm::InputTag(
"scalersRawToDigi")));
45 const int maxNbins = 2001;
50 const int fracLS = 16;
51 const int maxLS = 250;
52 hlresync_ = ibooker.
book1D(
"lresync",
"Orbit of last resync",fracLS*maxLS,0,maxLS*262144);
53 hlOC0_ = ibooker.
book1D(
"lOC0",
"Orbit of last OC0",fracLS*maxLS,0,maxLS*262144);
54 hlTE_ = ibooker.
book1D(
"lTE",
"Orbit of last TestEnable",fracLS*maxLS,0,maxLS*262144);
55 hlstart_ = ibooker.
book1D(
"lstart",
"Orbit of last Start",fracLS*maxLS,0,maxLS*262144);
56 hlEC0_ = ibooker.
book1D(
"lEC0",
"Orbit of last EC0",fracLS*maxLS,0,maxLS*262144);
57 hlHR_ = ibooker.
book1D(
"lHR",
"Orbit of last HardReset",fracLS*maxLS,0,maxLS*262144);
59 hphysTrig_ = ibooker.
book1D(
"Physics_Triggers",
"Physics Triggers", maxNbins, -0.5,
double(maxNbins)-0.5);
64 hinstLumi_ = ibooker.
book1D(
"Instant_Lumi",
"Instant Lumi", maxNbins, -0.5,
double(maxNbins)-0.5);
79 e.
getByToken(lumicollectionToken_,lumiScalers);
81 Level1TriggerScalersCollection::const_iterator it = l1ts->begin();
83 if(l1ts->size()==0)
return;
84 hlresync_->Fill((*l1ts)[0].lastResync());
85 hlOC0_->Fill((*l1ts)[0].lastOrbitCounter0());
86 hlTE_->Fill((*l1ts)[0].lastTestEnable());
87 hlstart_->Fill((*l1ts)[0].lastStart());
88 hlEC0_->Fill((*l1ts)[0].lastEventCounter0());
89 hlHR_->Fill((*l1ts)[0].lastHardReset());
91 unsigned int lumisection = it->lumiSegmentNr();
93 hphysTrig_->setBinContent(lumisection + 1, it->l1AsPhysics());
103 e.
getByToken(lumicollectionToken_,lumiScalers);
105 LumiScalersCollection::const_iterator it = lumiScalers->begin();
107 if(lumiScalers->size()){
108 unsigned int lumisection = it->sectionNumber();
110 hinstLumi_->setBinContent(lumisection + 1, it->instantLumi());
T getUntrackedParameter(std::string const &, T const &) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void makeL1Scalars(const edm::Event &e)
void makeLumiScalars(const edm::Event &e)
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
MonitorElement * book1D(Args &&...args)
DQMScalInfo(const edm::ParameterSet &ps)
Constructor.
virtual ~DQMScalInfo()
Destructor.
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
void setCurrentFolder(const std::string &fullpath)
return(e1-e2)*(e1-e2)+dp *dp
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)