CMS 3D CMS Logo

PFTauElecRejectionBenchmark.h
Go to the documentation of this file.
1 #ifndef RecoParticleFlow_Benchmark_PFTauElecRejectionBenchmark_h
2 #define RecoParticleFlow_Benchmark_PFTauElecRejectionBenchmark_h
3 
7 
10 
11 #include "Math/GenVector/VectorUtil.h"
12 #include "Math/GenVector/PxPyPzE4D.h"
13 #include "TLorentzVector.h"
14 
16 #include "TH1F.h"
17 #include "TH2F.h"
18 #include <string>
19 #include <TFile.h>
20 
22 
24 
26 
28 public:
31 
34 
35  void setup(std::string Filename,
36  std::string benchmarkLabel,
37  double maxDeltaR,
38  double minRecoPt,
39  double maxRecoAbsEta,
40  double minMCPt,
41  double maxMCAbsEta,
42  std::string sGenMatchObjectLabel,
43  bool applyEcalCrackCut,
44  DQMStore *db_store);
49  void write();
50 
51 private:
52  bool isInEcalCrack(double eta) const;
53 
54  TFile *file_;
57  double maxDeltaR_;
58  double minMCPt_;
59  double maxMCAbsEta_;
60  double minRecoPt_;
64 
65  // histograms
66  TH1F *hEoverP;
67  TH1F *hHoverP;
68  TH1F *hEmfrac;
69 
73 
77 
81 
85 
86  TH1F *hElecPreID;
87  TH1F *hElecMVA;
89 
90  TH2F *hHoPvsEoP;
93 
94  TH2F *hEmfracvsEoP;
97 
102 
103  TH1F *hleadTk_pt;
104  TH1F *hleadTk_eta;
105  TH1F *hleadTk_phi;
106 
107  // to be filled yet!
111 
112  std::vector<TLorentzVector> _GenObjects;
113 
114 protected:
116 };
117 
118 #endif // RecoParticleFlow_Benchmark_PFTauElecRejectionBenchmark_h
PFTauElecRejectionBenchmark::minRecoPt_
double minRecoPt_
Definition: PFTauElecRejectionBenchmark.h:60
PFTauElecRejectionBenchmark::sGenMatchObjectLabel_
std::string sGenMatchObjectLabel_
Definition: PFTauElecRejectionBenchmark.h:62
PFTauElecRejectionBenchmark::hEmfracvsEoP_preid0
TH2F * hEmfracvsEoP_preid0
Definition: PFTauElecRejectionBenchmark.h:95
PFTauElecRejectionBenchmark::hEmfrac_preid0
TH1F * hEmfrac_preid0
Definition: PFTauElecRejectionBenchmark.h:80
PFTauElecRejectionBenchmark::minMCPt_
double minMCPt_
Definition: PFTauElecRejectionBenchmark.h:58
PFTauElecRejectionBenchmark::hHoverP
TH1F * hHoverP
Definition: PFTauElecRejectionBenchmark.h:67
PFTauElecRejectionBenchmark::hHoverP_preid0
TH1F * hHoverP_preid0
Definition: PFTauElecRejectionBenchmark.h:79
PFTauElecRejectionBenchmark::PFTauElecRejectionBenchmark
PFTauElecRejectionBenchmark()
Definition: PFTauElecRejectionBenchmark.cc:22
PFTauElecRejectionBenchmark::hHoPvsEoP_preid1
TH2F * hHoPvsEoP_preid1
Definition: PFTauElecRejectionBenchmark.h:92
PFTauDiscriminator.h
PFTauElecRejectionBenchmark::maxRecoAbsEta_
double maxRecoAbsEta_
Definition: PFTauElecRejectionBenchmark.h:61
PFCandidate.h
PFTauElecRejectionBenchmark::outputFile_
std::string outputFile_
Definition: PFTauElecRejectionBenchmark.h:55
PFTauElecRejectionBenchmark::hElecPreID
TH1F * hElecPreID
Definition: PFTauElecRejectionBenchmark.h:86
PFTauElecRejectionBenchmark::maxMCAbsEta_
double maxMCAbsEta_
Definition: PFTauElecRejectionBenchmark.h:59
PFTauElecRejectionBenchmark::hpfcand_deltaEta
TH1F * hpfcand_deltaEta
Definition: PFTauElecRejectionBenchmark.h:98
PFTauElecRejectionBenchmark::hTauElecDiscriminant
TH1F * hTauElecDiscriminant
Definition: PFTauElecRejectionBenchmark.h:88
DQMStore.h
PFTauElecRejectionBenchmark::~PFTauElecRejectionBenchmark
virtual ~PFTauElecRejectionBenchmark()
Definition: PFTauElecRejectionBenchmark.cc:24
dqm::legacy::MonitorElement
Definition: MonitorElement.h:462
PFTauElecRejectionBenchmark::hHoPvsEoP_preid0
TH2F * hHoPvsEoP_preid0
Definition: PFTauElecRejectionBenchmark.h:91
PFTauElecRejectionBenchmark::hHoverP_preid1
TH1F * hHoverP_preid1
Definition: PFTauElecRejectionBenchmark.h:83
PFTauElecRejectionBenchmark::setup
void setup(std::string Filename, std::string benchmarkLabel, double maxDeltaR, double minRecoPt, double maxRecoAbsEta, double minMCPt, double maxMCAbsEta, std::string sGenMatchObjectLabel, bool applyEcalCrackCut, DQMStore *db_store)
Definition: PFTauElecRejectionBenchmark.cc:44
PFTauElecRejectionBenchmark::db_
DQMStore * db_
Definition: PFTauElecRejectionBenchmark.h:115
edm::Handle< edm::HepMCProduct >
PFTauElecRejectionBenchmark::benchmarkLabel_
std::string benchmarkLabel_
Definition: PFTauElecRejectionBenchmark.h:56
PFTauElecRejectionBenchmark::hEoverP
TH1F * hEoverP
Definition: PFTauElecRejectionBenchmark.h:66
PFTauElecRejectionBenchmark::hEoverP_endcap
TH1F * hEoverP_endcap
Definition: PFTauElecRejectionBenchmark.h:74
PFTauElecRejectionBenchmark::hHoverP_barrel
TH1F * hHoverP_barrel
Definition: PFTauElecRejectionBenchmark.h:71
PFTauElecRejectionBenchmark::hEoverP_barrel
TH1F * hEoverP_barrel
Definition: PFTauElecRejectionBenchmark.h:70
PFTauElecRejectionBenchmark::hElecMVA
TH1F * hElecMVA
Definition: PFTauElecRejectionBenchmark.h:87
dqm::legacy::DQMStore
Definition: DQMStore.h:727
PFTauElecRejectionBenchmark::hHoPvsEoP
TH2F * hHoPvsEoP
Definition: PFTauElecRejectionBenchmark.h:90
PVValHelper::eta
Definition: PVValidationHelpers.h:70
PFTauElecRejectionBenchmark::hEmfrac_barrel
TH1F * hEmfrac_barrel
Definition: PFTauElecRejectionBenchmark.h:72
PFTauElecRejectionBenchmark::hpfcand_deltaPhiOverQ
TH1F * hpfcand_deltaPhiOverQ
Definition: PFTauElecRejectionBenchmark.h:100
pfTauBenchmarkElecRejection_cfi.minMCPt
minMCPt
Definition: pfTauBenchmarkElecRejection_cfi.py:9
PFTauElecRejectionBenchmark::hleadGsfTk_eta
TH1F * hleadGsfTk_eta
Definition: PFTauElecRejectionBenchmark.h:109
PFTauElecRejectionBenchmark::hpfcand_deltaEta_weightE
TH1F * hpfcand_deltaEta_weightE
Definition: PFTauElecRejectionBenchmark.h:99
PFTauElecRejectionBenchmark::hleadTk_pt
TH1F * hleadTk_pt
Definition: PFTauElecRejectionBenchmark.h:103
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
PFTauElecRejectionBenchmark::hHoverP_endcap
TH1F * hHoverP_endcap
Definition: PFTauElecRejectionBenchmark.h:75
TFileService.h
PFTauElecRejectionBenchmark
Definition: PFTauElecRejectionBenchmark.h:27
PFTauElecRejectionBenchmark::hleadTk_phi
TH1F * hleadTk_phi
Definition: PFTauElecRejectionBenchmark.h:105
pfTauBenchmarkElecRejection_cfi.maxRecoAbsEta
maxRecoAbsEta
Definition: pfTauBenchmarkElecRejection_cfi.py:8
PFTauElecRejectionBenchmark::isInEcalCrack
bool isInEcalCrack(double eta) const
Definition: PFTauElecRejectionBenchmark.cc:342
PFTauElecRejectionBenchmark::hEoverP_preid1
TH1F * hEoverP_preid1
Definition: PFTauElecRejectionBenchmark.h:82
PFTauElecRejectionBenchmark::maxDeltaR_
double maxDeltaR_
Definition: PFTauElecRejectionBenchmark.h:57
PFTauElecRejectionBenchmark::applyEcalCrackCut_
bool applyEcalCrackCut_
Definition: PFTauElecRejectionBenchmark.h:63
PFTauElecRejectionBenchmark::hEoverP_preid0
TH1F * hEoverP_preid0
Definition: PFTauElecRejectionBenchmark.h:78
PFTauElecRejectionBenchmark::write
void write()
Definition: PFTauElecRejectionBenchmark.cc:29
PFTauElecRejectionBenchmark::hEmfrac
TH1F * hEmfrac
Definition: PFTauElecRejectionBenchmark.h:68
pfTauBenchmarkElecRejection_cfi.minRecoPt
minRecoPt
Definition: pfTauBenchmarkElecRejection_cfi.py:7
PFTauElecRejectionBenchmark::hEmfrac_preid1
TH1F * hEmfrac_preid1
Definition: PFTauElecRejectionBenchmark.h:84
PFTauElecRejectionBenchmark::MonitorElement
dqm::legacy::MonitorElement MonitorElement
Definition: PFTauElecRejectionBenchmark.h:30
PFTauElecRejectionBenchmark::hleadGsfTk_phi
TH1F * hleadGsfTk_phi
Definition: PFTauElecRejectionBenchmark.h:110
ewkMuLumiMonitorDQM_cfi.maxDeltaR
maxDeltaR
Definition: ewkMuLumiMonitorDQM_cfi.py:44
PFTauDiscriminatorByIsolation.h
PFTauElecRejectionBenchmark::process
void process(edm::Handle< edm::HepMCProduct > mcevt, edm::Handle< reco::PFTauCollection > pfTaus, edm::Handle< reco::PFTauDiscriminator > pfTauIsoDiscr, edm::Handle< reco::PFTauDiscriminator > pfTauElecDiscr)
Definition: PFTauElecRejectionBenchmark.cc:205
pfTauBenchmarkElecRejection_cfi.maxMCAbsEta
maxMCAbsEta
Definition: pfTauBenchmarkElecRejection_cfi.py:10
PFTauElecRejectionBenchmark::hleadGsfTk_pt
TH1F * hleadGsfTk_pt
Definition: PFTauElecRejectionBenchmark.h:108
PFTau.h
PFTauElecRejectionBenchmark::hleadTk_eta
TH1F * hleadTk_eta
Definition: PFTauElecRejectionBenchmark.h:104
PFTauElecRejectionBenchmark::file_
TFile * file_
Definition: PFTauElecRejectionBenchmark.h:54
PFTauElecRejectionBenchmark::_GenObjects
std::vector< TLorentzVector > _GenObjects
Definition: PFTauElecRejectionBenchmark.h:112
PFTauElecRejectionBenchmark::hEmfracvsEoP
TH2F * hEmfracvsEoP
Definition: PFTauElecRejectionBenchmark.h:94
HepMCProduct.h
PFTauElecRejectionBenchmark::hEmfrac_endcap
TH1F * hEmfrac_endcap
Definition: PFTauElecRejectionBenchmark.h:76
PFTauElecRejectionBenchmark::DQMStore
dqm::legacy::DQMStore DQMStore
Definition: PFTauElecRejectionBenchmark.h:29
PFCandidateFwd.h
PFTauElecRejectionBenchmark::hEmfracvsEoP_preid1
TH2F * hEmfracvsEoP_preid1
Definition: PFTauElecRejectionBenchmark.h:96
PFTauElecRejectionBenchmark::hpfcand_deltaPhiOverQ_weightE
TH1F * hpfcand_deltaPhiOverQ_weightE
Definition: PFTauElecRejectionBenchmark.h:101