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 
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:36
void beginRun(const edm::Run &run, const edm::EventSetup &c) override
std::string target_
~DemoRunHarvester() override
DemoRunHarvester(const edm::ParameterSet &)
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
void dqmEndJob(DQMStore::IBooker &ib, DQMStore::IGetter &ig) override
virtual MonitorElement * get(std::string const &fullpath) const
Definition: DQMStore.cc:712
Definition: Run.h:45
ib
Definition: cuy.py:661