CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 {
13  if ( tau.jetRef().isAvailable() && tau.jetRef().isNonnull() ) { // CV: add protection to ease transition to new CMSSW 4_2_x RecoTauTags
14  p4Jet_ = tau.jetRef()->p4();
15  }
16 }
bool isAvailable() const
Definition: Ref.h:614
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:250
const PFJetRef & jetRef() const
Definition: PFTau.cc:54
reco::Candidate::LorentzVector p4Jet_
ROOT::Math::LorentzVector< ROOT::Math::PxPyPzE4D< float > > LorentzVector
Definition: analysisEnums.h:9
volatile std::atomic< bool > shutdown_flag false