CMS 3D CMS Logo

TauPFEssential.cc
Go to the documentation of this file.
2 
4 
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 {
25  if ( tau.jetRef().isAvailable() && tau.jetRef().isNonnull() ) { // CV: add protection to ease transition to new CMSSW 4_2_x RecoTauTags
26  p4Jet_ = tau.jetRef()->p4();
27  }
28 }
bool isAvailable() const
Definition: RefToBase.h:114
math::PtEtaPhiMLorentzVectorF LorentzVector
bool isNonnull() const
Checks for non-null.
Definition: RefToBase.h:340
const JetBaseRef & jetRef() const
Definition: PFTau.cc:58
fixed size matrix