#include <PFJetMonitor.h>
Public Member Functions | |
template<class T , class C > | |
void | fill (const T &jetCollection, const C &matchedJetCollection, float &minVal, float &maxVal) |
fill histograms with all particle More... | |
template<class T , class C > | |
void | fill (const T &candidateCollection, const C &matchedCandCollection, float &minVal, float &maxVal, float &jetpT, const edm::ParameterSet ¶meterSet) |
void | fillOne (const reco::Jet &jet, const reco::Jet &matchedJet) |
PFJetMonitor (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, bool matchCharge, Benchmark::Mode mode, float ptmin, float ptmax, float etamin, float etamax, float phimin, float phimax, bool fracHistoFlag=true) |
set the parameters locally More... | |
void | setParameters (float dRMax, bool onlyTwoJets, bool matchCharge, Benchmark::Mode mode, float ptmin, float ptmax, float etamin, float etamax, float phimin, float phimax, bool fracHistoFlag=true) |
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) |
~PFJetMonitor () 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 () |
virtual | ~Benchmark ()(false) |
Protected Attributes | |
CandidateBenchmark | candBench_ |
bool | createPFractionHistos_ |
TH2F * | delta_frac_VS_frac_charged_hadron_ |
TH2F * | delta_frac_VS_frac_electron_ |
TH2F * | delta_frac_VS_frac_muon_ |
TH2F * | delta_frac_VS_frac_neutral_hadron_ |
TH2F * | delta_frac_VS_frac_photon_ |
TH1F * | deltaR_ |
float | dRMax_ |
bool | histogramBooked_ |
MatchCandidateBenchmark | matchCandBench_ |
bool | matchCharge_ |
bool | onlyTwoJets_ |
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 through IBooker or plain root 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 through IBooker or plain root 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 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, either through IBooker or plain root 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... | |
Definition at line 15 of file PFJetMonitor.h.
PFJetMonitor::PFJetMonitor | ( | float | dRMax = 0.3 , |
bool | matchCharge = true , |
||
Benchmark::Mode | mode = Benchmark::DEFAULT |
||
) |
Definition at line 15 of file PFJetMonitor.cc.
References createPFractionHistos_, delta_frac_VS_frac_charged_hadron_, delta_frac_VS_frac_electron_, delta_frac_VS_frac_muon_, delta_frac_VS_frac_neutral_hadron_, delta_frac_VS_frac_photon_, deltaR_, histogramBooked_, and Benchmark::setRange().
|
override |
Definition at line 34 of file PFJetMonitor.cc.
void PFJetMonitor::fill | ( | const T & | jetCollection, |
const C & | matchedJetCollection, | ||
float & | minVal, | ||
float & | maxVal | ||
) |
fill histograms with all particle
Definition at line 89 of file PFJetMonitor.h.
References candBench_, createPFractionHistos_, dRMax_, reco::Candidate::eta(), reco::LeafCandidate::eta(), CandidateBenchmark::fillOne(), MatchCandidateBenchmark::fillOne(), fillOne(), histogramBooked_, mps_fire::i, Benchmark::isInRange(), metsig::jet, PFB::match(), matchCandBench_, matchCharge_, reco::Candidate::phi(), reco::LeafCandidate::phi(), reco::Candidate::pt(), reco::LeafCandidate::pt(), and findQualityFiles::size.
Referenced by PFJetDQMAnalyzer::analyze().
void PFJetMonitor::fill | ( | const T & | candidateCollection, |
const C & | matchedCandCollection, | ||
float & | minVal, | ||
float & | maxVal, | ||
float & | jetpT, | ||
const edm::ParameterSet & | parameterSet | ||
) |
Definition at line 122 of file PFJetMonitor.h.
References candBench_, createPFractionHistos_, reco::deltaR(), deltaR_, dRMax_, reco::Candidate::eta(), reco::LeafCandidate::eta(), CandidateBenchmark::fillOne(), MatchCandidateBenchmark::fillOne(), fillOne(), histogramBooked_, mps_fire::i, Benchmark::isInRange(), metsig::jet, PFB::match(), matchCandBench_, matchCharge_, onlyTwoJets_, reco::Candidate::phi(), reco::LeafCandidate::phi(), EnergyCorrector::pt, reco::Candidate::pt(), and reco::LeafCandidate::pt().
Definition at line 201 of file PFJetMonitor.cc.
References reco::PFJet::chargedHadronMultiplicity(), createPFractionHistos_, delta_frac_VS_frac_charged_hadron_, delta_frac_VS_frac_electron_, delta_frac_VS_frac_muon_, delta_frac_VS_frac_neutral_hadron_, delta_frac_VS_frac_photon_, reco::PFJet::electronMultiplicity(), metsig::jet, reco::PFJet::muonMultiplicity(), reco::PFJet::neutralHadronMultiplicity(), and reco::PFJet::photonMultiplicity().
Referenced by fill().
|
overridevirtual |
set directory (to use in ROOT)
Reimplemented from Benchmark.
Definition at line 191 of file PFJetMonitor.cc.
References candBench_, matchCandBench_, and Benchmark::setDirectory().
void PFJetMonitor::setParameters | ( | float | dRMax, |
bool | matchCharge, | ||
Benchmark::Mode | mode, | ||
float | ptmin, | ||
float | ptmax, | ||
float | etamin, | ||
float | etamax, | ||
float | phimin, | ||
float | phimax, | ||
bool | fracHistoFlag = true |
||
) |
set the parameters locally
Definition at line 60 of file PFJetMonitor.cc.
References candBench_, createPFractionHistos_, allElectronIsolations_cfi::dRMax, dRMax_, matchCandBench_, matchCharge_, ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, Benchmark::mode_, Benchmark::setParameters(), and Benchmark::setRange().
Referenced by PFJetDQMAnalyzer::PFJetDQMAnalyzer().
void PFJetMonitor::setParameters | ( | float | dRMax, |
bool | onlyTwoJets, | ||
bool | matchCharge, | ||
Benchmark::Mode | mode, | ||
float | ptmin, | ||
float | ptmax, | ||
float | etamin, | ||
float | etamax, | ||
float | phimin, | ||
float | phimax, | ||
bool | fracHistoFlag = true |
||
) |
Definition at line 81 of file PFJetMonitor.cc.
References candBench_, createPFractionHistos_, allElectronIsolations_cfi::dRMax, dRMax_, matchCandBench_, matchCharge_, ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, Benchmark::mode_, onlyTwoJets, onlyTwoJets_, Benchmark::setParameters(), and Benchmark::setRange().
void PFJetMonitor::setParameters | ( | const edm::ParameterSet & | parameterSet | ) |
set the parameters accessing them from ParameterSet
Definition at line 39 of file PFJetMonitor.cc.
References candBench_, createPFractionHistos_, dRMax_, edm::ParameterSet::getParameter(), matchCandBench_, matchCharge_, Benchmark::mode_, onlyTwoJets_, Benchmark::setParameters(), and Benchmark::setRange().
void PFJetMonitor::setup | ( | DQMStore::IBooker & | b | ) |
book histograms
Definition at line 153 of file PFJetMonitor.cc.
References Benchmark::book2D(), candBench_, createPFractionHistos_, delta_frac_VS_frac_charged_hadron_, delta_frac_VS_frac_electron_, delta_frac_VS_frac_muon_, delta_frac_VS_frac_neutral_hadron_, delta_frac_VS_frac_photon_, histogramBooked_, matchCandBench_, CandidateBenchmark::setup(), and MatchCandidateBenchmark::setup().
Referenced by PFJetDQMAnalyzer::bookHistograms().
void PFJetMonitor::setup | ( | DQMStore::IBooker & | b, |
const edm::ParameterSet & | parameterSet | ||
) |
Definition at line 107 of file PFJetMonitor.cc.
References Benchmark::book1D(), Benchmark::book2D(), candBench_, createPFractionHistos_, delta_frac_VS_frac_charged_hadron_, delta_frac_VS_frac_electron_, delta_frac_VS_frac_muon_, delta_frac_VS_frac_neutral_hadron_, delta_frac_VS_frac_photon_, deltaR_, edm::ParameterSet::getParameter(), histogramBooked_, matchCandBench_, CandidateBenchmark::setup(), and MatchCandidateBenchmark::setup().
|
protected |
Definition at line 70 of file PFJetMonitor.h.
Referenced by fill(), setDirectory(), setParameters(), and setup().
|
protected |
Definition at line 83 of file PFJetMonitor.h.
Referenced by fill(), fillOne(), PFJetMonitor(), setParameters(), and setup().
|
protected |
Definition at line 76 of file PFJetMonitor.h.
Referenced by fillOne(), PFJetMonitor(), and setup().
|
protected |
Definition at line 75 of file PFJetMonitor.h.
Referenced by fillOne(), PFJetMonitor(), and setup().
|
protected |
Definition at line 73 of file PFJetMonitor.h.
Referenced by fillOne(), PFJetMonitor(), and setup().
|
protected |
Definition at line 77 of file PFJetMonitor.h.
Referenced by fillOne(), PFJetMonitor(), and setup().
|
protected |
Definition at line 74 of file PFJetMonitor.h.
Referenced by fillOne(), PFJetMonitor(), and setup().
|
protected |
Definition at line 79 of file PFJetMonitor.h.
Referenced by fill(), PFJetMonitor(), and setup().
|
protected |
Definition at line 80 of file PFJetMonitor.h.
Referenced by fill(), and setParameters().
|
protected |
Definition at line 84 of file PFJetMonitor.h.
Referenced by fill(), PFJetMonitor(), and setup().
|
protected |
Definition at line 71 of file PFJetMonitor.h.
Referenced by fill(), setDirectory(), setParameters(), and setup().
|
protected |
Definition at line 82 of file PFJetMonitor.h.
Referenced by fill(), and setParameters().
|
protected |
Definition at line 81 of file PFJetMonitor.h.
Referenced by fill(), and setParameters().