CMS 3D CMS Logo

DemoRunHarvester.cc
Go to the documentation of this file.
3 
5 
7 private:
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 
20  : DQMEDHarvester(iConfig), target_(iConfig.getParameter<std::string>("target")) {}
21 
23 
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 
35 
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