17 LogDebug(
"TriggerDQM") <<
"[TriggerDQM]: ending... ";
40 "runInEventLoop",
false);
53 LogDebug(
"TriggerDQM") <<
"[TriggerDQM]: Begin Job";
105 "efficiency DTCSC vs eta and phi",
"etaphi_DTCSC_and_RPC");
116 "efficiency RPC vs eta and phi",
"etaphi_DTCSC_and_RPC");
163 LogDebug(
"TriggerDQM") <<
"L1TGMTClient: processing..." << std::endl;
174 "etaphi_DTCSC_only");
200 std::string h2Name) {
209 <<
"\nL1TGMTClient::makeRatio1D: monitoring element zero, not able to retrieve histogram"
216 if (hr && h1 && h2) {
217 hr->Divide(h1, h2, 1., 1.,
" ");
223 std::string hiName) {
232 <<
"L1TGMTClient::makeEfficiency1D: monitoring element zero, not able to retrieve histogram"
239 if (heff && he && hi) {
240 TH1F* hall = (TH1F*) he->Clone(
"hall");
242 heff->Divide(he, hall, 1., 1.,
"B");
249 std::string hiName) {
258 <<
"\nL1TGMTClient::makeEfficiency2D: monitoring element zero, not able to retrieve histogram"
265 if (heff && he && hi) {
266 TH2F* hall = (TH2F*) he->Clone(
"hall");
268 heff->Divide(he, hall, 1., 1.,
"B");
279 LogDebug(
"TriggerDQM") <<
"\nL1TGMTClient: " << meName <<
" NOT FOUND.";
291 LogDebug(
"TriggerDQM") <<
"\nL1TGMTClient: " << meName <<
" NOT FOUND.";
299 const std::string&
title,
const std::string& hrefName) {
307 <<
"\nL1TGMTClient::bookClone1D: booking histogram "
308 << hrefName << std::endl;
309 const unsigned nbx = href->GetNbinsX();
310 const double xmin = href->GetXaxis()->GetXmin();
311 const double xmax = href->GetXaxis()->GetXmax();
312 me =
dbe_->
book1D(name, title, nbx, xmin, xmax);
315 <<
"\nL1TGMTClient::bookClone1D: not able to clone histogram "
316 << hrefName << std::endl;
325 const std::string&
title,
const std::string& hrefName) {
333 <<
"\nL1TGMTClient::bookClone1DVB: booking histogram "
334 << hrefName << std::endl;
335 int nbx = href->GetNbinsX();
339 for (
int i = 0;
i < nbx;
i++) {
340 xbins[
i] = href->GetBinLowEdge(
i + 1);
342 xbins[nbx] = href->GetXaxis()->GetXmax();
349 <<
"\nL1TGMTClient::bookClone1DVB: not able to clone histogram "
350 << hrefName << std::endl;
359 const std::string&
title,
const std::string& hrefName) {
367 <<
"\nL1TGMTClient::bookClone2D: booking histogram "
368 << hrefName << std::endl;
369 const unsigned nbx = href->GetNbinsX();
370 const double xmin = href->GetXaxis()->GetXmin();
371 const double xmax = href->GetXaxis()->GetXmax();
372 const unsigned nby = href->GetNbinsY();
373 const double ymin = href->GetYaxis()->GetXmin();
374 const double ymax = href->GetYaxis()->GetXmax();
375 me =
dbe_->
book2D(name, title, nbx, xmin, xmax, nby, ymin, ymax);
378 <<
"\nL1TGMTClient::bookClone2D: not able to clone histogram "
379 << hrefName << std::endl;
T getUntrackedParameter(std::string const &, T const &) const
void endLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &)
DQM Client Diagnostic.
MonitorElement * bookClone1DVB(const std::string &name, const std::string &title, const std::string &hrefName)
void beginRun(const edm::Run &, const edm::EventSetup &)
BeginRun.
void beginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &)
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
MonitorElement * eff_eta_rpc
MonitorElement * eff_etaphi_dtcsc
virtual ~L1TGMTClient()
Destructor.
void analyze(const edm::Event &, const edm::EventSetup &)
Fake Analyze.
MonitorElement * eff_etaphi_rpc
void endRun(const edm::Run &, const edm::EventSetup &)
EndRun.
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. "my/long/dir/my_histo")
MonitorElement * eff_phi_rpc
MonitorElement * eff_eta_dtcsc
MonitorElement * eff_phi_dtcsc
void makeEfficiency1D(MonitorElement *meeff, std::string heName, std::string hiName)
TH1F * getTH1F(void) const
L1TGMTClient(const edm::ParameterSet &)
Constructor.
MonitorElement * bookClone1D(const std::string &name, const std::string &title, const std::string &hrefName)
TH1F * get1DHisto(std::string meName, DQMStore *dbi)
void makeRatio1D(MonitorElement *mer, std::string h1Name, std::string h2Name)
MonitorElement * bookClone2D(const std::string &name, const std::string &title, const std::string &hrefName)
void makeEfficiency2D(MonitorElement *meeff, std::string heName, std::string hiName)
TH2F * get2DHisto(std::string meName, DQMStore *dbi)
TH2F * getTH2F(void) const
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
void setCurrentFolder(const std::string &fullpath)
edm::ParameterSet parameters_