5 std::string MsgLoggerCat =
"HarvestingAnalyzer_HarvestingAnalyzer";
12 <<
"\n===============================\n" 13 <<
"Initialized as EDAnalyzer with parameter values:\n" 14 <<
" Name = " <<
fName <<
"\n" 15 <<
" Verbosity = " << verbosity <<
"\n" 16 <<
"===============================\n";
37 dbe->
get(
"ConverterTest/TH1F/Random1DN");
39 dbe->
get(
"ConverterTest/TH1F/Random1DD");
54 dbe->
book1D(
"Divide",
"Divide calculation",
55 numerator->GetNbinsX(),
56 numerator->GetXaxis()->GetXmin(),
57 numerator->GetXaxis()->GetXmax());
60 me->
getTH1F()->Divide(numerator, denominator, 1., 1.,
"B");
63 std::cout <<
"Monitor elements don't exist" << std::endl;
66 std::cout <<
"Don't have a valid DQM back end" << std::endl;
void endRun(const edm::Run &, const edm::EventSetup &) override
T getUntrackedParameter(std::string const &, T const &) const
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
HarvestingAnalyzer(const edm::ParameterSet &)
void beginRun(const edm::Run &, const edm::EventSetup &) override
void analyze(const edm::Event &, const edm::EventSetup &) override
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. "my/long/dir/my_histo")
TH1F * getTH1F(void) const
~HarvestingAnalyzer() override
void setCurrentFolder(const std::string &fullpath)