17 LogDebug(
"TriggerDQM") <<
"[TriggerDQM]: ending... ";
37 "runInEventLoop",
false);
91 "efficiency DTCSC vs eta and phi",
"etaphi_DTCSC_and_RPC");
101 "efficiency RPC vs eta and phi",
"etaphi_DTCSC_and_RPC");
121 LogDebug(
"TriggerDQM") <<
"L1TGMTClient: processing..." << std::endl;
141 if (mer ==
nullptr) {
143 <<
"\nL1TGMTClient::makeRatio1D: monitoring element zero, not able to retrieve histogram" 150 if (hr && h1 && h2) {
151 hr->Divide(h1, h2, 1., 1.,
" ");
163 if (meeff ==
nullptr) {
165 <<
"L1TGMTClient::makeEfficiency1D: monitoring element zero, not able to retrieve histogram" 172 if (heff && he && hi) {
173 TH1F* hall = (TH1F*) he->Clone(
"hall");
175 heff->Divide(he, hall, 1., 1.,
"B");
188 if (meeff ==
nullptr) {
190 <<
"\nL1TGMTClient::makeEfficiency2D: monitoring element zero, not able to retrieve histogram" 197 if (heff && he && hi) {
198 TH2F* hall = (TH2F*) he->Clone(
"hall");
200 heff->Divide(he, hall, 1., 1.,
"B");
211 LogDebug(
"TriggerDQM") <<
"\nL1TGMTClient: " << meName <<
" NOT FOUND.";
223 LogDebug(
"TriggerDQM") <<
"\nL1TGMTClient: " << meName <<
" NOT FOUND.";
238 <<
"\nL1TGMTClient::bookClone1D: booking histogram " 239 << hrefName << std::endl;
240 const unsigned nbx = href->GetNbinsX();
241 const double xmin = href->GetXaxis()->GetXmin();
242 const double xmax = href->GetXaxis()->GetXmax();
244 me = ibooker.
book1D(name, title, nbx, xmin, xmax);
247 <<
"\nL1TGMTClient::bookClone1D: not able to clone histogram " 248 << hrefName << std::endl;
264 <<
"\nL1TGMTClient::bookClone1DVB: booking histogram " 265 << hrefName << std::endl;
266 int nbx = href->GetNbinsX();
270 for (
int i = 0;
i < nbx;
i++) {
271 xbins[
i] = href->GetBinLowEdge(
i + 1);
273 xbins[nbx] = href->GetXaxis()->GetXmax();
276 me = ibooker.
book1D(name, title, nbx, xbins);
280 <<
"\nL1TGMTClient::bookClone1DVB: not able to clone histogram " 281 << hrefName << std::endl;
298 <<
"\nL1TGMTClient::bookClone2D: booking histogram " 299 << hrefName << std::endl;
300 const unsigned nbx = href->GetNbinsX();
301 const double xmin = href->GetXaxis()->GetXmin();
302 const double xmax = href->GetXaxis()->GetXmax();
303 const unsigned nby = href->GetNbinsY();
304 const double ymin = href->GetYaxis()->GetXmin();
305 const double ymax = href->GetYaxis()->GetXmax();
307 me = ibooker.
book2D(name, title, nbx, xmin, xmax, nby, ymin, ymax);
310 <<
"\nL1TGMTClient::bookClone2D: not able to clone histogram " 311 << 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)
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
void makeEfficiency1D(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter, MonitorElement *meeff, std::string heName, std::string hiName)
MonitorElement * eff_etaphi_dtcsc
MonitorElement * bookClone1DVB(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter, const std::string &name, const std::string &title, const std::string &hrefName)
MonitorElement * get(const std::string &path)
MonitorElement * bookClone1D(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter, const std::string &name, const std::string &title, const std::string &hrefName)
MonitorElement * bookClone2D(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter, const std::string &name, const std::string &title, const std::string &hrefName)
MonitorElement * eff_etaphi_rpc
MonitorElement * book1D(Args &&...args)
MonitorElement * eff_phi_rpc
MonitorElement * eff_eta_dtcsc
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
void setCurrentFolder(const std::string &fullpath)
MonitorElement * book2D(Args &&...args)
TH1F * getTH1F(void) const
L1TGMTClient(const edm::ParameterSet &)
Constructor.
~L1TGMTClient() override
Destructor.
void setCurrentFolder(const std::string &fullpath)
TH2F * getTH2F(void) const
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
TH1F * get1DHisto(std::string meName, DQMStore::IGetter &igetter)
edm::ParameterSet parameters_