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 
27  if(nullptr != iSetup.find( recordKey ) ) {
28  //all Pixel:
29  Fraction_->Fill(1.);
30  //Barrel:
31  FractionBarrel_->Fill(1.);
32  //Endcap:
33  FractionEndcap_->Fill(1.);
34  return;
35  }
36 }
37 
39  //Nothing actually happened in the old endJob/endRun, so this is left empty.
40 }
void dqmEndLuminosityBlock(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, const edm::LuminosityBlock &, const edm::EventSetup &) override
SiPixelDcsInfo(const edm::ParameterSet &)
static HCTypeTag findType(char const *iTypeName)
find a type based on the types name, if not found will return default HCTypeTag
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
~SiPixelDcsInfo() override
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:274
HLT enums.
boost::optional< eventsetup::EventSetupRecordGeneric > find(const eventsetup::EventSetupRecordKey &) const
Definition: EventSetup.cc:88
firstRun
Definition: dataset.py:933
MonitorElement * bookFloat(Args &&...args)
Definition: DQMStore.h:112