CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
11 
14 
18 
21 
22 
23 using namespace std;
24 using namespace edm;
25 
26 
27 
29 
30  bookingdone = 0;
31 
32 }
33 
35 
37  edm::LuminosityBlock const & lumiSeg, edm::EventSetup const & context) {
38 
39  if (bookingdone) return;
40 
41  ibooker.setCurrentFolder("DT/EventInfo/DCSContents");
42  // global fraction
43  totalDCSFraction = ibooker.bookFloat("DTDCSSummary");
44  totalDCSFraction->Fill(-1);
45  // Wheel "fractions" -> will be 0 or 1
46  for(int wheel = -2; wheel != 3; ++wheel) {
47  stringstream streams;
48  streams << "DT_Wheel" << wheel;
49  dcsFractions[wheel] = ibooker.bookFloat(streams.str());
50  dcsFractions[wheel]->Fill(-1);
51  }
52 
53  bookingdone = 1;
54 }
55 
void Fill(long long x)
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:273
virtual ~DTDCSSummary()
Destructor.
Definition: DTDCSSummary.cc:34
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
Definition: DTDCSSummary.cc:56
MonitorElement * bookFloat(Args &&...args)
Definition: DQMStore.h:109
void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &)
Definition: DTDCSSummary.cc:36
DTDCSSummary(const edm::ParameterSet &pset)
Constructor.
Definition: DTDCSSummary.cc:28