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 (DQMStore::IBooker &b) |
book histograms More... | |
void | setup (DQMStore::IBooker &b, const edm::ParameterSet ¶meterSet) |
~CandidateBenchmark () 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 * | 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 | |
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 Candidate quantities.
Definition at line 10 of file CandidateBenchmark.h.
CandidateBenchmark::CandidateBenchmark | ( | Mode | mode | ) |
Definition at line 12 of file CandidateBenchmark.cc.
References charge_, eta_, histogramBooked_, pdgId_, phi_, and pt_.
|
override |
Definition at line 22 of file CandidateBenchmark.cc.
void CandidateBenchmark::fill | ( | const C & | candidates | ) |
Definition at line 37 of file CandidateBenchmark.h.
References fillOne(), and mps_fire::i.
Referenced by CandidateBenchmarkAnalyzer::analyze().
void CandidateBenchmark::fillOne | ( | const reco::Candidate & | candidate | ) |
fill histograms with a given particle
Definition at line 90 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 | ( | DQMStore::IBooker & | b | ) |
book histograms
Definition at line 24 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::bookHistograms(), PFJetMonitor::setup(), PFMETMonitor::setup(), and PFCandidateMonitor::setup().
void CandidateBenchmark::setup | ( | DQMStore::IBooker & | b, |
const edm::ParameterSet & | parameterSet | ||
) |
Definition at line 47 of file CandidateBenchmark.cc.
References Benchmark::book1D(), charge_, eta_, edm::ParameterSet::getParameter(), histogramBooked_, phi_, and pt_.
|
protected |
Definition at line 29 of file CandidateBenchmark.h.
Referenced by CandidateBenchmark(), fillOne(), and setup().
|
protected |
Definition at line 27 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 |
COLIN add this histo.
Definition at line 31 of file CandidateBenchmark.h.
Referenced by CandidateBenchmark().
|
protected |
Definition at line 28 of file CandidateBenchmark.h.
Referenced by CandidateBenchmark(), fillOne(), and setup().
|
protected |
Definition at line 26 of file CandidateBenchmark.h.
Referenced by CandidateBenchmark(), fillOne(), and setup().