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 |
|
} |
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 |
|
} |
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 |
|
} |