CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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(0 != 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 }
virtual void dqmEndLuminosityBlock(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, const edm::LuminosityBlock &, const edm::EventSetup &) override
SiPixelDcsInfo(const edm::ParameterSet &)
string firstRun
Definition: dataset.py:789
virtual void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
const eventsetup::EventSetupRecord * find(const eventsetup::EventSetupRecordKey &) const
Definition: EventSetup.cc:90
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:274
MonitorElement * bookFloat(Args &&...args)
Definition: DQMStore.h:109
static HCTypeTag findType(char const *iTypeName)
find a type based on the types name, if not found will return default HCTypeTag
Definition: HCTypeTag.cc:125