#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 (DQMStore::IBooker &b) |
book histograms More... | |
~PFCandidateBenchmark () override | |
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 () noexcept(false) |
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 | |
typedef dqm::legacy::DQMStore | DQMStore |
enum | Mode { DEFAULT, DQMOFFLINE, VALIDATION } |
Protected Member Functions inherited from Benchmark | |
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... | |
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 13 of file PFCandidateBenchmark.h.
|
override |
Definition at line 12 of file PFCandidateBenchmark.cc.
void PFCandidateBenchmark::fill | ( | const reco::PFCandidateCollection & | pfCands | ) |
Definition at line 39 of file PFCandidateBenchmark.cc.
References mps_fire::i.
Referenced by PFCandidateBenchmarkAnalyzer::analyze().
void PFCandidateBenchmark::fillOne | ( | const reco::PFCandidate & | pfCand | ) |
fill histograms with a given particle
Definition at line 45 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 | ( | DQMStore::IBooker & | b | ) |
book histograms
Definition at line 14 of file PFCandidateBenchmark.cc.
References b, Benchmark::PhaseSpace::m, Benchmark::PhaseSpace::M, and Benchmark::PhaseSpace::n.
Referenced by PFCandidateBenchmarkAnalyzer::bookHistograms().
|
protected |
Definition at line 26 of file PFCandidateBenchmark.h.
|
protected |
Definition at line 29 of file PFCandidateBenchmark.h.
|
protected |
Definition at line 27 of file PFCandidateBenchmark.h.
|
protected |
Definition at line 28 of file PFCandidateBenchmark.h.
|
protected |
Definition at line 25 of file PFCandidateBenchmark.h.