Skip to content

Commit

Permalink
Merge pull request #40984 from Dr15Jones/namespaceCandIsolatorFromDep…
Browse files Browse the repository at this point in the history
…osits

Use anonymous namespace in CandIsolatorFromDeposits
  • Loading branch information
cmsbuild authored Mar 8, 2023
2 parents cb7115d + 1b2a30d commit d1db54c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions PhysicsTools/IsolationAlgos/plugins/CandIsolatorFromDeposits.cc
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,13 @@ using namespace edm;
using namespace reco;
using namespace reco::isodeposit;

bool isNumber(const std::string &str) {
static const std::regex re("^[+-]?(\\d+\\.?|\\d*\\.\\d*)$");
return regex_match(str.c_str(), re);
}
double toNumber(const std::string &str) { return atof(str.c_str()); }
namespace {
bool isNumber(const std::string &str) {
static const std::regex re("^[+-]?(\\d+\\.?|\\d*\\.\\d*)$");
return regex_match(str.c_str(), re);
}
double toNumber(const std::string &str) { return atof(str.c_str()); }
} // namespace

CandIsolatorFromDeposits::SingleDeposit::SingleDeposit(const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iC)
: srcToken_(iC.consumes<reco::IsoDepositMap>(iConfig.getParameter<edm::InputTag>("src"))),
Expand Down

0 comments on commit d1db54c

Please sign in to comment.