Main Page
Namespaces
Classes
Package Documentation
RecoParticleFlow
Benchmark
interface
PFTauElecRejectionBenchmark.h
Go to the documentation of this file.
1
#ifndef RecoParticleFlow_Benchmark_PFTauElecRejectionBenchmark_h
2
#define RecoParticleFlow_Benchmark_PFTauElecRejectionBenchmark_h
3
4
#include "
DataFormats/TauReco/interface/PFTau.h
"
5
#include "
DataFormats/TauReco/interface/PFTauDiscriminator.h
"
6
#include "
DataFormats/TauReco/interface/PFTauDiscriminatorByIsolation.h
"
7
#include "
RecoTauTag/TauTagTools/interface/TauTagTools.h
"
8
9
#include "
DataFormats/ParticleFlowCandidate/interface/PFCandidate.h
"
10
#include "
DataFormats/ParticleFlowCandidate/interface/PFCandidateFwd.h
"
11
12
#include "Math/GenVector/VectorUtil.h"
13
#include "Math/GenVector/PxPyPzE4D.h"
14
#include "TLorentzVector.h"
15
16
#include "
CommonTools/UtilAlgos/interface/TFileService.h
"
17
#include "TH1F.h"
18
#include "TH2F.h"
19
#include <string>
20
#include <TFile.h>
21
22
#include "
DQMServices/Core/interface/DQMStore.h
"
23
#include "
DQMServices/Core/interface/MonitorElement.h
"
24
25
#include "
SimDataFormats/GeneratorProducts/interface/HepMCProduct.h
"
26
27
class
PFTauElecRejectionBenchmark
;
28
29
class
TH1F;
30
class
TH2F;
31
32
//class DQMStore; // CMSSW_2_X_X not needed here?
33
34
class
PFTauElecRejectionBenchmark
{
35
36
public
:
37
38
PFTauElecRejectionBenchmark
();
39
virtual
~PFTauElecRejectionBenchmark
();
40
41
void
setup
(
42
std::string
Filename,
43
std::string
benchmarkLabel,
44
double
maxDeltaR
,
45
double
minRecoPt
,
46
double
maxRecoAbsEta
,
47
double
minMCPt
,
48
double
maxMCAbsEta
,
49
std::string
sGenMatchObjectLabel,
50
bool
applyEcalCrackCut,
51
DQMStore
* db_store);
52
void
process
(
edm::Handle<edm::HepMCProduct>
mcevt,
edm::Handle<reco::PFTauCollection>
pfTaus,
53
edm::Handle<reco::PFTauDiscriminator>
pfTauIsoDiscr,
54
edm::Handle<reco::PFTauDiscriminator>
pfTauElecDiscr);
55
void
write
();
56
57
private
:
58
59
bool
isInEcalCrack
(
double
eta
)
const
;
60
61
TFile *
file_
;
62
std::string
outputFile_
;
63
std::string
benchmarkLabel_
;
64
double
maxDeltaR_
;
65
double
minMCPt_
;
66
double
maxMCAbsEta_
;
67
double
minRecoPt_
;
68
double
maxRecoAbsEta_
;
69
std::string
sGenMatchObjectLabel_
;
70
bool
applyEcalCrackCut_
;
71
72
// histograms
73
TH1F *
hEoverP
;
74
TH1F *
hHoverP
;
75
TH1F *
hEmfrac
;
76
77
TH1F *
hEoverP_barrel
;
78
TH1F *
hHoverP_barrel
;
79
TH1F *
hEmfrac_barrel
;
80
81
TH1F *
hEoverP_endcap
;
82
TH1F *
hHoverP_endcap
;
83
TH1F *
hEmfrac_endcap
;
84
85
TH1F *
hEoverP_preid0
;
86
TH1F *
hHoverP_preid0
;
87
TH1F *
hEmfrac_preid0
;
88
89
TH1F *
hEoverP_preid1
;
90
TH1F *
hHoverP_preid1
;
91
TH1F *
hEmfrac_preid1
;
92
93
TH1F *
hElecPreID
;
94
TH1F *
hElecMVA
;
95
TH1F *
hTauElecDiscriminant
;
96
97
TH2F *
hHoPvsEoP
;
98
TH2F *
hHoPvsEoP_preid0
;
99
TH2F *
hHoPvsEoP_preid1
;
100
101
TH2F *
hEmfracvsEoP
;
102
TH2F *
hEmfracvsEoP_preid0
;
103
TH2F *
hEmfracvsEoP_preid1
;
104
105
TH1F *
hpfcand_deltaEta
;
106
TH1F *
hpfcand_deltaEta_weightE
;
107
TH1F *
hpfcand_deltaPhiOverQ
;
108
TH1F *
hpfcand_deltaPhiOverQ_weightE
;
109
110
TH1F *
hleadTk_pt
;
111
TH1F *
hleadTk_eta
;
112
TH1F *
hleadTk_phi
;
113
114
// to be filled yet!
115
TH1F *
hleadGsfTk_pt
;
116
TH1F *
hleadGsfTk_eta
;
117
TH1F *
hleadGsfTk_phi
;
118
119
120
std::vector<TLorentzVector>
_GenObjects
;
121
122
protected
:
123
124
DQMStore
*
db_
;
125
};
126
127
#endif // RecoParticleFlow_Benchmark_PFTauElecRejectionBenchmark_h
PFTauElecRejectionBenchmark::hTauElecDiscriminant
TH1F * hTauElecDiscriminant
Definition:
PFTauElecRejectionBenchmark.h:95
PFTauElecRejectionBenchmark::hEmfrac_endcap
TH1F * hEmfrac_endcap
Definition:
PFTauElecRejectionBenchmark.h:83
PFTauElecRejectionBenchmark::hHoverP_barrel
TH1F * hHoverP_barrel
Definition:
PFTauElecRejectionBenchmark.h:78
PFTauElecRejectionBenchmark::hEoverP_barrel
TH1F * hEoverP_barrel
Definition:
PFTauElecRejectionBenchmark.h:77
PFTauElecRejectionBenchmark::hElecPreID
TH1F * hElecPreID
Definition:
PFTauElecRejectionBenchmark.h:93
PFTauElecRejectionBenchmark::minRecoPt_
double minRecoPt_
Definition:
PFTauElecRejectionBenchmark.h:67
PFTauElecRejectionBenchmark::hleadGsfTk_pt
TH1F * hleadGsfTk_pt
Definition:
PFTauElecRejectionBenchmark.h:115
PFTauElecRejectionBenchmark::hpfcand_deltaPhiOverQ
TH1F * hpfcand_deltaPhiOverQ
Definition:
PFTauElecRejectionBenchmark.h:107
PFTauElecRejectionBenchmark::maxDeltaR_
double maxDeltaR_
Definition:
PFTauElecRejectionBenchmark.h:64
PFTauElecRejectionBenchmark::write
void write()
Definition:
PFTauElecRejectionBenchmark.cc:30
PFTau.h
PFTauElecRejectionBenchmark::hleadGsfTk_eta
TH1F * hleadGsfTk_eta
Definition:
PFTauElecRejectionBenchmark.h:116
PFTauElecRejectionBenchmark::hEmfracvsEoP_preid1
TH2F * hEmfracvsEoP_preid1
Definition:
PFTauElecRejectionBenchmark.h:103
PFTauElecRejectionBenchmark::hHoPvsEoP_preid1
TH2F * hHoPvsEoP_preid1
Definition:
PFTauElecRejectionBenchmark.h:99
PFTauElecRejectionBenchmark::hEmfracvsEoP_preid0
TH2F * hEmfracvsEoP_preid0
Definition:
PFTauElecRejectionBenchmark.h:102
PFTauElecRejectionBenchmark::hleadTk_eta
TH1F * hleadTk_eta
Definition:
PFTauElecRejectionBenchmark.h:111
pfTauBenchmarkElecRejection_cfi.minRecoPt
minRecoPt
Definition:
pfTauBenchmarkElecRejection_cfi.py:7
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
PFTauElecRejectionBenchmark::hleadTk_phi
TH1F * hleadTk_phi
Definition:
PFTauElecRejectionBenchmark.h:112
PFTauElecRejectionBenchmark::hpfcand_deltaEta_weightE
TH1F * hpfcand_deltaEta_weightE
Definition:
PFTauElecRejectionBenchmark.h:106
edm::Handle< edm::HepMCProduct >
PFTauElecRejectionBenchmark::file_
TFile * file_
Definition:
PFTauElecRejectionBenchmark.h:61
PVValHelper::eta
Definition:
PVValidationHelpers.h:65
PFTauElecRejectionBenchmark::hHoverP_preid1
TH1F * hHoverP_preid1
Definition:
PFTauElecRejectionBenchmark.h:90
PFTauElecRejectionBenchmark::isInEcalCrack
bool isInEcalCrack(double eta) const
Definition:
PFTauElecRejectionBenchmark.cc:357
PFTauElecRejectionBenchmark::minMCPt_
double minMCPt_
Definition:
PFTauElecRejectionBenchmark.h:65
PFTauElecRejectionBenchmark::hHoverP
TH1F * hHoverP
Definition:
PFTauElecRejectionBenchmark.h:74
PFTauElecRejectionBenchmark::hHoverP_endcap
TH1F * hHoverP_endcap
Definition:
PFTauElecRejectionBenchmark.h:82
PFTauDiscriminator.h
TFileService.h
PFTauElecRejectionBenchmark::hHoPvsEoP_preid0
TH2F * hHoPvsEoP_preid0
Definition:
PFTauElecRejectionBenchmark.h:98
PFTauElecRejectionBenchmark::hElecMVA
TH1F * hElecMVA
Definition:
PFTauElecRejectionBenchmark.h:94
pfTauBenchmarkElecRejection_cfi.maxRecoAbsEta
maxRecoAbsEta
Definition:
pfTauBenchmarkElecRejection_cfi.py:8
PFTauElecRejectionBenchmark::hEmfrac
TH1F * hEmfrac
Definition:
PFTauElecRejectionBenchmark.h:75
PFTauElecRejectionBenchmark::hEoverP_endcap
TH1F * hEoverP_endcap
Definition:
PFTauElecRejectionBenchmark.h:81
PFTauElecRejectionBenchmark::db_
DQMStore * db_
Definition:
PFTauElecRejectionBenchmark.h:124
PFTauElecRejectionBenchmark::PFTauElecRejectionBenchmark
PFTauElecRejectionBenchmark()
Definition:
PFTauElecRejectionBenchmark.cc:24
PFTauElecRejectionBenchmark::hEmfrac_preid1
TH1F * hEmfrac_preid1
Definition:
PFTauElecRejectionBenchmark.h:91
PFTauElecRejectionBenchmark::_GenObjects
std::vector< TLorentzVector > _GenObjects
Definition:
PFTauElecRejectionBenchmark.h:120
PFTauElecRejectionBenchmark::hleadTk_pt
TH1F * hleadTk_pt
Definition:
PFTauElecRejectionBenchmark.h:110
DQMStore
Definition:
DQMStore.h:76
PFCandidate.h
PFTauElecRejectionBenchmark::maxMCAbsEta_
double maxMCAbsEta_
Definition:
PFTauElecRejectionBenchmark.h:66
DQMStore.h
PFTauElecRejectionBenchmark::hpfcand_deltaEta
TH1F * hpfcand_deltaEta
Definition:
PFTauElecRejectionBenchmark.h:105
PFTauElecRejectionBenchmark::hEoverP_preid0
TH1F * hEoverP_preid0
Definition:
PFTauElecRejectionBenchmark.h:85
HepMCProduct.h
PFTauElecRejectionBenchmark
Definition:
PFTauElecRejectionBenchmark.h:34
TauTagTools.h
PFTauElecRejectionBenchmark::~PFTauElecRejectionBenchmark
virtual ~PFTauElecRejectionBenchmark()
Definition:
PFTauElecRejectionBenchmark.cc:26
PFTauElecRejectionBenchmark::hEmfrac_barrel
TH1F * hEmfrac_barrel
Definition:
PFTauElecRejectionBenchmark.h:79
PFTauElecRejectionBenchmark::hEmfrac_preid0
TH1F * hEmfrac_preid0
Definition:
PFTauElecRejectionBenchmark.h:87
PFTauElecRejectionBenchmark::sGenMatchObjectLabel_
std::string sGenMatchObjectLabel_
Definition:
PFTauElecRejectionBenchmark.h:69
MonitorElement.h
PFTauElecRejectionBenchmark::hEoverP
TH1F * hEoverP
Definition:
PFTauElecRejectionBenchmark.h:73
pfTauBenchmarkElecRejection_cfi.maxMCAbsEta
maxMCAbsEta
Definition:
pfTauBenchmarkElecRejection_cfi.py:10
PFTauElecRejectionBenchmark::benchmarkLabel_
std::string benchmarkLabel_
Definition:
PFTauElecRejectionBenchmark.h:63
PFTauElecRejectionBenchmark::hleadGsfTk_phi
TH1F * hleadGsfTk_phi
Definition:
PFTauElecRejectionBenchmark.h:117
PFTauDiscriminatorByIsolation.h
PFTauElecRejectionBenchmark::hHoPvsEoP
TH2F * hHoPvsEoP
Definition:
PFTauElecRejectionBenchmark.h:97
PFTauElecRejectionBenchmark::outputFile_
std::string outputFile_
Definition:
PFTauElecRejectionBenchmark.h:62
electrons_cff.maxDeltaR
maxDeltaR
Definition:
electrons_cff.py:404
PFTauElecRejectionBenchmark::applyEcalCrackCut_
bool applyEcalCrackCut_
Definition:
PFTauElecRejectionBenchmark.h:70
PFCandidateFwd.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:216
pfTauBenchmarkElecRejection_cfi.minMCPt
minMCPt
Definition:
pfTauBenchmarkElecRejection_cfi.py:9
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:47
PFTauElecRejectionBenchmark::maxRecoAbsEta_
double maxRecoAbsEta_
Definition:
PFTauElecRejectionBenchmark.h:68
PFTauElecRejectionBenchmark::hEmfracvsEoP
TH2F * hEmfracvsEoP
Definition:
PFTauElecRejectionBenchmark.h:101
PFTauElecRejectionBenchmark::hEoverP_preid1
TH1F * hEoverP_preid1
Definition:
PFTauElecRejectionBenchmark.h:89
PFTauElecRejectionBenchmark::hpfcand_deltaPhiOverQ_weightE
TH1F * hpfcand_deltaPhiOverQ_weightE
Definition:
PFTauElecRejectionBenchmark.h:108
PFTauElecRejectionBenchmark::hHoverP_preid0
TH1F * hHoverP_preid0
Definition:
PFTauElecRejectionBenchmark.h:86
Generated for CMSSW Reference Manual by
1.8.11