RecoTauTag
RecoTau
interface
PFRecoTauClusterVariables.h
Go to the documentation of this file.
1
#ifndef RecoTauTag_RecoTau_PFRecoTauClusterVariables_h
2
#define RecoTauTag_RecoTau_PFRecoTauClusterVariables_h
3
14
#include "
DataFormats/TauReco/interface/PFTau.h
"
15
#include "
DataFormats/PatCandidates/interface/Tau.h
"
16
#include "
DataFormats/ParticleFlowCandidate/interface/PFCandidateFwd.h
"
17
#include "
DataFormats/PatCandidates/interface/PackedCandidate.h
"
18
19
namespace
reco
{
20
namespace
tau
{
22
float
lead_track_chi2
(
const
reco::PFTau
&
tau
);
24
float
eratio
(
const
reco::PFTau
&
tau
);
25
float
eratio
(
const
pat::Tau
&
tau
);
28
float
pt_weighted_dx
(
const
reco::PFTau
&
tau
,
int
mode
= 0,
int
var
= 0,
int
decaymode
= -1);
29
float
pt_weighted_dx
(
const
pat::Tau
&
tau
,
int
mode
= 0,
int
var
= 0,
int
decaymode
= -1);
32
inline
float
pt_weighted_dr_signal
(
const
reco::PFTau
&
tau
,
int
dm
) {
return
pt_weighted_dx
(
tau
, 0, 0,
dm
); }
33
inline
float
pt_weighted_dr_signal
(
const
pat::Tau
&
tau
,
int
dm
) {
return
pt_weighted_dx
(
tau
, 0, 0,
dm
); }
36
inline
float
pt_weighted_deta_strip
(
const
reco::PFTau
&
tau
,
int
dm
) {
37
return
pt_weighted_dx
(
tau
,
dm
== 10 ? 2 : 1, 1,
dm
);
38
}
39
inline
float
pt_weighted_deta_strip
(
const
pat::Tau
&
tau
,
int
dm
) {
40
return
pt_weighted_dx
(
tau
,
dm
== 10 ? 2 : 1, 1,
dm
);
41
}
44
inline
float
pt_weighted_dphi_strip
(
const
reco::PFTau
&
tau
,
int
dm
) {
45
return
pt_weighted_dx
(
tau
,
dm
== 10 ? 2 : 1, 2,
dm
);
46
}
47
inline
float
pt_weighted_dphi_strip
(
const
pat::Tau
&
tau
,
int
dm
) {
48
return
pt_weighted_dx
(
tau
,
dm
== 10 ? 2 : 1, 2,
dm
);
49
}
52
inline
float
pt_weighted_dr_iso
(
const
reco::PFTau
&
tau
,
int
dm
) {
return
pt_weighted_dx
(
tau
, 2, 0,
dm
); }
53
inline
float
pt_weighted_dr_iso
(
const
pat::Tau
&
tau
,
int
dm
) {
return
pt_weighted_dx
(
tau
, 2, 0,
dm
); }
55
unsigned
int
n_photons_total
(
const
reco::PFTau
&
tau
);
56
unsigned
int
n_photons_total
(
const
pat::Tau
&
tau
);
57
58
enum
{
59
kOldDMwoLT
,
60
kOldDMwLT
,
61
kNewDMwoLT
,
62
kNewDMwLT
,
63
kDBoldDMwLT
,
64
kDBnewDMwLT
,
65
kPWoldDMwLT
,
66
kPWnewDMwLT
,
67
kDBoldDMwLTwGJ
,
68
kDBnewDMwLTwGJ
,
69
kDBnewDMwLTwGJPhase2
70
};
71
bool
fillIsoMVARun2Inputs
(
float
* mvaInput,
72
const
pat::Tau
&
tau
,
73
int
mvaOpt
,
74
const
std::string
& nameCharged,
75
const
std::string
& nameNeutral,
76
const
std::string
& namePu,
77
const
std::string
& nameOutside,
78
const
std::string
& nameFootprint);
79
}
// namespace tau
80
}
// namespace reco
81
82
#endif
reco::tau::pt_weighted_deta_strip
float pt_weighted_deta_strip(const reco::PFTau &tau, int dm)
Definition:
PFRecoTauClusterVariables.h:36
reco::tau::fillIsoMVARun2Inputs
bool fillIsoMVARun2Inputs(float *mvaInput, const pat::Tau &tau, int mvaOpt, const std::string &nameCharged, const std::string &nameNeutral, const std::string &namePu, const std::string &nameOutside, const std::string &nameFootprint)
Definition:
PFRecoTauClusterVariables.cc:188
metsig::tau
Definition:
SignAlgoResolutions.h:49
reco::tau::kDBnewDMwLT
Definition:
PFRecoTauClusterVariables.h:64
reco::tau::eratio
float eratio(const reco::PFTau &tau)
return ratio of energy in ECAL over sum of energy in ECAL and HCAL
Definition:
PFRecoTauClusterVariables.cc:78
pat::Tau
Analysis-level tau class.
Definition:
Tau.h:53
ALCARECOPromptCalibProdSiPixelAli0T_cff.mode
mode
Definition:
ALCARECOPromptCalibProdSiPixelAli0T_cff.py:96
reco::tau::kOldDMwoLT
Definition:
PFRecoTauClusterVariables.h:59
reco::PFTau
Definition:
PFTau.h:36
reco::tau::kDBnewDMwLTwGJPhase2
Definition:
PFRecoTauClusterVariables.h:69
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:46
Tau.h
trigObjTnPSource_cfi.var
var
Definition:
trigObjTnPSource_cfi.py:21
reco::tau::pt_weighted_dx
float pt_weighted_dx(const reco::PFTau &tau, int mode=0, int var=0, int decaymode=-1)
Definition:
PFRecoTauClusterVariables.cc:156
reco::tau::kNewDMwoLT
Definition:
PFRecoTauClusterVariables.h:61
reco::tau::pt_weighted_dphi_strip
float pt_weighted_dphi_strip(const reco::PFTau &tau, int dm)
Definition:
PFRecoTauClusterVariables.h:44
reco::tau::kOldDMwLT
Definition:
PFRecoTauClusterVariables.h:60
runTauDisplay.decaymode
decaymode
Definition:
runTauDisplay.py:327
reco::tau::kNewDMwLT
Definition:
PFRecoTauClusterVariables.h:62
reco::tau::lead_track_chi2
float lead_track_chi2(const reco::PFTau &tau)
return chi2 of the leading track ==> deprecated? <==
Definition:
PFRecoTauClusterVariables.cc:58
reco::tau::kPWnewDMwLT
Definition:
PFRecoTauClusterVariables.h:66
reco::tau::kDBoldDMwLT
Definition:
PFRecoTauClusterVariables.h:63
PackedCandidate.h
reco::tau::n_photons_total
unsigned int n_photons_total(const reco::PFTau &tau)
return total number of pf photon candidates with pT>500 MeV, which are associated to signal
Definition:
PFRecoTauClusterVariables.cc:163
symbols.dm
dm
Definition:
symbols.py:75
reco::tau::kDBnewDMwLTwGJ
Definition:
PFRecoTauClusterVariables.h:68
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
reco::tau::kDBoldDMwLTwGJ
Definition:
PFRecoTauClusterVariables.h:67
reco::tau::pt_weighted_dr_signal
float pt_weighted_dr_signal(const reco::PFTau &tau, int dm)
Definition:
PFRecoTauClusterVariables.h:32
PFTau.h
reco::tau::pt_weighted_dr_iso
float pt_weighted_dr_iso(const reco::PFTau &tau, int dm)
Definition:
PFRecoTauClusterVariables.h:52
taus_updatedMVAIds_cff.mvaOpt
mvaOpt
Definition:
taus_updatedMVAIds_cff.py:19
reco::tau::kPWoldDMwLT
Definition:
PFRecoTauClusterVariables.h:65
PFCandidateFwd.h
Generated for CMSSW Reference Manual by
1.8.16