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 
11  firstRun = true;
12 }
13 
15 
17 
18  if (firstRun){
19  iBooker.setCurrentFolder("Pixel/EventInfo");
20  Fraction_= iBooker.bookFloat("DCSSummary");
21  iBooker.setCurrentFolder("Pixel/EventInfo/DCSContents");
22  FractionBarrel_= iBooker.bookFloat("PixelBarrelFraction");
23  FractionEndcap_= iBooker.bookFloat("PixelEndcapFraction");
24  }
25 
26  if(iSetup.tryToGet<RunInfoRcd>()) {
27  //all Pixel:
28  Fraction_->Fill(1.);
29  //Barrel:
30  FractionBarrel_->Fill(1.);
31  //Endcap:
32  FractionEndcap_->Fill(1.);
33  return;
34  }
35 }
36 
38  //Nothing actually happened in the old endJob/endRun, so this is left empty.
39 }
std::optional< T > tryToGet() const
Definition: EventSetup.h:80
void dqmEndLuminosityBlock(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, const edm::LuminosityBlock &, const edm::EventSetup &) override
SiPixelDcsInfo(const edm::ParameterSet &)
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
void Fill(long long x)
void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:268
~SiPixelDcsInfo() override
HLT enums.
firstRun
Definition: dataset.py:938
MonitorElement * bookFloat(Args &&...args)
Definition: DQMStore.h:105