A benchmark managing several benchmarks. More...
#include <PFCandidateManager.h>
Public Member Functions | |
template<class C > | |
void | fill (const reco::PFCandidateCollection &candCollection, const C &matchedCandCollection) |
fill histograms with all particle More... | |
PFCandidateManager (float dRMax=0.3, bool matchCharge=true, Benchmark::Mode mode=Benchmark::DEFAULT) | |
void | setDirectory (TDirectory *dir) override |
set directory (to use in ROOT) More... | |
void | setParameters (float dRMax=0.3, bool matchCharge=true, Benchmark::Mode mode=Benchmark::DEFAULT) |
set the benchmark parameters More... | |
void | setup (DQMStore::IBooker &b) |
book histograms More... | |
~PFCandidateManager () override | |
Public Member Functions inherited from Benchmark | |
Benchmark (Mode mode=DEFAULT) | |
bool | isInRange (float pt, float eta, float phi) const |
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 ()(false) |
Protected Attributes | |
CandidateBenchmark | candBench_ |
float | dRMax_ |
MatchCandidateBenchmark | matchCandBench_ |
bool | matchCharge_ |
PFCandidateBenchmark | pfCandBench_ |
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... | |
A benchmark managing several benchmarks.
The benchmarks are filled only for the PFCandidates matched to a candidate in the matching collection within the limits in delta R. The parameters for this benchmark are:
Definition at line 26 of file PFCandidateManager.h.
|
inline |
Definition at line 28 of file PFCandidateManager.h.
References b, gen::C, Benchmark::DEFAULT, DeadROC_duringRun::dir, metBenchmark_cfi::dRMax, fill(), pfCandidateManager_cfi::matchCharge, ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, setDirectory(), setParameters(), setup(), and ~PFCandidateManager().
|
override |
void PFCandidateManager::fill | ( | const reco::PFCandidateCollection & | candCollection, |
const C & | matchedCandCollection | ||
) |
fill histograms with all particle
Definition at line 63 of file PFCandidateManager.h.
References candBench_, dRMax_, reco::LeafCandidate::eta(), PFCandidateBenchmark::fillOne(), CandidateBenchmark::fillOne(), MatchCandidateBenchmark::fillOne(), mps_fire::i, Benchmark::isInRange(), PFB::match(), matchCandBench_, matchCharge_, pfCandBench_, reco::LeafCandidate::phi(), and reco::LeafCandidate::pt().
Referenced by PFCandidateManagerAnalyzer::analyze(), and PFCandidateManager().
|
overridevirtual |
set directory (to use in ROOT)
Reimplemented from Benchmark.
Definition at line 16 of file PFCandidateManager.cc.
References Benchmark::setDirectory().
Referenced by PFCandidateManager().
void PFCandidateManager::setParameters | ( | float | dRMax = 0.3 , |
bool | matchCharge = true , |
||
Benchmark::Mode | mode = Benchmark::DEFAULT |
||
) |
set the benchmark parameters
Definition at line 24 of file PFCandidateManager.cc.
References metBenchmark_cfi::dRMax, pfCandidateManager_cfi::matchCharge, and ALCARECOPromptCalibProdSiPixelAli0T_cff::mode.
Referenced by PFCandidateManager().
void PFCandidateManager::setup | ( | DQMStore::IBooker & | b | ) |
book histograms
Definition at line 34 of file PFCandidateManager.cc.
Referenced by PFCandidateManagerAnalyzer::bookHistograms(), and PFCandidateManager().
|
protected |
Definition at line 52 of file PFCandidateManager.h.
Referenced by fill().
|
protected |
Definition at line 56 of file PFCandidateManager.h.
Referenced by fill().
|
protected |
Definition at line 54 of file PFCandidateManager.h.
Referenced by fill().
|
protected |
Definition at line 57 of file PFCandidateManager.h.
Referenced by fill().
|
protected |
Definition at line 53 of file PFCandidateManager.h.
Referenced by fill().