Skip to content

Commit

Permalink
abs to std::abs. also move include line.
Browse files Browse the repository at this point in the history
  • Loading branch information
hatakeyamak committed Feb 11, 2021
1 parent 4f83c04 commit 78186ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <algorithm>
#include <queue>
#include <cfloat>
#include "DataFormats/Math/interface/deltaPhi.h"
#include "CommonTools/Utils/interface/DynArray.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"

Expand Down Expand Up @@ -155,8 +156,8 @@ void LocalMaximumSeedFinder::findSeeds(const edm::Handle<reco::PFRecHitCollectio
auto const& nei = (*input)[neighbour];
if (maybeseed.depth() != nei.depth())
continue; // masking is done only if the neighbor is on the same depth layer as the seed
if ((abs(deltaPhi(maybeseed.positionREP().phi(), nei.positionREP().phi())) > dphicut) &&
(abs(maybeseed.positionREP().eta() - nei.positionREP().eta()) > detacut))
if (std::abs(deltaPhi(maybeseed.positionREP().phi(), nei.positionREP().phi())) > dphicut &&
std::abs(maybeseed.positionREP().eta() - nei.positionREP().eta()) > detacut)
continue; // masking is done only if the neighbor is on the swiss-cross w.r.t. the seed
break;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef __LocalMaximumSeedFinder_H__
#define __LocalMaximumSeedFinder_H__

#include "DataFormats/Math/interface/deltaPhi.h"
#include "RecoParticleFlow/PFClusterProducer/interface/SeedFinderBase.h"

#include <unordered_map>
Expand Down

0 comments on commit 78186ff

Please sign in to comment.