diff --git a/PhysicsTools/IsolationAlgos/plugins/CandIsolatorFromDeposits.cc b/PhysicsTools/IsolationAlgos/plugins/CandIsolatorFromDeposits.cc index f800cb77d708e..476a952d70dd9 100644 --- a/PhysicsTools/IsolationAlgos/plugins/CandIsolatorFromDeposits.cc +++ b/PhysicsTools/IsolationAlgos/plugins/CandIsolatorFromDeposits.cc @@ -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(iConfig.getParameter("src"))),