CMS 3D CMS Logo

DTDCSSummary.cc
Go to the documentation of this file.
1 
2 /*
3  * See header file for a description of this class.
4  *
5  * \author G. Cerminara - INFN Torino
6  *
7  * threadsafe version (//-) oct/nov 2014 - WATWanAbdullah ncpp-um-my
8  *
9  */
10 
13 
17 
19 
20 using namespace std;
21 using namespace edm;
22 
23 DTDCSSummary::DTDCSSummary(const ParameterSet& pset) { bookingdone = false; }
24 
26 
28  DQMStore::IGetter& igetter,
29  edm::LuminosityBlock const& lumiSeg,
30  edm::EventSetup const& context) {
31  if (bookingdone)
32  return;
33 
34  ibooker.setCurrentFolder("DT/EventInfo/DCSContents");
35  // global fraction
36  totalDCSFraction = ibooker.bookFloat("DTDCSSummary");
37  totalDCSFraction->Fill(-1);
38  // Wheel "fractions" -> will be 0 or 1
39  for (int wheel = -2; wheel != 3; ++wheel) {
40  stringstream streams;
41  streams << "DT_Wheel" << wheel;
42  dcsFractions[wheel] = ibooker.bookFloat(streams.str());
43  dcsFractions[wheel]->Fill(-1);
44  }
45 
46  bookingdone = true;
47 }
48 
~DTDCSSummary() override
Destructor.
Definition: DTDCSSummary.cc:25
MonitorElement * bookFloat(TString const &name, FUNC onbooking=NOOP())
Definition: DQMStore.h:80
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:36
void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &) override
Definition: DTDCSSummary.cc:27
void Fill(long long x)
HLT enums.
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
Definition: DTDCSSummary.cc:49
DTDCSSummary(const edm::ParameterSet &pset)
Constructor.
Definition: DTDCSSummary.cc:23