DQM
DTMonitorClient
src
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
#include "
DQM/DTMonitorClient/src/DTDCSSummary.h
"
12
#include "
DataFormats/FEDRawData/interface/FEDNumbering.h
"
13
14
#include "
FWCore/ServiceRegistry/interface/Service.h
"
15
#include "
FWCore/Framework/interface/ESHandle.h
"
16
#include "
FWCore/Framework/interface/EventSetup.h
"
17
18
#include "
DQMServices/Core/interface/DQMStore.h
"
19
20
using namespace
std
;
21
using namespace
edm
;
22
23
DTDCSSummary::DTDCSSummary
(
const
ParameterSet
&
pset
) { bookingdone =
false
; }
24
25
DTDCSSummary::~DTDCSSummary
() {}
26
27
void
DTDCSSummary::dqmEndLuminosityBlock
(
DQMStore::IBooker
& ibooker,
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
49
void
DTDCSSummary::dqmEndJob
(
DQMStore::IBooker
& ibooker,
DQMStore::IGetter
& igetter) {}
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
Service.h
dqm::impl::MonitorElement::Fill
void Fill(long long x)
Definition:
MonitorElement.h:290
edm::ParameterSet
Definition:
ParameterSet.h:36
makeMuonMisalignmentScenario.wheel
wheel
Definition:
makeMuonMisalignmentScenario.py:319
edm::EventSetup
Definition:
EventSetup.h:57
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
HLT_2018_cff.streams
streams
Definition:
HLT_2018_cff.py:3574
EventSetup.h
DTDCSSummary.h
dqm::implementation::IBooker
Definition:
DQMStore.h:43
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
Generated for CMSSW Reference Manual by
1.8.16