#include <GenericBenchmark.h>
Public Types | |
typedef dqm::legacy::DQMStore | DQMStore |
typedef dqm::legacy::MonitorElement | MonitorElement |
Public Member Functions | |
template<typename C > | |
void | fill (const C *RecoCollection, const C *GenCollection, bool startFromGen=false, bool PlotAgainstReco=true, bool onlyTwoJets=false, double recPt_cut=-1., double minEta_cut=-1., double maxEta_cut=-1., double deltaR_cut=-1.) |
GenericBenchmark () | |
void | setfile (TFile *file) |
void | setup (DQMStore *DQM=nullptr, bool PlotAgainstReco_=true, float minDeltaEt=-100., float maxDeltaEt=50., float minDeltaPhi=-0.5, float maxDeltaPhi=0.5, bool doMetPlots=false) |
void | write (std::string Filename) |
virtual | ~GenericBenchmark () noexcept(false) |
Protected Attributes | |
PFBenchmarkAlgo * | algo_ |
DQMStore * | dbe_ |
Private Member Functions | |
bool | accepted (const reco::Candidate *particle, double ptCut, double minEtaCut, double maxEtaCut) const |
void | fillHistos (const reco::Candidate *genParticle, const reco::Candidate *recParticle, double deltaR_cut, bool plotAgainstReco) |
Private Attributes | |
bool | doMetPlots_ |
TFile * | file_ |
TH1F * | hDeltaEt |
TH1F * | hDeltaEta |
TH2F * | hDeltaEtavsEt |
TH2F * | hDeltaEtavsEta |
TH2F * | hDeltaEtOverEtvsDeltaR |
TH2F * | hDeltaEtOverEtvsEt |
TH2F * | hDeltaEtOverEtvsEta |
TH2F * | hDeltaEtOverEtvsPhi |
TH2F * | hDeltaEtvsDeltaR |
TH2F * | hDeltaEtvsEt |
TH2F * | hDeltaEtvsEta |
TH2F * | hDeltaEtvsPhi |
TH1F * | hDeltaEx |
TH1F * | hDeltaEy |
TH2F * | hDeltaMexvsSet |
TH1F * | hDeltaPhi |
TH2F * | hDeltaPhivsEt |
TH2F * | hDeltaPhivsEta |
TH1F * | hDeltaR |
TH2F * | hDeltaRvsEt |
TH2F * | hDeltaRvsEta |
TH2F * | hDeltaSetOverSetvsSet |
TH2F * | hDeltaSetvsSet |
TH1F * | hEtaGen |
TH1F * | hEtaSeen |
TH1F * | hEtGen |
TH1F * | hEtRec |
TH2F * | hEtRecOverTrueEtvsTrueEt |
TH2F * | hEtRecvsEt |
TH1F * | hEtSeen |
TH2F * | hEtvsEtaGen |
TH2F * | hEtvsEtaSeen |
TH2F * | hEtvsPhiGen |
TH2F * | hEtvsPhiSeen |
TH1F * | hExRec |
TH1F * | hEyRec |
TH1F * | hNGen |
TH1F * | hNRec |
TH1F * | hPhiGen |
TH1F * | hPhiRec |
TH1F * | hPhiSeen |
TH2F * | hRecSetOverTrueSetvsTrueSet |
TH2F * | hRecSetvsTrueSet |
TH1F * | hSumEt |
TH2F * | hTrueMexvsTrueSet |
TH1F * | hTrueSumEt |
BenchmarkTree * | tree_ |
Definition at line 21 of file GenericBenchmark.h.
Definition at line 23 of file GenericBenchmark.h.
Definition at line 24 of file GenericBenchmark.h.
GenericBenchmark::GenericBenchmark | ( | ) |
Definition at line 33 of file GenericBenchmark.cc.
|
virtualnoexcept |
Definition at line 35 of file GenericBenchmark.cc.
|
private |
Definition at line 238 of file GenericBenchmark.cc.
References reco::Candidate::eta(), HLT_2024v14_cff::maxEtaCut, HLT_2024v14_cff::minEtaCut, reco::Candidate::pt(), and jetfilter_cfi::ptCut.
Referenced by fill().
void GenericBenchmark::fill | ( | const C * | RecoCollection, |
const C * | GenCollection, | ||
bool | startFromGen = false , |
||
bool | PlotAgainstReco = true , |
||
bool | onlyTwoJets = false , |
||
double | recPt_cut = -1. , |
||
double | minEta_cut = -1. , |
||
double | maxEta_cut = -1. , |
||
double | deltaR_cut = -1. |
||
) |
Definition at line 129 of file GenericBenchmark.h.
References accepted(), algo_, cms::cuda::assert(), PFBenchmarkAlgo::deltaR(), PbPb_ZMuSkimMuonDPG_cff::deltaR, reco::Candidate::et(), reco::Candidate::eta(), fillHistos(), RecoTauValidationMiniAOD_cfi::GenCollection, hEtaGen, hEtaSeen, hEtGen, hEtRec, hEtRecOverTrueEtvsTrueEt, hEtRecvsEt, hEtSeen, hEtvsEtaGen, hEtvsEtaSeen, hEtvsPhiGen, hEtvsPhiSeen, hExRec, hEyRec, hNGen, hNRec, hPhiGen, hPhiRec, hPhiSeen, mps_fire::i, dqmiolumiharvest::j, PFBenchmarkAlgo::matchByDeltaR(), PFJetDQMAnalyzer_cfi::onlyTwoJets, reco::Candidate::phi(), reco::Candidate::pt(), reco::Candidate::px(), reco::Candidate::py(), and EgammaObjectsElectrons_cfi::RecoCollection.
|
private |
Definition at line 255 of file GenericBenchmark.cc.
References gather_cfg::cout, spr::deltaEta, SiPixelRawToDigiRegional_cfi::deltaPhi, PbPb_ZMuSkimMuonDPG_cff::deltaR, mps_splice::entry, EgHLTOffHistBins_cfi::et, reco::Candidate::et(), PVValHelper::eta, reco::Candidate::eta(), hDeltaR::Fill(), reco::Candidate::phi(), reco::Candidate::px(), and reco::Candidate::py().
Referenced by fill().
void GenericBenchmark::setfile | ( | TFile * | file | ) |
void GenericBenchmark::setup | ( | DQMStore * | DQM = nullptr , |
bool | PlotAgainstReco_ = true , |
||
float | minDeltaEt = -100. , |
||
float | maxDeltaEt = 50. , |
||
float | minDeltaPhi = -0.5 , |
||
float | maxDeltaPhi = 0.5 , |
||
bool | doMetPlots = false |
||
) |
Definition at line 37 of file GenericBenchmark.cc.
References BOOK1D, BOOK2D, gather_cfg::cout, debug, HLT_2024v14_cff::DeltaEta, caloJetBenchmarkGeneric_cfi::doMetPlots, ET, ETA, geometryDiff::file, M_PI, caloJetBenchmarkGeneric_cfi::maxDeltaEt, CommPDSkim_cfg::maxDeltaEta, CommPDSkim_cfg::maxDeltaPhi, heavyionUCCDQM_cfi::maxEt, razorScouting_cff::maxEta, caloJetBenchmarkGeneric_cfi::minDeltaEt, HLTInclusiveVBFSource_cfi::minDeltaEta, VBFGenJetFilter_cfi::minDeltaPhi, EgHLTOffEleSelection_cfi::minEt, EgHLTOffEleSelection_cfi::minEta, L1MuGMTScales_cfi::nbinsDeltaEta, L1MuGMTScales_cfi::nbinsDeltaPhi, GetRecoTauVFromDQM_MC_cff::next, PHI, and SETAXES.
void GenericBenchmark::write | ( | std::string | Filename | ) |
Definition at line 342 of file GenericBenchmark.cc.
|
protected |
Definition at line 125 of file GenericBenchmark.h.
Referenced by fill().
|
protected |
Definition at line 124 of file GenericBenchmark.h.
|
private |
Definition at line 121 of file GenericBenchmark.h.
|
private |
Definition at line 60 of file GenericBenchmark.h.
|
private |
Definition at line 62 of file GenericBenchmark.h.
|
private |
Definition at line 77 of file GenericBenchmark.h.
|
private |
Definition at line 78 of file GenericBenchmark.h.
|
private |
Definition at line 79 of file GenericBenchmark.h.
|
private |
Definition at line 72 of file GenericBenchmark.h.
|
private |
Definition at line 66 of file GenericBenchmark.h.
|
private |
Definition at line 68 of file GenericBenchmark.h.
|
private |
Definition at line 70 of file GenericBenchmark.h.
|
private |
Definition at line 71 of file GenericBenchmark.h.
|
private |
Definition at line 65 of file GenericBenchmark.h.
|
private |
Definition at line 67 of file GenericBenchmark.h.
|
private |
Definition at line 69 of file GenericBenchmark.h.
|
private |
Definition at line 63 of file GenericBenchmark.h.
|
private |
Definition at line 64 of file GenericBenchmark.h.
|
private |
Definition at line 113 of file GenericBenchmark.h.
|
private |
Definition at line 81 of file GenericBenchmark.h.
|
private |
Definition at line 82 of file GenericBenchmark.h.
|
private |
Definition at line 83 of file GenericBenchmark.h.
|
private |
Definition at line 85 of file GenericBenchmark.h.
|
private |
Definition at line 86 of file GenericBenchmark.h.
|
private |
Definition at line 87 of file GenericBenchmark.h.
|
private |
Definition at line 114 of file GenericBenchmark.h.
|
private |
Definition at line 112 of file GenericBenchmark.h.
|
private |
Definition at line 92 of file GenericBenchmark.h.
Referenced by fill().
|
private |
Definition at line 100 of file GenericBenchmark.h.
Referenced by fill().
|
private |
Definition at line 91 of file GenericBenchmark.h.
Referenced by fill().
|
private |
Definition at line 105 of file GenericBenchmark.h.
Referenced by fill().
|
private |
Definition at line 75 of file GenericBenchmark.h.
Referenced by fill().
|
private |
Definition at line 74 of file GenericBenchmark.h.
Referenced by fill().
|
private |
Definition at line 99 of file GenericBenchmark.h.
Referenced by fill().
|
private |
Definition at line 93 of file GenericBenchmark.h.
Referenced by fill().
|
private |
Definition at line 102 of file GenericBenchmark.h.
Referenced by fill().
|
private |
Definition at line 94 of file GenericBenchmark.h.
Referenced by fill().
|
private |
Definition at line 103 of file GenericBenchmark.h.
Referenced by fill().
|
private |
Definition at line 106 of file GenericBenchmark.h.
Referenced by fill().
|
private |
Definition at line 107 of file GenericBenchmark.h.
Referenced by fill().
|
private |
Definition at line 97 of file GenericBenchmark.h.
Referenced by fill().
|
private |
Definition at line 89 of file GenericBenchmark.h.
Referenced by fill().
|
private |
Definition at line 95 of file GenericBenchmark.h.
Referenced by fill().
|
private |
Definition at line 108 of file GenericBenchmark.h.
Referenced by fill().
|
private |
Definition at line 101 of file GenericBenchmark.h.
Referenced by fill().
|
private |
Definition at line 116 of file GenericBenchmark.h.
|
private |
Definition at line 115 of file GenericBenchmark.h.
|
private |
Definition at line 110 of file GenericBenchmark.h.
|
private |
Definition at line 117 of file GenericBenchmark.h.
|
private |
Definition at line 111 of file GenericBenchmark.h.
|
private |
Definition at line 119 of file GenericBenchmark.h.