10 dir1_(ps.getUntrackedParameter <
std::
string > (
"dir1")),
11 dir2_(ps.getUntrackedParameter <
std::
string > (
"dir2")),
12 outputDir_(ps.getUntrackedParameter <
std::
string > (
"outputDir", dir1_)),
67 <<
"Unknown histogram type. Quitting booking" 76 h_diff->SetEntries(h1->GetEntries() + h2->GetEntries());
87 edm::LogWarning(
"L1TDiffHarvesting::L1TDiffPlotHandler::loadHistograms")
88 << (!
h1_ && !
h2_ ? h1Name +
" && " + h2Name : !
h1_ ? h1Name : h2Name) <<
" not gettable. Quitting booking" 102 edm::LogWarning(
"L1TDiffHarvesting::L1TDiffPlotHandler::isValid") <<
" Could not find a supported histogram type" 108 <<
" Histogram 1 and 2 have different histogram types" << std::endl;
124 double min = h1->GetXaxis()->GetXmin();
125 double max = h1->GetXaxis()->GetXmax();
126 int nBins = h1->GetNbinsX();
130 double minX = h1->GetXaxis()->GetXmin();
131 double maxX = h1->GetXaxis()->GetXmax();
132 double minY = h1->GetYaxis()->GetXmin();
133 double maxY = h1->GetYaxis()->GetXmax();
134 int nBinsX = h1->GetNbinsX();
135 int nBinsY = h1->GetNbinsY();
138 }
else if (isProfile) {
140 double minX = h1->GetXaxis()->GetXmin();
141 double maxX = h1->GetXaxis()->GetXmax();
142 double minY = h1->GetYaxis()->GetXmin();
143 double maxY = h1->GetYaxis()->GetXmax();
144 int nBins = h1->GetNbinsX();
148 <<
"Unknown histogram type. Quitting booking" 161 vector < string >
plots = plotConfig.getUntrackedParameter < vector < string >> (
"plots");
162 for (
auto plot : plots) {
175 edm::LogInfo(
"L1TEfficiencyHarvesting") <<
"Called endRun." << std::endl;
178 plotHandler.computeDiff(ibooker, igetter);
TProfile * getTProfile() const
T getUntrackedParameter(std::string const &, T const &) const
L1TDiffPlotHandler(const edm::ParameterSet &ps, std::string plotName)
void loadHistograms(DQMStore::IGetter &igetter)
void dqmEndJob(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter) override
L1TDiffPlotHandlers plotHandlers_
L1TDiffHarvesting(const edm::ParameterSet &ps)
MonitorElement * bookProfile(Args &&...args)
~L1TDiffHarvesting() override
MonitorElement::Kind histType2_
void bookDiff(DQMStore::IBooker &ibooker)
#define DEFINE_FWK_MODULE(type)
void setCurrentFolder(std::string const &fullpath)
MonitorElement::Kind histType1_
bool is2D(HitType hitType)
MonitorElement * book1D(Args &&...args)
void computeDiff(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter)
MonitorElement * get(std::string const &path)
MonitorElement * book2D(Args &&...args)
Kind kind() const
Get the type of the monitor element.