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;
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 &)
virtual void beginRun(const edm::Run &, const edm::EventSetup &)
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. "my/long/dir/my_histo")
virtual void analyze(const edm::Event &, const edm::EventSetup &)
TH1F * getTH1F(void) const
virtual ~HarvestingAnalyzer()
virtual void endRun(const edm::Run &, const edm::EventSetup &)
void setCurrentFolder(const std::string &fullpath)