74 bookClone2D(ibooker, igetter,
"eff_etaphi_dtcsc",
"efficiency DTCSC vs eta and phi",
"etaphi_DTCSC_and_RPC");
84 bookClone2D(ibooker, igetter,
"eff_etaphi_rpc",
"efficiency RPC vs eta and phi",
"etaphi_DTCSC_and_RPC");
105 LogDebug(
"TriggerDQM") <<
"L1TGMTClient: processing..." << std::endl;
128 if (mer ==
nullptr) {
129 LogDebug(
"TriggerDQM") <<
"\nL1TGMTClient::makeRatio1D: monitoring element zero, not able to retrieve histogram"
136 if (hr && h1 && h2) {
137 hr->Divide(h1, h2, 1., 1.,
" ");
152 if (meeff ==
nullptr) {
153 LogDebug(
"TriggerDQM") <<
"L1TGMTClient::makeEfficiency1D: monitoring element zero, not able to retrieve histogram"
160 if (heff && he && hi) {
161 TH1F* hall = (TH1F*)he->Clone(
"hall");
163 heff->Divide(he, hall, 1., 1.,
"B");
179 if (meeff ==
nullptr) {
181 <<
"\nL1TGMTClient::makeEfficiency2D: monitoring element zero, not able to retrieve histogram" << std::endl;
187 if (heff && he && hi) {
188 TH2F* hall = (TH2F*)he->Clone(
"hall");
190 heff->Divide(he, hall, 1., 1.,
"B");
200 LogDebug(
"TriggerDQM") <<
"\nL1TGMTClient: " << meName <<
" NOT FOUND.";
212 LogDebug(
"TriggerDQM") <<
"\nL1TGMTClient: " << meName <<
" NOT FOUND.";
229 LogDebug(
"TriggerDQM") <<
"\nL1TGMTClient::bookClone1D: booking histogram " << hrefName << std::endl;
230 const unsigned nbx = href->GetNbinsX();
231 const double xmin = href->GetXaxis()->GetXmin();
232 const double xmax = href->GetXaxis()->GetXmax();
234 me = ibooker.
book1D(name, title, nbx, xmin, xmax);
236 LogDebug(
"TriggerDQM") <<
"\nL1TGMTClient::bookClone1D: not able to clone histogram " << hrefName << std::endl;
254 LogDebug(
"TriggerDQM") <<
"\nL1TGMTClient::bookClone1DVB: booking histogram " << hrefName << std::endl;
255 int nbx = href->GetNbinsX();
259 for (
int i = 0;
i < nbx;
i++) {
260 xbins[
i] = href->GetBinLowEdge(
i + 1);
262 xbins[nbx] = href->GetXaxis()->GetXmax();
265 me = ibooker.
book1D(name, title, nbx, xbins);
268 LogDebug(
"TriggerDQM") <<
"\nL1TGMTClient::bookClone1DVB: not able to clone histogram " << hrefName << std::endl;
286 LogDebug(
"TriggerDQM") <<
"\nL1TGMTClient::bookClone2D: booking histogram " << hrefName << std::endl;
287 const unsigned nbx = href->GetNbinsX();
288 const double xmin = href->GetXaxis()->GetXmin();
289 const double xmax = href->GetXaxis()->GetXmax();
290 const unsigned nby = href->GetNbinsY();
291 const double ymin = href->GetYaxis()->GetXmin();
292 const double ymax = href->GetYaxis()->GetXmax();
294 me = ibooker.
book2D(name, title, nbx, xmin, xmax, nby, ymin, ymax);
296 LogDebug(
"TriggerDQM") <<
"\nL1TGMTClient::bookClone2D: not able to clone histogram " << hrefName << std::endl;
void makeEfficiency2D(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter, MonitorElement *meeff, std::string heName, std::string hiName)
T getUntrackedParameter(std::string const &, T const &) const
void processHistograms(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter)
virtual TH2F * getTH2F() const
void dqmEndLuminosityBlock(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter, const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &evSetup) override
TH2F * get2DHisto(std::string meName, DQMStore::IGetter &igetter)
MonitorElement * eff_eta_rpc
virtual void setCurrentFolder(std::string const &fullpath)
void makeEfficiency1D(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter, MonitorElement *meeff, std::string heName, std::string hiName)
MonitorElement * eff_etaphi_dtcsc
virtual TH1F * getTH1F() const
MonitorElement * eff_etaphi_rpc
virtual MonitorElement * get(std::string const &fullpath) const
MonitorElement * eff_phi_rpc
MonitorElement * eff_eta_dtcsc
MonitorElement * bookClone1D(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter, const std::string &name, const std::string &title, const std::string &hrefName)
MonitorElement * eff_phi_dtcsc
void makeRatio1D(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter, MonitorElement *mer, std::string h1Name, std::string h2Name)
void dqmEndJob(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter) override
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
MonitorElement * bookClone1DVB(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter, const std::string &name, const std::string &title, const std::string &hrefName)
L1TGMTClient(const edm::ParameterSet &)
Constructor.
~L1TGMTClient() override
Destructor.
virtual void enableSumw2()
MonitorElement * bookClone2D(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter, const std::string &name, const std::string &title, const std::string &hrefName)
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
TH1F * get1DHisto(std::string meName, DQMStore::IGetter &igetter)
edm::ParameterSet parameters_
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)