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 }
dataset.firstRun
firstRun
Definition: dataset.py:940
RunSummaryRcd.h
dqm::implementation::IBooker::bookFloat
MonitorElement * bookFloat(TString const &name, FUNC onbooking=NOOP())
Definition: DQMStore.h:80
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
SiPixelDcsInfo::dqmEndJob
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
Definition: SiPixelDcsInfo.cc:36
edm
HLT enums.
Definition: AlignableModifier.h:19
dqm::implementation::NavigatorBase::setCurrentFolder
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:32
SiPixelDcsInfo::dqmEndLuminosityBlock
void dqmEndLuminosityBlock(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, const edm::LuminosityBlock &, const edm::EventSetup &) override
Definition: SiPixelDcsInfo.cc:13
SiPixelDcsInfo::SiPixelDcsInfo
SiPixelDcsInfo(const edm::ParameterSet &)
Definition: SiPixelDcsInfo.cc:9
edm::EventSetup::tryToGet
std::optional< T > tryToGet() const
Definition: EventSetup.h:94
dqm::impl::MonitorElement::Fill
void Fill(long long x)
Definition: MonitorElement.h:290
RunInfoRcd
Definition: RunSummaryRcd.h:26
edm::ParameterSet
Definition: ParameterSet.h:36
SiPixelDcsInfo::~SiPixelDcsInfo
~SiPixelDcsInfo() override
Definition: SiPixelDcsInfo.cc:11
edm::EventSetup
Definition: EventSetup.h:57
RunSummary.h
RunInfo.h
std
Definition: JetResolutionObject.h:76
dqm::implementation::IGetter
Definition: DQMStore.h:484
dqm::implementation::IBooker
Definition: DQMStore.h:43
SiPixelDcsInfo.h