ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Utils/interface/MetTools.h
(Generate patch)

Comparing UserCode/MitPhysics/Utils/interface/MetTools.h (file contents):
Revision 1.7 by ceballos, Sat Sep 17 13:55:17 2011 UTC vs.
Revision 1.8 by sixie, Sun Jan 22 17:17:29 2012 UTC

# Line 89 | Line 89 | namespace mithep {
89      double minDPhi = 999;
90      int index = -1;
91      for (UInt_t m = 0; m < fV->GetEntries(); ++m) {
92 <      if (MathUtils::DeltaPhi(UncorrectedMet->Phi(), fV->At(m)->Phi()) < minDPhi) {
93 <        minDPhi = MathUtils::DeltaPhi(UncorrectedMet->Phi(), fV->At(m)->Phi());
92 >      if (fabs(MathUtils::DeltaPhi(UncorrectedMet->Phi(), fV->At(m)->Phi())) < minDPhi) {
93 >        minDPhi = fabs(MathUtils::DeltaPhi(UncorrectedMet->Phi(), fV->At(m)->Phi()));
94          index = m;
95        }
96      }
# Line 104 | Line 104 | namespace mithep {
104      double minDPhi = 999;
105      int index = -1;
106      for (UInt_t m = 0; m < fV->GetEntries(); ++m) {
107 <      if (MathUtils::DeltaPhi(fCorrectedMet.Phi(), fV->At(m)->Phi()) < minDPhi) {
108 <        minDPhi = MathUtils::DeltaPhi(fCorrectedMet.Phi(), fV->At(m)->Phi());
107 >      if (fabs(MathUtils::DeltaPhi(fCorrectedMet.Phi(), fV->At(m)->Phi())) < minDPhi) {
108 >        minDPhi = fabs(MathUtils::DeltaPhi(fCorrectedMet.Phi(), fV->At(m)->Phi()));
109          index = m;
110        }
111      }
# Line 119 | Line 119 | namespace mithep {
119      double minDPhi = 999;
120      int index = -1;
121      for (UInt_t m = 0; m < fV->GetEntries(); ++m) {
122 <      if (MathUtils::DeltaPhi(fCorrectedTrackMet.Phi(), fV->At(m)->Phi()) < minDPhi) {
123 <        minDPhi = MathUtils::DeltaPhi(fCorrectedTrackMet.Phi(), fV->At(m)->Phi());
122 >      if (fabs(MathUtils::DeltaPhi(fCorrectedTrackMet.Phi(), fV->At(m)->Phi())) < minDPhi) {
123 >        minDPhi = fabs(MathUtils::DeltaPhi(fCorrectedTrackMet.Phi(), fV->At(m)->Phi()));
124          index = m;
125        }
126      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines