To plot Candidate quantities. More...
#include <CandidateBenchmark.h>
Public Member Functions | |
CandidateBenchmark (Mode mode) | |
template<class C > | |
void | fill (const C &candidates) |
void | fillOne (const reco::Candidate &candidate) |
fill histograms with a given particle More... | |
void | setup () |
book histograms More... | |
void | setup (const edm::ParameterSet ¶meterSet) |
book histograms More... | |
virtual | ~CandidateBenchmark () |
Public Member Functions inherited from Benchmark | |
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 () |
Protected Attributes | |
TH1F * | charge_ |
TH1F * | eta_ |
bool | histogramBooked_ |
TH1F * | pdgId_ |
COLIN add this histo. More... | |
TH1F * | phi_ |
TH1F * | pt_ |
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... | |
To plot Candidate quantities.
Definition at line 10 of file CandidateBenchmark.h.
CandidateBenchmark::CandidateBenchmark | ( | Mode | mode | ) |
Definition at line 15 of file CandidateBenchmark.cc.
References charge_, eta_, histogramBooked_, pdgId_, phi_, and pt_.
|
virtual |
Definition at line 26 of file CandidateBenchmark.cc.
void CandidateBenchmark::fill | ( | const C & | candidates | ) |
Definition at line 43 of file CandidateBenchmark.h.
Referenced by CandidateBenchmarkAnalyzer::analyze().
void CandidateBenchmark::fillOne | ( | const reco::Candidate & | candidate | ) |
fill histograms with a given particle
Definition at line 88 of file CandidateBenchmark.cc.
References reco::Candidate::charge(), charge_, reco::Candidate::eta(), eta_, histogramBooked_, Benchmark::isInRange(), reco::Candidate::phi(), phi_, reco::Candidate::pt(), and pt_.
Referenced by fill(), PFJetMonitor::fill(), PFCandidateMonitor::fill(), PFCandidateManager::fill(), and PFMETMonitor::fillOne().
void CandidateBenchmark::setup | ( | void | ) |
book histograms
Definition at line 29 of file CandidateBenchmark.cc.
References Benchmark::book1D(), charge_, Benchmark::DQMOFFLINE, eta_, histogramBooked_, Benchmark::PhaseSpace::m, Benchmark::PhaseSpace::M, Benchmark::mode_, Benchmark::PhaseSpace::n, phi_, and pt_.
Referenced by CandidateBenchmarkAnalyzer::beginJob(), PFMETMonitor::setup(), PFJetMonitor::setup(), and PFCandidateMonitor::setup().
void CandidateBenchmark::setup | ( | const edm::ParameterSet & | parameterSet | ) |
book histograms
Definition at line 56 of file CandidateBenchmark.cc.
References Benchmark::book1D(), charge_, eta_, edm::ParameterSet::getParameter(), histogramBooked_, phi_, and pt_.
|
protected |
Definition at line 35 of file CandidateBenchmark.h.
Referenced by CandidateBenchmark(), fillOne(), and setup().
|
protected |
Definition at line 33 of file CandidateBenchmark.h.
Referenced by CandidateBenchmark(), fillOne(), and setup().
|
protected |
Definition at line 39 of file CandidateBenchmark.h.
Referenced by CandidateBenchmark(), fillOne(), and setup().
|
protected |
COLIN add this histo.
Definition at line 37 of file CandidateBenchmark.h.
Referenced by CandidateBenchmark().
|
protected |
Definition at line 34 of file CandidateBenchmark.h.
Referenced by CandidateBenchmark(), fillOne(), and setup().
|
protected |
Definition at line 32 of file CandidateBenchmark.h.
Referenced by CandidateBenchmark(), fillOne(), and setup().