#include <PFCandidateMonitor.h>
Public Member Functions | |
template<class T , class C > | |
void | fill (const T &candidateCollection, const C &matchedCandCollection, float &minVal, float &maxVal, const edm::ParameterSet ¶meterSet) |
fill histograms with all particle More... | |
template<class T , class C , class M > | |
void | fill (const T &candidateCollection, const C &matchedCandCollection, float &minVal, float &maxVal, const edm::ParameterSet ¶meterSet, const M &muonMatchedCandCollection) |
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 (DQMStore::IBooker &b) |
book histograms More... | |
void | setup (DQMStore::IBooker &b, const edm::ParameterSet ¶meterSet) |
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 | createEfficiencyHistos_ |
bool | createReferenceHistos_ |
TH1F * | deltaR_ |
float | dRMax_ |
TH1F * | eta_gen_ |
TH1F * | eta_ref_ |
bool | histogramBooked_ |
MatchCandidateBenchmark | matchCandBench_ |
bool | matchCharge_ |
bool | matching_done_ |
TH1F * | phi_gen_ |
TH1F * | phi_ref_ |
TH1F * | pt_gen_ |
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 } |
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 histogram, either with DQM or plain root depending if DQM_ has been initialized in a child analyzer or not. More... | |
Definition at line 16 of file PFCandidateMonitor.h.
PFCandidateMonitor::PFCandidateMonitor | ( | float | dRMax = 0.3 , |
bool | matchCharge = true , |
||
Benchmark::Mode | mode = Benchmark::DEFAULT |
||
) |
Definition at line 16 of file PFCandidateMonitor.cc.
|
virtual |
Definition at line 43 of file PFCandidateMonitor.cc.
void PFCandidateMonitor::fill | ( | const T & | candidateCollection, |
const C & | matchedCandCollection, | ||
float & | minVal, | ||
float & | maxVal, | ||
const edm::ParameterSet & | parameterSet | ||
) |
fill histograms with all particle
Definition at line 78 of file PFCandidateMonitor.h.
Referenced by PFCandidateDQMAnalyzer::analyze(), and PFMuonDQMAnalyzer::analyze().
void PFCandidateMonitor::fill | ( | const T & | candidateCollection, |
const C & | matchedCandCollection, | ||
float & | minVal, | ||
float & | maxVal, | ||
const edm::ParameterSet & | parameterSet, | ||
const M & | muonMatchedCandCollection | ||
) |
Definition at line 137 of file PFCandidateMonitor.h.
void PFCandidateMonitor::fillOne | ( | const reco::Candidate & | cand | ) |
Definition at line 192 of file PFCandidateMonitor.cc.
|
virtual |
set directory (to use in ROOT)
Reimplemented from Benchmark.
Definition at line 181 of file PFCandidateMonitor.cc.
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 72 of file PFCandidateMonitor.cc.
Referenced by PFCandidateDQMAnalyzer::PFCandidateDQMAnalyzer(), and PFMuonDQMAnalyzer::PFMuonDQMAnalyzer().
void PFCandidateMonitor::setParameters | ( | const edm::ParameterSet & | parameterSet | ) |
set the parameters accessing them from ParameterSet
Definition at line 49 of file PFCandidateMonitor.cc.
void PFCandidateMonitor::setup | ( | DQMStore::IBooker & | b | ) |
book histograms
Definition at line 149 of file PFCandidateMonitor.cc.
Referenced by PFCandidateDQMAnalyzer::bookHistograms(), and PFMuonDQMAnalyzer::bookHistograms().
void PFCandidateMonitor::setup | ( | DQMStore::IBooker & | b, |
const edm::ParameterSet & | parameterSet | ||
) |
Definition at line 90 of file PFCandidateMonitor.cc.
|
protected |
Definition at line 55 of file PFCandidateMonitor.h.
|
protected |
Definition at line 73 of file PFCandidateMonitor.h.
|
protected |
Definition at line 69 of file PFCandidateMonitor.h.
|
protected |
Definition at line 66 of file PFCandidateMonitor.h.
|
protected |
Definition at line 67 of file PFCandidateMonitor.h.
|
protected |
Definition at line 59 of file PFCandidateMonitor.h.
|
protected |
Definition at line 63 of file PFCandidateMonitor.h.
|
protected |
Definition at line 70 of file PFCandidateMonitor.h.
|
protected |
Definition at line 56 of file PFCandidateMonitor.h.
|
protected |
Definition at line 68 of file PFCandidateMonitor.h.
|
protected |
Definition at line 72 of file PFCandidateMonitor.h.
|
protected |
Definition at line 60 of file PFCandidateMonitor.h.
|
protected |
Definition at line 64 of file PFCandidateMonitor.h.
|
protected |
Definition at line 58 of file PFCandidateMonitor.h.
|
protected |
Definition at line 62 of file PFCandidateMonitor.h.