#include <PFCandidateBenchmark.h>
Public Member Functions | |
void | fill (const reco::PFCandidateCollection &pfCands) |
void | fillOne (const reco::PFCandidate &pfCand) |
fill histograms with a given particle More... | |
PFCandidateBenchmark (Mode mode) | |
void | setup () |
book histograms More... | |
virtual | ~PFCandidateBenchmark () |
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 * | ecalEnergy_ |
TH1F * | elementsInBlocksSize_ |
TH1F * | hcalEnergy_ |
TH1F * | mva_e_pi_ |
TH1F * | particleId_ |
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 specific PFCandidate quantities the name of the histograms corresponds to the name of the PFCandidate accessors.
Definition at line 11 of file PFCandidateBenchmark.h.
|
inline |
Definition at line 15 of file PFCandidateBenchmark.h.
|
virtual |
Definition at line 18 of file PFCandidateBenchmark.cc.
void PFCandidateBenchmark::fill | ( | const reco::PFCandidateCollection & | pfCands | ) |
Definition at line 50 of file PFCandidateBenchmark.cc.
References i.
Referenced by PFCandidateBenchmarkAnalyzer::analyze().
void PFCandidateBenchmark::fillOne | ( | const reco::PFCandidate & | pfCand | ) |
fill histograms with a given particle
Definition at line 58 of file PFCandidateBenchmark.cc.
References reco::PFCandidate::ecalEnergy(), reco::PFCandidate::elementsInBlocks(), reco::LeafCandidate::eta(), reco::PFCandidate::hcalEnergy(), reco::PFCandidate::mva_e_pi(), reco::PFCandidate::particleId(), reco::LeafCandidate::phi(), and reco::LeafCandidate::pt().
Referenced by PFCandidateManager::fill().
void PFCandidateBenchmark::setup | ( | void | ) |
book histograms
Definition at line 21 of file PFCandidateBenchmark.cc.
References Benchmark::PhaseSpace::m, Benchmark::PhaseSpace::M, and Benchmark::PhaseSpace::n.
Referenced by PFCandidateBenchmarkAnalyzer::beginJob().
|
protected |
Definition at line 29 of file PFCandidateBenchmark.h.
|
protected |
Definition at line 32 of file PFCandidateBenchmark.h.
|
protected |
Definition at line 30 of file PFCandidateBenchmark.h.
|
protected |
Definition at line 31 of file PFCandidateBenchmark.h.
|
protected |
Definition at line 28 of file PFCandidateBenchmark.h.