src
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) {}
DTDCSSummary::~DTDCSSummary
~DTDCSSummary() override
Destructor.
Definition:
DTDCSSummary.cc:25
dqm::implementation::IBooker::bookFloat
MonitorElement * bookFloat(TString const &name, FUNC onbooking=NOOP())
Definition:
DQMStore.h:80
dqm::implementation::NavigatorBase::setCurrentFolder
virtual void setCurrentFolder(std::string const &fullpath)
Definition:
DQMStore.cc:36
makeMuonMisalignmentScenario.wheel
wheel
Definition:
makeMuonMisalignmentScenario.py:319
edm::LuminosityBlock
Definition:
LuminosityBlock.h:50
EventSetup.h
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
std
Definition:
JetResolutionObject.h:76
HLT_2024v13_cff.streams
streams
Definition:
HLT_2024v13_cff.py:1329
DTDCSSummary::dqmEndLuminosityBlock
void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &) override
Definition:
DTDCSSummary.cc:27
dqm::implementation::IGetter
Definition:
DQMStore.h:571
dqm::impl::MonitorElement::Fill
void Fill(long long x)
Definition:
MonitorElement.h:292
DTDCSSummary.h
dqm::implementation::IBooker
Definition:
DQMStore.h:43
DQMStore.h
ESHandle.h
Service.h
edm::EventSetup
Definition:
EventSetup.h:56
visDQMUpload.context
context
Definition:
visDQMUpload.py:30
edm
HLT enums.
Definition:
AlignableModifier.h:19
DTDCSSummary::dqmEndJob
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
Definition:
DTDCSSummary.cc:49
edm::ParameterSet
Definition:
ParameterSet.h:48
FEDNumbering.h
DTDCSSummary::DTDCSSummary
DTDCSSummary(const edm::ParameterSet &pset)
Constructor.
Definition:
DTDCSSummary.cc:23
Generated for CMSSW Reference Manual by
1.8.14