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
HarvestingAnalyzer(const edm::ParameterSet &)
MonitorElement * book1D(char_string const &name, char_string const &title, int const nchX, double const lowX, double const highX)
Book 1D histogram.
void beginRun(const edm::Run &, const edm::EventSetup &) override
MonitorElement * get(std::string const &path) const
get ME from full pathname (e.g. "my/long/dir/my_histo")
void analyze(const edm::Event &, const edm::EventSetup &) override
void setCurrentFolder(std::string const &fullpath)
~HarvestingAnalyzer() override