Skip to content

Commit

Permalink
removing files conflicting with new tau ID and changing from Refs to …
Browse files Browse the repository at this point in the history
…Ptrs where necessary
  • Loading branch information
jpavel committed Dec 13, 2013
1 parent dd5d47c commit 9e7a385
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 1,054 deletions.
12 changes: 6 additions & 6 deletions HLTriggerOffline/Tau/src/L25TauAnalyzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ void L25TauAnalyzer::analyze(const edm::Event& iEvent, const edm::EventSetup& iS
pfTauEta = thePFTaus->at(pfTauIt).eta();
pfTauPhi = thePFTaus->at(pfTauIt).eta();

const PFCandidateRef& thePFTauLeadTrack = thePFTaus->at(pfTauIt).leadPFChargedHadrCand();
const reco::PFCandidatePtr& thePFTauLeadTrack = thePFTaus->at(pfTauIt).leadPFChargedHadrCand();
if(thePFTauLeadTrack.isNonnull()){
pfTauHasLeadTrk = true;
pfTauNProngs = thePFTaus->at(pfTauIt).signalPFChargedHadrCands().size();
Expand All @@ -227,17 +227,17 @@ void L25TauAnalyzer::analyze(const edm::Event& iEvent, const edm::EventSetup& iS
pfTauGammaIso = thePFTaus->at(pfTauIt).isolationPFGammaCandsEtSum();
}

const PFCandidateRefVector& theSignalCands = thePFTaus->at(pfTauIt).signalPFChargedHadrCands();
for(PFCandidateRefVector::const_iterator vIt = theSignalCands.begin(); vIt != theSignalCands.end(); ++vIt){
const vector<reco::PFCandidatePtr>& theSignalCands = thePFTaus->at(pfTauIt).signalPFChargedHadrCands();
for(vector<reco::PFCandidatePtr>::const_iterator vIt = theSignalCands.begin(); vIt != theSignalCands.end(); ++vIt){
pftauSignalTrkDeltaR = ROOT::Math::VectorUtil::DeltaR((*vIt)->trackRef()->momentum(), thePFTauLeadTrack->momentum());
if(pftauSignalTrkDeltaR > _signalCone) pfTauInBounds = false;
}

const PFCandidateRefVector& theIsoCands = thePFTaus->at(pfTauIt).isolationPFChargedHadrCands();
const vector<reco::PFCandidatePtr>& theIsoCands = thePFTaus->at(pfTauIt).isolationPFChargedHadrCands();
pfTauNTrkIso = theIsoCands.size();
float PFTauLeadIsoPt = 0.;
Track thePFTauLeadIsoTrk;
for(PFCandidateRefVector::const_iterator vIt = theIsoCands.begin(); vIt != theIsoCands.end(); ++vIt){
for(vector<reco::PFCandidatePtr>::const_iterator vIt = theIsoCands.begin(); vIt != theIsoCands.end(); ++vIt){
pftauIsoTrkDeltaR = ROOT::Math::VectorUtil::DeltaR((*vIt)->trackRef()->momentum(), thePFTauLeadTrack->momentum());
if(pftauIsoTrkDeltaR < _isolationCone) pfTauInBounds = false;
pfTauIsoTrkPt = (*vIt)->trackRef()->pt();
Expand Down Expand Up @@ -463,7 +463,7 @@ void L25TauAnalyzer::printInfo(const reco::PFTau& thePFTau, const reco::Isolated
}
nIsoTrk = 0;
std::cout << "Tracks in PFTau Iso: (Pt:Eta:Phi)\n";
for(PFCandidateRefVector::const_iterator isoIt = thePFTau.isolationPFChargedHadrCands().begin();
for(vector<reco::PFCandidatePtr>::const_iterator isoIt = thePFTau.isolationPFChargedHadrCands().begin();
isoIt != thePFTau.isolationPFChargedHadrCands().end(); ++isoIt){
nIsoTrk++;
cout << nIsoTrk << "\t"
Expand Down
7 changes: 0 additions & 7 deletions JetMETCorrections/TauJet/test/BuildFile.xml

This file was deleted.

Loading

0 comments on commit 9e7a385

Please sign in to comment.