CMS 3D CMS Logo

SiPixelDcsInfo.cc
Go to the documentation of this file.
2 //#include "DataFormats/FEDRawData/interface/FEDNumbering.h"
6 
7 using namespace std;
8 using namespace edm;
10 
12 
14  DQMStore::IGetter &iGetter,
15  const edm::LuminosityBlock &lumiBlock,
16  const edm::EventSetup &iSetup) {
17  if (firstRun) {
18  iBooker.setCurrentFolder("Pixel/EventInfo");
19  Fraction_ = iBooker.bookFloat("DCSSummary");
20  iBooker.setCurrentFolder("Pixel/EventInfo/DCSContents");
21  FractionBarrel_ = iBooker.bookFloat("PixelBarrelFraction");
22  FractionEndcap_ = iBooker.bookFloat("PixelEndcapFraction");
23  }
24 
25  if (iSetup.tryToGet<RunInfoRcd>()) {
26  // all Pixel:
27  Fraction_->Fill(1.);
28  // Barrel:
29  FractionBarrel_->Fill(1.);
30  // Endcap:
31  FractionEndcap_->Fill(1.);
32  return;
33  }
34 }
35 
37  // Nothing actually happened in the old endJob/endRun, so this is left empty.
38 }
void dqmEndLuminosityBlock(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, const edm::LuminosityBlock &, const edm::EventSetup &) override
MonitorElement * bookFloat(TString const &name, FUNC onbooking=NOOP())
Definition: DQMStore.h:80
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:32
SiPixelDcsInfo(const edm::ParameterSet &)
std::optional< T > tryToGet() const
Definition: EventSetup.h:103
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
void Fill(long long x)
~SiPixelDcsInfo() override
HLT enums.
firstRun
Definition: dataset.py:940