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 
FEDNumbering.h
dqm::implementation::IBooker::bookFloat
MonitorElement * bookFloat(TString const &name, FUNC onbooking=NOOP())
Definition: DQMStore.h:80
ESHandle.h
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
DTDCSSummary::DTDCSSummary
DTDCSSummary(const edm::ParameterSet &pset)
Constructor.
Definition: DTDCSSummary.cc:23
edm
HLT enums.
Definition: AlignableModifier.h:19
dqm::implementation::NavigatorBase::setCurrentFolder
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:32
DTDCSSummary::~DTDCSSummary
~DTDCSSummary() override
Destructor.
Definition: DTDCSSummary.cc:25
DTDCSSummary::dqmEndLuminosityBlock
void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &) override
Definition: DTDCSSummary.cc:27
DQMStore.h
visDQMUpload.context
context
Definition: visDQMUpload.py:37
Service.h
dqm::impl::MonitorElement::Fill
void Fill(long long x)
Definition: MonitorElement.h:290
HLT_Fake1_cff.streams
streams
Definition: HLT_Fake1_cff.py:13
edm::ParameterSet
Definition: ParameterSet.h:47
makeMuonMisalignmentScenario.wheel
wheel
Definition: makeMuonMisalignmentScenario.py:319
edm::EventSetup
Definition: EventSetup.h:58
DTDCSSummary::dqmEndJob
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
Definition: DTDCSSummary.cc:49
std
Definition: JetResolutionObject.h:76
dqm::implementation::IGetter
Definition: DQMStore.h:484
EventSetup.h
DTDCSSummary.h
dqm::implementation::IBooker
Definition: DQMStore.h:43
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27