#include <PFMETMonitor.h>
Public Member Functions | |
void | fillOne (const reco::MET &met, const reco::MET &matchedMet, float &minVal, float &maxVal) |
PFMETMonitor (Benchmark::Mode mode=Benchmark::DEFAULT) | |
void | setDirectory (TDirectory *dir) |
set directory (to use in ROOT) More... | |
void | setParameters (Benchmark::Mode mode, float ptmin, float ptmax, float etamin, float etamax, float phimin, float phimax, bool metSpHistos) |
set the parameters locally More... | |
void | setParameters (const edm::ParameterSet ¶meterSet) |
set the parameters accessing them from ParameterSet More... | |
void | setup () |
book histograms More... | |
void | setup (const edm::ParameterSet ¶meterSet) |
book histograms More... | |
virtual | ~PFMETMonitor () |
Public Member Functions inherited from Benchmark | |
Benchmark (Mode mode=DEFAULT) | |
bool | isInRange (float pt, float eta, float phi) const |
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 () |
Protected Attributes | |
CandidateBenchmark | candBench_ |
bool | createMETSpecificHistos_ |
TH1F * | delta_ex_ |
TH2F * | delta_ex_VS_set_ |
TH2F * | delta_set_Over_set_VS_set_ |
TH2F * | delta_set_VS_set_ |
bool | histogramBooked_ |
MatchCandidateBenchmark | matchCandBench_ |
TH1F * | px_ |
TH1F * | sumEt_ |
Protected Attributes inherited from Benchmark | |
TDirectory * | dir_ |
float | etaMax_ |
float | etaMin_ |
Mode | mode_ |
float | phiMax_ |
float | phiMin_ |
float | ptMax_ |
float | ptMin_ |
Additional Inherited Members | |
Public Types inherited from Benchmark | |
enum | Mode { DEFAULT, DQMOFFLINE, VALIDATION } |
Static Public Attributes inherited from Benchmark | |
static DQMStore * | DQM_ = 0 |
Protected Member Functions inherited from Benchmark | |
TH1F * | book1D (const char *histname, const char *title, int nbins, float xmin, float xmax) |
book a 1D histogram, either with DQM or plain root. More... | |
TH2F * | book2D (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. More... | |
TH2F * | book2D (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. More... | |
Definition at line 11 of file PFMETMonitor.h.
PFMETMonitor::PFMETMonitor | ( | Benchmark::Mode | mode = Benchmark::DEFAULT | ) |
Definition at line 15 of file PFMETMonitor.cc.
References createMETSpecificHistos_, delta_ex_, delta_ex_VS_set_, delta_set_Over_set_VS_set_, delta_set_VS_set_, histogramBooked_, px_, Benchmark::setRange(), and sumEt_.
|
virtual |
Definition at line 35 of file PFMETMonitor.cc.
void PFMETMonitor::fillOne | ( | const reco::MET & | met, |
const reco::MET & | matchedMet, | ||
float & | minVal, | ||
float & | maxVal | ||
) |
Definition at line 182 of file PFMETMonitor.cc.
References candBench_, createMETSpecificHistos_, delta_ex_, delta_ex_VS_set_, delta_set_Over_set_VS_set_, delta_set_VS_set_, reco::LeafCandidate::eta(), CandidateBenchmark::fillOne(), MatchCandidateBenchmark::fillOne(), histogramBooked_, Benchmark::isInRange(), matchCandBench_, reco::LeafCandidate::phi(), reco::LeafCandidate::pt(), reco::LeafCandidate::px(), px_, reco::LeafCandidate::py(), reco::MET::sumEt(), and sumEt_.
Referenced by PFMETDQMAnalyzer::analyze(), and PFRootEventManager::processEntry().
|
virtual |
set directory (to use in ROOT)
Reimplemented from Benchmark.
Definition at line 175 of file PFMETMonitor.cc.
References candBench_, matchCandBench_, and Benchmark::setDirectory().
Referenced by PFRootEventManager::readOptions().
void PFMETMonitor::setParameters | ( | Benchmark::Mode | mode, |
float | ptmin, | ||
float | ptmax, | ||
float | etamin, | ||
float | etamax, | ||
float | phimin, | ||
float | phimax, | ||
bool | metSpHistos | ||
) |
set the parameters locally
Definition at line 58 of file PFMETMonitor.cc.
References candBench_, createMETSpecificHistos_, matchCandBench_, alignBH_cfg::mode, Benchmark::mode_, Benchmark::setParameters(), and Benchmark::setRange().
Referenced by PFMETDQMAnalyzer::PFMETDQMAnalyzer(), and PFRootEventManager::readOptions().
void PFMETMonitor::setParameters | ( | const edm::ParameterSet & | parameterSet | ) |
set the parameters accessing them from ParameterSet
Definition at line 40 of file PFMETMonitor.cc.
References candBench_, createMETSpecificHistos_, edm::ParameterSet::getParameter(), matchCandBench_, Benchmark::mode_, Benchmark::setParameters(), and Benchmark::setRange().
void PFMETMonitor::setup | ( | void | ) |
book histograms
Definition at line 140 of file PFMETMonitor.cc.
References Benchmark::book1D(), Benchmark::book2D(), candBench_, createMETSpecificHistos_, delta_ex_, delta_ex_VS_set_, delta_set_Over_set_VS_set_, delta_set_VS_set_, histogramBooked_, Benchmark::PhaseSpace::m, Benchmark::PhaseSpace::M, matchCandBench_, Benchmark::PhaseSpace::n, px_, CandidateBenchmark::setup(), MatchCandidateBenchmark::setup(), and sumEt_.
Referenced by PFMETDQMAnalyzer::beginJob(), and PFRootEventManager::readOptions().
void PFMETMonitor::setup | ( | const edm::ParameterSet & | parameterSet | ) |
book histograms
Definition at line 72 of file PFMETMonitor.cc.
References Benchmark::book1D(), Benchmark::book2D(), candBench_, createMETSpecificHistos_, delta_ex_, delta_ex_VS_set_, delta_set_Over_set_VS_set_, delta_set_VS_set_, edm::ParameterSet::getParameter(), histogramBooked_, matchCandBench_, px_, CandidateBenchmark::setup(), MatchCandidateBenchmark::setup(), and sumEt_.
|
protected |
Definition at line 46 of file PFMETMonitor.h.
Referenced by fillOne(), setDirectory(), setParameters(), and setup().
|
protected |
Definition at line 49 of file PFMETMonitor.h.
Referenced by fillOne(), PFMETMonitor(), setParameters(), and setup().
|
protected |
Definition at line 41 of file PFMETMonitor.h.
Referenced by fillOne(), PFMETMonitor(), and setup().
|
protected |
Definition at line 42 of file PFMETMonitor.h.
Referenced by fillOne(), PFMETMonitor(), and setup().
|
protected |
Definition at line 44 of file PFMETMonitor.h.
Referenced by fillOne(), PFMETMonitor(), and setup().
|
protected |
Definition at line 43 of file PFMETMonitor.h.
Referenced by fillOne(), PFMETMonitor(), and setup().
|
protected |
Definition at line 50 of file PFMETMonitor.h.
Referenced by fillOne(), PFMETMonitor(), and setup().
|
protected |
Definition at line 47 of file PFMETMonitor.h.
Referenced by fillOne(), setDirectory(), setParameters(), and setup().
|
protected |
Definition at line 39 of file PFMETMonitor.h.
Referenced by fillOne(), PFMETMonitor(), and setup().
|
protected |
Definition at line 40 of file PFMETMonitor.h.
Referenced by fillOne(), PFMETMonitor(), and setup().