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