10 dir1_(ps.getUntrackedParameter <
std::
string > (
"dir1")),
11 dir2_(ps.getUntrackedParameter <
std::
string > (
"dir2")),
12 outputDir_(ps.getUntrackedParameter <
std::
string > (
"outputDir", dir1_)),
63 h_diff->SetEntries(h1->GetEntries() + h2->GetEntries());
74 edm::LogError(
"L1TDiffHarvesting::L1TDiffPlotHandler::loadHistograms")
75 << (!
h1_ && !
h2_ ? h1Name +
" && " + h2Name : !
h1_ ? h1Name : h2Name) <<
" not gettable. Quitting booking" 89 edm::LogError(
"L1TDiffHarvesting::L1TDiffPlotHandler::isValid") <<
" Could not find a supported histogram type" 94 edm::LogError(
"L1TDiffHarvesting::L1TDiffPlotHandler::isValid")
95 <<
" Histogram 1 and 2 have different histogram types" << std::endl;
108 double min = h1->GetXaxis()->GetXmin();
109 double max = h1->GetXaxis()->GetXmax();
110 int nBins = h1->GetNbinsX();
114 double minX = h1->GetXaxis()->GetXmin();
115 double maxX = h1->GetXaxis()->GetXmax();
116 double minY = h1->GetYaxis()->GetXmin();
117 double maxY = h1->GetYaxis()->GetXmax();
118 int nBinsX = h1->GetNbinsX();
119 int nBinsY = h1->GetNbinsY();
131 vector < string >
plots = plotConfig.getUntrackedParameter < vector < string >> (
"plots");
132 for (
auto plot : plots) {
145 edm::LogInfo(
"L1TEfficiencyHarvesting") <<
"Called endRun." << std::endl;
148 plotHandler.computeDiff(ibooker, igetter);
virtual void dqmEndLuminosityBlock(DQMStore::IGetter &igetter, edm::LuminosityBlock const &lumiBlock, edm::EventSetup const &c)
T getUntrackedParameter(std::string const &, T const &) const
L1TDiffPlotHandler(const edm::ParameterSet &ps, std::string plotName)
void loadHistograms(DQMStore::IGetter &igetter)
virtual void dqmEndJob(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter) override
L1TDiffPlotHandlers plotHandlers_
L1TDiffHarvesting(const edm::ParameterSet &ps)
MonitorElement * get(const std::string &path)
#define DEFINE_FWK_MODULE(type)
MonitorElement::Kind histType2_
void bookDiff(DQMStore::IBooker &ibooker)
MonitorElement::Kind histType1_
MonitorElement * book1D(Args &&...args)
Kind kind(void) const
Get the type of the monitor element.
void computeDiff(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter)
void setCurrentFolder(const std::string &fullpath)
MonitorElement * book2D(Args &&...args)
virtual ~L1TDiffHarvesting()
TH1F * getTH1F(void) const
TH2F * getTH2F(void) const