Skip to content

Commit

Permalink
removing commented code that had been missed for the initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
roger-wolf committed Sep 7, 2016
1 parent 7943712 commit cbef39f
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions PhysicsTools/PatAlgos/plugins/PATTauProducer.cc
Expand Up @@ -451,34 +451,6 @@ void PATTauProducer::produce(edm::Event & iEvent, const edm::EventSetup & iSetup
}
}

/*
// extraction of tau lifetime information
// (only available for PFTaus)
if ( aTau.isPFTau() && tauTransverseImpactParameterSrc_.label() != "" ) {
edm::Handle<reco::PFTauCollection> pfTaus;
iEvent.getByToken(pfTauToken_, pfTaus);
reco::PFTauRef pfTauRef(pfTaus, idx);
edm::Handle<PFTauTIPAssociationByRef> tauLifetimeInfos;
iEvent.getByToken(tauTransverseImpactParameterToken_, tauLifetimeInfos);
const reco::PFTauTransverseImpactParameter& tauLifetimeInfo = *(*tauLifetimeInfos)[pfTauRef];
pat::tau::TauPFEssential& aTauPFEssential = aTau.pfEssential_[0];
aTauPFEssential.dxy_PCA_ = tauLifetimeInfo.dxy_PCA();
aTauPFEssential.dxy_ = tauLifetimeInfo.dxy();
aTauPFEssential.dxy_error_ = tauLifetimeInfo.dxy_error();
// aTauPFEssential.pv_ = tauLifetimeInfo.primaryVertex();
// aTauPFEssential.pvPos_ = tauLifetimeInfo.primaryVertexPos();
// aTauPFEssential.pvCov_ = tauLifetimeInfo.primaryVertexCov();
aTauPFEssential.hasSV_ = tauLifetimeInfo.hasSecondaryVertex();
if(tauLifetimeInfo.hasSecondaryVertex()){
aTauPFEssential.flightLength_ = tauLifetimeInfo.flightLength();
aTauPFEssential.flightLengthSig_ = tauLifetimeInfo.flightLengthSig();
// aTauPFEssential.sv_ = tauLifetimeInfo.secondaryVertex();
// aTauPFEssential.svPos_ = tauLifetimeInfo.secondaryVertexPos();
// aTauPFEssential.svCov_ = tauLifetimeInfo.secondaryVertexCov();
}
}
*/

// Isolation
if (isolator_.enabled()) {
isolator_.fill(*anyTaus, idx, isolatorTmpStorage_);
Expand Down

0 comments on commit cbef39f

Please sign in to comment.