DQMServices
Demo
plugins
DemoRunHarvester.cc
Go to the documentation of this file.
1
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
2
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
3
4
#include "
DQMServices/Core/interface/DQMEDHarvester.h
"
5
6
class
DemoRunHarvester
:
public
DQMEDHarvester
{
7
private
:
8
std::string
target_
;
9
int
ctr_
= 0;
10
11
public
:
12
explicit
DemoRunHarvester
(
const
edm::ParameterSet
&);
13
~DemoRunHarvester
()
override
{}
14
15
void
beginRun
(
const
edm::Run
&
run
,
const
edm::EventSetup
&
c
)
override
;
16
void
dqmEndJob
(
DQMStore::IBooker
&
ib
,
DQMStore::IGetter
& ig)
override
;
17
};
18
19
DemoRunHarvester::DemoRunHarvester
(
const
edm::ParameterSet
& iConfig)
20
:
DQMEDHarvester
(iConfig), target_(iConfig.getParameter<
std
::
string
>(
"target"
)) {}
21
22
void
DemoRunHarvester::beginRun
(
const
edm::Run
&
run
,
const
edm::EventSetup
& iSetup) {}
23
24
void
DemoRunHarvester::dqmEndJob
(
DQMStore::IBooker
&
ib
,
DQMStore::IGetter
& ig) {
25
ig.
setCurrentFolder
(
target_
);
26
MonitorElement
*
me
= ig.
get
(
target_
+
"/EXAMPLE"
);
27
me
->getTH1()->Fill(3);
28
29
ib
.setCurrentFolder(
target_
+
"_runsummary"
);
30
MonitorElement
*
out
=
ib
.book1D(
"EXAMPLE"
,
"EXAMPLE"
, 100, 0., 100.);
31
out
->setBinContent(5,
me
->getBinContent(5));
32
}
33
34
#include "
FWCore/Framework/interface/MakerMacros.h
"
35
36
DEFINE_FWK_MODULE
(
DemoRunHarvester
);
DQMEDHarvester.h
edm::Run
Definition:
Run.h:45
dqm::implementation::NavigatorBase::setCurrentFolder
virtual void setCurrentFolder(std::string const &fullpath)
Definition:
DQMStore.cc:32
dqm::legacy::MonitorElement
Definition:
MonitorElement.h:461
DemoRunHarvester::target_
std::string target_
Definition:
DemoRunHarvester.cc:8
DemoRunHarvester::beginRun
void beginRun(const edm::Run &run, const edm::EventSetup &c) override
Definition:
DemoRunHarvester.cc:22
MakerMacros.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
DemoRunHarvester::DemoRunHarvester
DemoRunHarvester(const edm::ParameterSet &)
Definition:
DemoRunHarvester.cc:19
DemoRunHarvester::~DemoRunHarvester
~DemoRunHarvester() override
Definition:
DemoRunHarvester.cc:13
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition:
ParameterSet.h:47
cuy.ib
ib
Definition:
cuy.py:662
edm::EventSetup
Definition:
EventSetup.h:57
HltBtagPostValidation_cff.c
c
Definition:
HltBtagPostValidation_cff.py:31
DemoRunHarvester::ctr_
int ctr_
Definition:
DemoRunHarvester.cc:9
DQMEDHarvester
Definition:
DQMEDHarvester.py:1
std
Definition:
JetResolutionObject.h:76
writedatasetfile.run
run
Definition:
writedatasetfile.py:27
Frameworkfwd.h
dqm::implementation::IGetter
Definition:
DQMStore.h:484
dqm::implementation::IGetter::get
virtual MonitorElement * get(std::string const &fullpath) const
Definition:
DQMStore.cc:651
DemoRunHarvester
Definition:
DemoRunHarvester.cc:6
dqm::implementation::IBooker
Definition:
DQMStore.h:43
MillePedeFileConverter_cfg.out
out
Definition:
MillePedeFileConverter_cfg.py:31
DemoRunHarvester::dqmEndJob
void dqmEndJob(DQMStore::IBooker &ib, DQMStore::IGetter &ig) override
Definition:
DemoRunHarvester.cc:24
ParameterSet.h
hlt_dqm_clientPB-live_cfg.me
me
Definition:
hlt_dqm_clientPB-live_cfg.py:61
Generated for CMSSW Reference Manual by
1.8.16