10 : dir1_(ps.getUntrackedParameter<
std::
string>(
"dir1")),
11 dir2_(ps.getUntrackedParameter<
std::
string>(
"dir2")),
12 outputDir_(ps.getUntrackedParameter<
std::
string>(
"outputDir", dir1_)),
53 }
else if (isProfile) {
59 <<
"Unknown histogram type. Quitting booking" << std::endl;
67 h_diff->SetEntries(h1->GetEntries() + h2->GetEntries());
77 edm::LogWarning(
"L1TDiffHarvesting::L1TDiffPlotHandler::loadHistograms")
78 << (!
h1_ && !
h2_ ? h1Name +
" && " + h2Name : !
h1_ ? h1Name : h2Name) <<
" not gettable. Quitting booking" 91 <<
" Could not find a supported histogram type" << std::endl;
96 <<
" Histogram 1 and 2 have different histogram types" << std::endl;
111 double min = h1->GetXaxis()->GetXmin();
112 double max = h1->GetXaxis()->GetXmax();
113 int nBins = h1->GetNbinsX();
117 double minX = h1->GetXaxis()->GetXmin();
118 double maxX = h1->GetXaxis()->GetXmax();
119 double minY = h1->GetYaxis()->GetXmin();
120 double maxY = h1->GetYaxis()->GetXmax();
121 int nBinsX = h1->GetNbinsX();
122 int nBinsY = h1->GetNbinsY();
125 }
else if (isProfile) {
127 double minX = h1->GetXaxis()->GetXmin();
128 double maxX = h1->GetXaxis()->GetXmax();
129 double minY = h1->GetYaxis()->GetXmin();
130 double maxY = h1->GetYaxis()->GetXmax();
131 int nBins = h1->GetNbinsX();
135 <<
"Unknown histogram type. Quitting booking" << std::endl;
144 vector<string>
plots = plotConfig.getUntrackedParameter<vector<string>>(
"plots");
145 for (
auto plot : plots) {
154 edm::LogInfo(
"L1TEfficiencyHarvesting") <<
"Called endRun." << std::endl;
157 plotHandler.computeDiff(ibooker, igetter);
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX)
T getUntrackedParameter(std::string const &, T const &) const
L1TDiffPlotHandler(const edm::ParameterSet &ps, std::string plotName)
virtual TH2F * getTH2F() const
void loadHistograms(DQMStore::IGetter &igetter)
void dqmEndJob(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter) override
L1TDiffPlotHandlers plotHandlers_
L1TDiffHarvesting(const edm::ParameterSet &ps)
~L1TDiffHarvesting() override
void setCurrentFolder(std::string const &fullpath)
virtual TH1F * getTH1F() const
Kind kind() const
Get the type of the monitor element.
MonitorElement::Kind histType2_
void bookDiff(DQMStore::IBooker &ibooker)
#define DEFINE_FWK_MODULE(type)
MonitorElement::Kind histType1_
bool is2D(HitType hitType)
MonitorElement * bookProfile(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, char const *option="s")
void computeDiff(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter)
virtual TProfile * getTProfile() const
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
MonitorElement * get(std::string const &path)