Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:54:26

0001 #include "DataFormats/PatCandidates/interface/TauPFEssential.h"
0002 
0003 #include "DataFormats/JetReco/interface/Jet.h"
0004 
0005 pat::tau::TauPFEssential::TauPFEssential(const reco::PFTau& tau)
0006     : p4Jet_(reco::Candidate::LorentzVector()),
0007       p4CorrJet_(reco::Candidate::LorentzVector()),
0008       decayMode_(tau.decayMode()),
0009       dxy_(0.),
0010       dxy_error_(1.e+3),
0011       hasSV_(false),
0012       ip3d_(0.),
0013       ip3d_error_(1.e+3),
0014       ecalEnergy_(0.),
0015       hcalEnergy_(0.),
0016       leadingTrackNormChi2_(1.e+3),
0017       phiAtEcalEntrance_(0.),
0018       etaAtEcalEntrance_(0.),
0019       ecalEnergyLeadChargedHadrCand_(0.),
0020       hcalEnergyLeadChargedHadrCand_(0.),
0021       etaAtEcalEntranceLeadChargedCand_(0.),
0022       ptLeadChargedCand_(0.),
0023       emFraction_(0.) {
0024   if (tau.jetRef().isAvailable() &&
0025       tau.jetRef().isNonnull()) {  // CV: add protection to ease transition to new CMSSW 4_2_x RecoTauTags
0026     p4Jet_ = tau.jetRef()->p4();
0027   }
0028 }