To plot Candidate quantities. More...
#include <MatchCandidateBenchmark.h>
Public Member Functions | |
void | fillOne (const reco::Candidate &candidate, const reco::Candidate &matchedCandidate) |
fill histograms with a given particle More... | |
void | fillOne (const reco::Candidate &candidate, const reco::Candidate &matchedCandidate, const edm::ParameterSet ¶meterSet) |
MatchCandidateBenchmark (Mode mode) | |
void | setup (DQMStore::IBooker &b) |
book histograms More... | |
void | setup (DQMStore::IBooker &b, const edm::ParameterSet ¶meterSet) |
~MatchCandidateBenchmark () 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 | |
TH2F * | BRdelta_et_Over_et_VS_et_ |
std::vector< TH1F * > | BRpTRes_ |
TH2F * | delta_et_Over_et_VS_et_ |
TH2F * | delta_et_VS_et_ |
TH2F * | delta_eta_VS_et_ |
TH2F * | delta_phi_VS_et_ |
TH2F * | ERdelta_et_Over_et_VS_et_ |
std::vector< TH1F * > | ERpTRes_ |
double | eta_max_barrel_ |
double | eta_max_endcap_ |
double | eta_min_barrel_ |
double | eta_min_endcap_ |
bool | histogramBooked_ |
std::vector< float > | ptBins_ |
std::vector< TH1F * > | pTRes_ |
Protected Attributes inherited from Benchmark | |
TDirectory * | dir_ |
float | etaMax_ |
float | etaMin_ |
Mode | mode_ |
float | phiMax_ |
float | phiMin_ |
float | ptMax_ |
float | ptMin_ |
Private Member Functions | |
void | computePtBins (const edm::ParameterSet &, const edm::ParameterSet &) |
bool | inBarrelRange (double value) |
bool | inEndcapRange (double value) |
bool | inEtaRange (double, bool) |
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 *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... | |
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... | |
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... | |
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... | |
To plot Candidate quantities.
Definition at line 13 of file MatchCandidateBenchmark.h.
MatchCandidateBenchmark::MatchCandidateBenchmark | ( | Mode | mode | ) |
Definition at line 13 of file MatchCandidateBenchmark.cc.
References BRdelta_et_Over_et_VS_et_, delta_et_Over_et_VS_et_, delta_et_VS_et_, delta_eta_VS_et_, delta_phi_VS_et_, ERdelta_et_Over_et_VS_et_, and histogramBooked_.
|
override |
Definition at line 26 of file MatchCandidateBenchmark.cc.
|
private |
Definition at line 102 of file MatchCandidateBenchmark.cc.
References edm::ParameterSet::getParameter(), mps_fire::i, and ptBins_.
Referenced by setup().
void MatchCandidateBenchmark::fillOne | ( | const reco::Candidate & | candidate, |
const reco::Candidate & | matchedCandidate | ||
) |
fill histograms with a given particle
Definition at line 228 of file MatchCandidateBenchmark.cc.
References BRdelta_et_Over_et_VS_et_, delta_et_Over_et_VS_et_, delta_et_VS_et_, delta_eta_VS_et_, delta_phi_VS_et_, ERdelta_et_Over_et_VS_et_, reco::Candidate::eta(), histogramBooked_, Benchmark::isInRange(), reco::Candidate::phi(), and reco::Candidate::pt().
Referenced by PFJetMonitor::fill(), PFCandidateMonitor::fill(), PFCandidateManager::fill(), and PFMETMonitor::fillOne().
void MatchCandidateBenchmark::fillOne | ( | const reco::Candidate & | candidate, |
const reco::Candidate & | matchedCandidate, | ||
const edm::ParameterSet & | parameterSet | ||
) |
Definition at line 257 of file MatchCandidateBenchmark.cc.
References BRdelta_et_Over_et_VS_et_, BRpTRes_, delta_et_Over_et_VS_et_, delta_et_VS_et_, delta_eta_VS_et_, delta_phi_VS_et_, ERdelta_et_Over_et_VS_et_, ERpTRes_, reco::Candidate::eta(), edm::ParameterSet::getParameter(), histogramBooked_, mps_fire::i, inBarrelRange(), inEndcapRange(), Benchmark::isInRange(), edm::parameterSet(), reco::Candidate::phi(), reco::Candidate::pt(), ptBins_, and pTRes_.
|
inlineprivate |
Definition at line 52 of file MatchCandidateBenchmark.h.
References inEtaRange().
Referenced by fillOne().
|
inlineprivate |
Definition at line 53 of file MatchCandidateBenchmark.h.
References inEtaRange().
Referenced by fillOne().
|
private |
Definition at line 250 of file MatchCandidateBenchmark.cc.
References funct::abs(), eta_max_barrel_, eta_max_endcap_, eta_min_barrel_, and eta_min_endcap_.
Referenced by inBarrelRange(), and inEndcapRange().
void MatchCandidateBenchmark::setup | ( | DQMStore::IBooker & | b | ) |
book histograms
Definition at line 28 of file MatchCandidateBenchmark.cc.
References b, Benchmark::book2D(), BRdelta_et_Over_et_VS_et_, BRpTRes_, delta_et_Over_et_VS_et_, delta_et_VS_et_, delta_eta_VS_et_, delta_phi_VS_et_, Benchmark::DQMOFFLINE, ERdelta_et_Over_et_VS_et_, ERpTRes_, histogramBooked_, mps_fire::i, Benchmark::PhaseSpace::m, Benchmark::PhaseSpace::M, Benchmark::mode_, Benchmark::PhaseSpace::n, L1EGammaCrystalsEmulatorProducer_cfi::ptBins, pTRes_, findQualityFiles::size, and Benchmark::VALIDATION.
Referenced by PFJetMonitor::setup(), PFMETMonitor::setup(), and PFCandidateMonitor::setup().
void MatchCandidateBenchmark::setup | ( | DQMStore::IBooker & | b, |
const edm::ParameterSet & | parameterSet | ||
) |
Definition at line 116 of file MatchCandidateBenchmark.cc.
References b, Benchmark::book1D(), Benchmark::book2D(), BRdelta_et_Over_et_VS_et_, BRpTRes_, computePtBins(), delta_et_Over_et_VS_et_, delta_et_VS_et_, delta_eta_VS_et_, delta_phi_VS_et_, ERdelta_et_Over_et_VS_et_, ERpTRes_, eta_max_barrel_, eta_max_endcap_, eta_min_barrel_, eta_min_endcap_, edm::ParameterSet::getParameter(), histogramBooked_, mps_fire::i, edm::parameterSet(), ptBins_, and pTRes_.
|
protected |
Definition at line 36 of file MatchCandidateBenchmark.h.
Referenced by fillOne(), MatchCandidateBenchmark(), and setup().
|
protected |
Definition at line 39 of file MatchCandidateBenchmark.h.
|
protected |
Definition at line 31 of file MatchCandidateBenchmark.h.
Referenced by fillOne(), MatchCandidateBenchmark(), and setup().
|
protected |
Definition at line 32 of file MatchCandidateBenchmark.h.
Referenced by fillOne(), MatchCandidateBenchmark(), and setup().
|
protected |
Definition at line 33 of file MatchCandidateBenchmark.h.
Referenced by fillOne(), MatchCandidateBenchmark(), and setup().
|
protected |
Definition at line 34 of file MatchCandidateBenchmark.h.
Referenced by fillOne(), MatchCandidateBenchmark(), and setup().
|
protected |
Definition at line 37 of file MatchCandidateBenchmark.h.
Referenced by fillOne(), MatchCandidateBenchmark(), and setup().
|
protected |
Definition at line 40 of file MatchCandidateBenchmark.h.
|
protected |
Definition at line 45 of file MatchCandidateBenchmark.h.
Referenced by inEtaRange(), and setup().
|
protected |
Definition at line 47 of file MatchCandidateBenchmark.h.
Referenced by inEtaRange(), and setup().
|
protected |
Definition at line 44 of file MatchCandidateBenchmark.h.
Referenced by inEtaRange(), and setup().
|
protected |
Definition at line 46 of file MatchCandidateBenchmark.h.
Referenced by inEtaRange(), and setup().
|
protected |
Definition at line 43 of file MatchCandidateBenchmark.h.
Referenced by fillOne(), MatchCandidateBenchmark(), and setup().
|
protected |
Definition at line 41 of file MatchCandidateBenchmark.h.
Referenced by computePtBins(), fillOne(), and setup().
|
protected |
Definition at line 38 of file MatchCandidateBenchmark.h.