Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
DataFormats
PatCandidates
src
TauPFEssential.cc
Go to the documentation of this file.
1
#include "
DataFormats/PatCandidates/interface/TauPFEssential.h
"
2
3
#include "
DataFormats/JetReco/interface/Jet.h
"
4
5
pat::tau::TauPFEssential::TauPFEssential
(
const
reco::PFTau
&
tau
)
6
: p4Jet_(
reco
::
Candidate
::
LorentzVector
()),
7
p4CorrJet_(
reco
::
Candidate
::
LorentzVector
()),
8
decayMode_(tau.decayMode()),
9
dxy_(0.),
10
dxy_error_(1.
e
+3),
11
hasSV_(
false
),
12
ip3d_(0.),
13
ip3d_error_(1.
e
+3),
14
ecalEnergy_(0.),
15
hcalEnergy_(0.),
16
leadingTrackNormChi2_(1.
e
+3),
17
phiAtEcalEntrance_(0.),
18
etaAtEcalEntrance_(0.),
19
ecalEnergyLeadChargedHadrCand_(0.),
20
hcalEnergyLeadChargedHadrCand_(0.),
21
etaAtEcalEntranceLeadChargedCand_(0.),
22
ptLeadChargedCand_(0.),
23
emFraction_(0.) {
24
if
(tau.
jetRef
().
isAvailable
() &&
25
tau.
jetRef
().
isNonnull
()) {
// CV: add protection to ease transition to new CMSSW 4_2_x RecoTauTags
26
p4Jet_
= tau.
jetRef
()->p4();
27
}
28
}
TauPFEssential.h
edm::RefToBase::isAvailable
bool isAvailable() const
Definition:
RefToBase.h:119
funct::false
false
Definition:
Factorize.h:29
pat::tau::TauPFEssential::LorentzVector
math::PtEtaPhiMLorentzVectorF LorentzVector
Definition:
TauPFEssential.h:24
edm::RefToBase::isNonnull
bool isNonnull() const
Checks for non-null.
Definition:
RefToBase.h:301
dt_dqm_sourceclient_common_cff.reco
tuple reco
Definition:
dt_dqm_sourceclient_common_cff.py:111
pat::tau::TauPFEssential::p4Jet_
LorentzVector p4Jet_
Definition:
TauPFEssential.h:34
reco::PFTau::jetRef
const JetBaseRef & jetRef() const
Definition:
PFTau.cc:56
reco::PFTau
Definition:
PFTau.h:36
metsig::tau
Definition:
SignAlgoResolutions.h:49
Jet.h
configurableAnalysis::Candidate
char Candidate[]
Definition:
modules.cc:20
pat::tau::TauPFEssential::TauPFEssential
TauPFEssential()
Definition:
TauPFEssential.h:30
alignCSCRings.e
list e
Definition:
alignCSCRings.py:91
Generated for CMSSW Reference Manual by
1.8.5