#include <PFCandidateMonitor.h>
Public Member Functions | |
template<class T , class C > | |
void | fill (const T &candidateCollection, const C &matchedCandCollection, float &minVal, float &maxVal) |
fill histograms with all particle More... | |
void | fillOne (const reco::Candidate &cand) |
PFCandidateMonitor (float dRMax=0.3, bool matchCharge=true, Benchmark::Mode mode=Benchmark::DEFAULT) | |
void | setDirectory (TDirectory *dir) |
set directory (to use in ROOT) More... | |
void | setParameters (float dRMax, bool matchCharge, Benchmark::Mode mode, float ptmin, float ptmax, float etamin, float etamax, float phimin, float phimax, bool refHistoFlag) |
set the parameters locally More... | |
void | setParameters (const edm::ParameterSet ¶meterSet) |
set the parameters accessing them from ParameterSet More... | |
void | setup () |
book histograms More... | |
void | setup (const edm::ParameterSet ¶meterSet) |
book histograms More... | |
virtual | ~PFCandidateMonitor () |
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 () |
Protected Attributes | |
CandidateBenchmark | candBench_ |
bool | createReferenceHistos_ |
float | dRMax_ |
TH1F * | eta_ref_ |
bool | histogramBooked_ |
MatchCandidateBenchmark | matchCandBench_ |
bool | matchCharge_ |
TH1F * | phi_ref_ |
TH1F * | pt_ref_ |
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... | |
Definition at line 13 of file PFCandidateMonitor.h.
PFCandidateMonitor::PFCandidateMonitor | ( | float | dRMax = 0.3 , |
bool | matchCharge = true , |
||
Benchmark::Mode | mode = Benchmark::DEFAULT |
||
) |
Definition at line 15 of file PFCandidateMonitor.cc.
References createReferenceHistos_, eta_ref_, histogramBooked_, phi_ref_, pt_ref_, and Benchmark::setRange().
|
virtual |
Definition at line 34 of file PFCandidateMonitor.cc.
void PFCandidateMonitor::fill | ( | const T & | candidateCollection, |
const C & | matchedCandCollection, | ||
float & | minVal, | ||
float & | maxVal | ||
) |
fill histograms with all particle
Definition at line 65 of file PFCandidateMonitor.h.
References candBench_, createReferenceHistos_, dRMax_, reco::Candidate::eta(), CandidateBenchmark::fillOne(), MatchCandidateBenchmark::fillOne(), fillOne(), i, Benchmark::isInRange(), PFB::match(), matchCandBench_, matchCharge_, reco::Candidate::phi(), reco::Candidate::pt(), and findQualityFiles::size.
Referenced by PFCandidateDQMAnalyzer::analyze().
void PFCandidateMonitor::fillOne | ( | const reco::Candidate & | cand | ) |
Definition at line 136 of file PFCandidateMonitor.cc.
References createReferenceHistos_, reco::Candidate::eta(), eta_ref_, histogramBooked_, reco::Candidate::phi(), phi_ref_, reco::Candidate::pt(), and pt_ref_.
Referenced by fill().
|
virtual |
set directory (to use in ROOT)
Reimplemented from Benchmark.
Definition at line 127 of file PFCandidateMonitor.cc.
References candBench_, matchCandBench_, and Benchmark::setDirectory().
void PFCandidateMonitor::setParameters | ( | float | dRMax, |
bool | matchCharge, | ||
Benchmark::Mode | mode, | ||
float | ptmin, | ||
float | ptmax, | ||
float | etamin, | ||
float | etamax, | ||
float | phimin, | ||
float | phimax, | ||
bool | refHistoFlag | ||
) |
set the parameters locally
Definition at line 60 of file PFCandidateMonitor.cc.
References candBench_, createReferenceHistos_, dRMax_, matchCandBench_, matchCharge_, alignBH_cfg::mode, Benchmark::mode_, Benchmark::setParameters(), and Benchmark::setRange().
Referenced by PFCandidateDQMAnalyzer::PFCandidateDQMAnalyzer().
void PFCandidateMonitor::setParameters | ( | const edm::ParameterSet & | parameterSet | ) |
set the parameters accessing them from ParameterSet
Definition at line 39 of file PFCandidateMonitor.cc.
References candBench_, createReferenceHistos_, dRMax_, edm::ParameterSet::getParameter(), matchCandBench_, matchCharge_, Benchmark::mode_, Benchmark::setParameters(), and Benchmark::setRange().
void PFCandidateMonitor::setup | ( | void | ) |
book histograms
Definition at line 106 of file PFCandidateMonitor.cc.
References Benchmark::book1D(), candBench_, createReferenceHistos_, eta_ref_, histogramBooked_, Benchmark::PhaseSpace::m, Benchmark::PhaseSpace::M, matchCandBench_, Benchmark::PhaseSpace::n, phi_ref_, pt_ref_, CandidateBenchmark::setup(), and MatchCandidateBenchmark::setup().
Referenced by PFCandidateDQMAnalyzer::beginJob().
void PFCandidateMonitor::setup | ( | const edm::ParameterSet & | parameterSet | ) |
book histograms
Definition at line 76 of file PFCandidateMonitor.cc.
References Benchmark::book1D(), candBench_, createReferenceHistos_, eta_ref_, edm::ParameterSet::getParameter(), histogramBooked_, matchCandBench_, phi_ref_, pt_ref_, CandidateBenchmark::setup(), and MatchCandidateBenchmark::setup().
|
protected |
Definition at line 49 of file PFCandidateMonitor.h.
Referenced by fill(), setDirectory(), setParameters(), and setup().
|
protected |
Definition at line 58 of file PFCandidateMonitor.h.
Referenced by fill(), fillOne(), PFCandidateMonitor(), setParameters(), and setup().
|
protected |
Definition at line 56 of file PFCandidateMonitor.h.
Referenced by fill(), and setParameters().
|
protected |
Definition at line 53 of file PFCandidateMonitor.h.
Referenced by fillOne(), PFCandidateMonitor(), and setup().
|
protected |
Definition at line 59 of file PFCandidateMonitor.h.
Referenced by fillOne(), PFCandidateMonitor(), and setup().
|
protected |
Definition at line 50 of file PFCandidateMonitor.h.
Referenced by fill(), setDirectory(), setParameters(), and setup().
|
protected |
Definition at line 57 of file PFCandidateMonitor.h.
Referenced by fill(), and setParameters().
|
protected |
Definition at line 54 of file PFCandidateMonitor.h.
Referenced by fillOne(), PFCandidateMonitor(), and setup().
|
protected |
Definition at line 52 of file PFCandidateMonitor.h.
Referenced by fillOne(), PFCandidateMonitor(), and setup().