DQM
SiPixelMonitorClient
src
SiPixelDcsInfo.cc
Go to the documentation of this file.
1
#include "
DQM/SiPixelMonitorClient/interface/SiPixelDcsInfo.h
"
2
//#include "DataFormats/FEDRawData/interface/FEDNumbering.h"
3
#include "
CondFormats/DataRecord/interface/RunSummaryRcd.h
"
4
#include "
CondFormats/RunInfo/interface/RunInfo.h
"
5
#include "
CondFormats/RunInfo/interface/RunSummary.h
"
6
7
using namespace
std
;
8
using namespace
edm
;
9
SiPixelDcsInfo::SiPixelDcsInfo
(
const
edm::ParameterSet
&ps) {
firstRun
=
true
; }
10
11
SiPixelDcsInfo::~SiPixelDcsInfo
() {}
12
13
void
SiPixelDcsInfo::dqmEndLuminosityBlock
(
DQMStore::IBooker
&iBooker,
14
DQMStore::IGetter
&iGetter,
15
const
edm::LuminosityBlock
&lumiBlock,
16
const
edm::EventSetup
&iSetup) {
17
if
(
firstRun
) {
18
iBooker.
setCurrentFolder
(
"Pixel/EventInfo"
);
19
Fraction_ = iBooker.
bookFloat
(
"DCSSummary"
);
20
iBooker.
setCurrentFolder
(
"Pixel/EventInfo/DCSContents"
);
21
FractionBarrel_ = iBooker.
bookFloat
(
"PixelBarrelFraction"
);
22
FractionEndcap_ = iBooker.
bookFloat
(
"PixelEndcapFraction"
);
23
}
24
25
if
(iSetup.
tryToGet
<
RunInfoRcd
>()) {
26
// all Pixel:
27
Fraction_->
Fill
(1.);
28
// Barrel:
29
FractionBarrel_->Fill(1.);
30
// Endcap:
31
FractionEndcap_->Fill(1.);
32
return
;
33
}
34
}
35
36
void
SiPixelDcsInfo::dqmEndJob
(
DQMStore::IBooker
&iBooker,
DQMStore::IGetter
&iGetter) {
37
// Nothing actually happened in the old endJob/endRun, so this is left empty.
38
}
dataset.firstRun
firstRun
Definition:
dataset.py:940
RunSummaryRcd.h
dqm::implementation::IBooker::bookFloat
MonitorElement * bookFloat(TString const &name, FUNC onbooking=NOOP())
Definition:
DQMStore.h:80
edm::LuminosityBlock
Definition:
LuminosityBlock.h:50
SiPixelDcsInfo::dqmEndJob
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
Definition:
SiPixelDcsInfo.cc:36
edm
HLT enums.
Definition:
AlignableModifier.h:19
dqm::implementation::NavigatorBase::setCurrentFolder
virtual void setCurrentFolder(std::string const &fullpath)
Definition:
DQMStore.cc:32
SiPixelDcsInfo::dqmEndLuminosityBlock
void dqmEndLuminosityBlock(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, const edm::LuminosityBlock &, const edm::EventSetup &) override
Definition:
SiPixelDcsInfo.cc:13
SiPixelDcsInfo::SiPixelDcsInfo
SiPixelDcsInfo(const edm::ParameterSet &)
Definition:
SiPixelDcsInfo.cc:9
edm::EventSetup::tryToGet
std::optional< T > tryToGet() const
Definition:
EventSetup.h:101
dqm::impl::MonitorElement::Fill
void Fill(long long x)
Definition:
MonitorElement.h:290
RunInfoRcd
Definition:
RunSummaryRcd.h:26
edm::ParameterSet
Definition:
ParameterSet.h:47
SiPixelDcsInfo::~SiPixelDcsInfo
~SiPixelDcsInfo() override
Definition:
SiPixelDcsInfo.cc:11
edm::EventSetup
Definition:
EventSetup.h:57
RunSummary.h
RunInfo.h
std
Definition:
JetResolutionObject.h:76
dqm::implementation::IGetter
Definition:
DQMStore.h:484
dqm::implementation::IBooker
Definition:
DQMStore.h:43
SiPixelDcsInfo.h
Generated for CMSSW Reference Manual by
1.8.16