abstract base class More...
#include <Benchmark.h>
Classes | |
class | PhaseSpace |
Public Types | |
typedef dqm::legacy::DQMStore | DQMStore |
enum | Mode { DEFAULT, DQMOFFLINE, VALIDATION } |
Public Member Functions | |
Benchmark (Mode mode=DEFAULT) | |
bool | isInRange (float pt, float eta, float phi) const |
virtual void | setDirectory (TDirectory *dir) |
void | setParameters (Mode mode) |
void | setRange (float ptMin, float ptMax, float etaMin, float etaMax, float phiMin, float phiMax) |
void | write () |
write to the TFile, in plain ROOT mode. No need to call this function in DQM mode More... | |
virtual | ~Benchmark () noexcept(false) |
Protected Member Functions | |
TH1F * | book1D (DQMStore::IBooker &b, const char *histname, const char *title, int nbins, float xmin, float xmax) |
book a 1D histogram, either with DQM or plain root depending if DQM_ has been initialized in a child analyzer or not. More... | |
TH2F * | book2D (DQMStore::IBooker &b, const char *histname, const char *title, int nbinsx, float xmin, float xmax, int nbinsy, float ymin, float ymax) |
book a 2D histogram, either with DQM or plain root depending if DQM_ has been initialized in a child analyzer or not. More... | |
TH2F * | book2D (DQMStore::IBooker &b, const char *histname, const char *title, int nbinsx, float *xbins, int nbinsy, float ymin, float ymax) |
book a 2D histogram, either with DQM or plain root depending if DQM_ has been initialized in a child analyzer or not. More... | |
TProfile * | bookProfile (DQMStore::IBooker &b, const char *histname, const char *title, int nbinsx, float xmin, float xmax, float ymin, float ymax, const char *option) |
book a TProfile histogram, either with DQM or plain root depending if DQM_ has been initialized in a child analyzer or not. More... | |
TProfile * | bookProfile (DQMStore::IBooker &b, const char *histname, const char *title, int nbinsx, float *xbins, float ymin, float ymax, const char *option) |
book a TProfile, either through IBooker or plain root More... | |
Protected Attributes | |
TDirectory * | dir_ |
float | etaMax_ |
float | etaMin_ |
Mode | mode_ |
float | phiMax_ |
float | phiMin_ |
float | ptMax_ |
float | ptMin_ |
abstract base class
Definition at line 19 of file Benchmark.h.
Definition at line 21 of file Benchmark.h.
enum Benchmark::Mode |
Enumerator | |
---|---|
DEFAULT | |
DQMOFFLINE | |
VALIDATION |
Definition at line 32 of file Benchmark.h.
|
virtualnoexcept |
Definition at line 11 of file Benchmark.cc.
|
protected |
book a 1D histogram, either with DQM or plain root depending if DQM_ has been initialized in a child analyzer or not.
book a 1D histogram, either through IBooker or plain root
Definition at line 15 of file Benchmark.cc.
References b, LaserClient_cfi::nbins, runGCPTkAlMap::title, TrackerOfflineValidation_Dqm_cff::xmax, and TrackerOfflineValidation_Dqm_cff::xmin.
Referenced by CandidateBenchmark::setup(), MatchCandidateBenchmark::setup(), PFJetMonitor::setup(), PFMETMonitor::setup(), and PFCandidateMonitor::setup().
|
protected |
book a 2D histogram, either with DQM or plain root depending if DQM_ has been initialized in a child analyzer or not.
book a 2D histogram, either through IBooker or plain root
Definition at line 22 of file Benchmark.cc.
References b, runGCPTkAlMap::title, TrackerOfflineValidation_Dqm_cff::xmax, TrackerOfflineValidation_Dqm_cff::xmin, L1TOccupancyClient_cfi::ymax, and L1TOccupancyClient_cfi::ymin.
Referenced by MatchCandidateBenchmark::setup(), PFJetMonitor::setup(), and PFMETMonitor::setup().
|
protected |
book a 2D histogram, either with DQM or plain root depending if DQM_ has been initialized in a child analyzer or not.
book a 2D histogram, either through IBooker or plain root
Definition at line 36 of file Benchmark.cc.
References b, mps_fire::i, runGCPTkAlMap::title, fw3dlego::xbins, L1TOccupancyClient_cfi::ymax, and L1TOccupancyClient_cfi::ymin.
|
protected |
book a TProfile histogram, either with DQM or plain root depending if DQM_ has been initialized in a child analyzer or not.
book a TProfile, either through IBooker or plain root
Definition at line 58 of file Benchmark.cc.
References b, fileinputsource_cfi::option, runGCPTkAlMap::title, TrackerOfflineValidation_Dqm_cff::xmax, and TrackerOfflineValidation_Dqm_cff::xmin.
Referenced by PFMETMonitor::setup().
|
protected |
book a TProfile, either through IBooker or plain root
book a TProfile histogram, either with DQM or plain root depending if DQM_ has been initialized in a child analyzer or not.
Definition at line 72 of file Benchmark.cc.
References b, mps_fire::i, fileinputsource_cfi::option, runGCPTkAlMap::title, fw3dlego::xbins, L1TOccupancyClient_cfi::ymax, and L1TOccupancyClient_cfi::ymin.
|
inline |
Definition at line 50 of file Benchmark.h.
References etaMin_, phi, phiMax_, phiMin_, DiDispStaMuonMonitor_cfi::pt, and ptMin_.
Referenced by PFJetMonitor::fill(), PFCandidateMonitor::fill(), PFCandidateManager::fill(), CandidateBenchmark::fillOne(), MatchCandidateBenchmark::fillOne(), and PFMETMonitor::fillOne().
|
virtual |
Reimplemented in PFCandidateManager, PFCandidateMonitor, PFMETMonitor, and PFJetMonitor.
Definition at line 13 of file Benchmark.cc.
References DeadROC_duringRun::dir, and sistrip::dir_.
Referenced by PFJetMonitor::setDirectory(), PFMETMonitor::setDirectory(), PFCandidateMonitor::setDirectory(), and PFCandidateManager::setDirectory().
|
inline |
Definition at line 39 of file Benchmark.h.
References ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, and mode_.
Referenced by PFJetMonitor::setParameters(), PFMETMonitor::setParameters(), and PFCandidateMonitor::setParameters().
|
inline |
Definition at line 41 of file Benchmark.h.
References ALCARECOTkAlBeamHalo_cff::etaMax, etaMax_, ALCARECOTkAlBeamHalo_cff::etaMin, etaMin_, AlignmentTrackSelector_cfi::phiMax, phiMax_, AlignmentTrackSelector_cfi::phiMin, phiMin_, AlignmentTrackSelector_cfi::ptMax, ptMax_, ptMin, and ptMin_.
Referenced by CandidateBenchmarkAnalyzer::CandidateBenchmarkAnalyzer(), METBenchmarkAnalyzer::METBenchmarkAnalyzer(), PFCandidateBenchmarkAnalyzer::PFCandidateBenchmarkAnalyzer(), PFCandidateManagerAnalyzer::PFCandidateManagerAnalyzer(), PFCandidateMonitor::PFCandidateMonitor(), PFJetMonitor::PFJetMonitor(), PFMETMonitor::PFMETMonitor(), PFJetMonitor::setParameters(), PFMETMonitor::setParameters(), and PFCandidateMonitor::setParameters().
void Benchmark::write | ( | ) |
write to the TFile, in plain ROOT mode. No need to call this function in DQM mode
Definition at line 93 of file Benchmark.cc.
References sistrip::dir_.
Referenced by pkg.AbstractPkg::generate().
|
protected |
Definition at line 116 of file Benchmark.h.
|
protected |
Definition at line 123 of file Benchmark.h.
Referenced by setRange().
|
protected |
Definition at line 122 of file Benchmark.h.
Referenced by isInRange(), and setRange().
|
protected |
Definition at line 118 of file Benchmark.h.
Referenced by PFJetMonitor::setParameters(), PFMETMonitor::setParameters(), PFCandidateMonitor::setParameters(), setParameters(), CandidateBenchmark::setup(), and MatchCandidateBenchmark::setup().
|
protected |
Definition at line 125 of file Benchmark.h.
Referenced by isInRange(), and setRange().
|
protected |
Definition at line 124 of file Benchmark.h.
Referenced by isInRange(), and setRange().
|
protected |
Definition at line 121 of file Benchmark.h.
Referenced by setRange().
|
protected |
Definition at line 120 of file Benchmark.h.
Referenced by isInRange(), and setRange().