Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 120957
b: "refs/heads/CMSSW_7_0_X"
c: 17dc04a
h: "refs/heads/CMSSW_7_0_X"
i:
  120955: 4b38c8e
v: v3
  • Loading branch information
Vincenzo Innocente committed Oct 8, 2012
1 parent 9bb4fc9 commit ce6fae7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"refs/heads/hi_d20131223": d7335b053d7fe03e98f9f59af6a20004362628e8
refs/heads/gh-pages: a3d9046c56a3ca3dc64ad63f7295276c81ac876a
"refs/heads/analysis_53X_01": 3019419e9784b2b092fc6b5c503b2e0177cbe926
"refs/heads/CMSSW_7_0_X": 4b24010ed4e6bcd9fda30fedef07b431cfbc5b0e
"refs/heads/CMSSW_7_0_X": 17dc04aeea31a30d69daf6f967b8c5a3a9a9cec2
2 changes: 1 addition & 1 deletion trunk/RecoTauTag/RecoTau/src/PFRecoTauTagInfoAlgorithm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ PFTauTagInfo PFRecoTauTagInfoAlgorithm::buildPFTauTagInfo(const PFJetRef& thePFJ
PFCandidateRefVector thePFCands;
const float jetPhi = (*thePFJet).phi();
const float jetEta = (*thePFJet).eta();
auto dr2 = [jetPhi,jetEta](float phi, float eta) { return (eta-jetEta)*(eta-jetEta)* + (phi-jetPhi)*(phi-jetPhi);};
auto dr2 = [jetPhi,jetEta](float phi, float eta) { float dp=std::abs(phi-jetPhi); if (dp>float(M_PI)) dp-=float(2*M_PI); return (eta-jetEta)*(eta-jetEta)* + dp*dp;};
for (auto iPFCand : thePFCandsInEvent){
float delta = dr2((*iPFCand).phi(),(*iPFCand).eta());
if (delta < ChargedHadronsAssociationCone_*ChargedHadronsAssociationCone_) thePFCands.push_back(iPFCand);
Expand Down

0 comments on commit ce6fae7

Please sign in to comment.