CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
const edm::EventSetup & c
int ib
Definition: cuy.py:661
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:32
void beginRun(const edm::Run &run, const edm::EventSetup &c) override
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
std::string target_
~DemoRunHarvester() override
DemoRunHarvester(const edm::ParameterSet &)
virtual MonitorElement * get(std::string const &fullpath) const
Definition: DQMStore.cc:673
virtual double getBinContent(int binx) const
get content of bin (1-D)
virtual void setBinContent(int binx, double content)
set content of bin (1-D)
void dqmEndJob(DQMStore::IBooker &ib, DQMStore::IGetter &ig) override
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:98
virtual TH1 * getTH1() const
Definition: Run.h:45