From e19bd66975c736c728b14e85a3ee5e6fa5170fef Mon Sep 17 00:00:00 2001 From: Patrick Gartung Date: Tue, 13 Dec 2016 21:01:21 -0600 Subject: [PATCH 1/2] PhysicsTools/IsolationUtils: fix clang warning hides overloaded virtual function by changing paramenters to match base class function. --- PhysicsTools/IsolationUtils/interface/ConeAreaFunction.h | 2 +- PhysicsTools/IsolationUtils/interface/IntegralOverPhiFunction.h | 2 +- PhysicsTools/IsolationUtils/interface/IntegrandThetaFunction.h | 2 +- PhysicsTools/IsolationUtils/src/ConeAreaFunction.cc | 2 +- PhysicsTools/IsolationUtils/src/IntegralOverPhiFunction.cc | 2 +- PhysicsTools/IsolationUtils/src/IntegrandThetaFunction.cc | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/PhysicsTools/IsolationUtils/interface/ConeAreaFunction.h b/PhysicsTools/IsolationUtils/interface/ConeAreaFunction.h index fd1ea7bcd300c..72ca5ad449faf 100644 --- a/PhysicsTools/IsolationUtils/interface/ConeAreaFunction.h +++ b/PhysicsTools/IsolationUtils/interface/ConeAreaFunction.h @@ -47,7 +47,7 @@ class ConeAreaFunction : public ROOT::Math::ParamFunction 0 ) { edm::LogVerbatim("") << ":" << std::endl diff --git a/PhysicsTools/IsolationUtils/src/IntegralOverPhiFunction.cc b/PhysicsTools/IsolationUtils/src/IntegralOverPhiFunction.cc index bf39a275be50f..2ff80aad13a3a 100644 --- a/PhysicsTools/IsolationUtils/src/IntegralOverPhiFunction.cc +++ b/PhysicsTools/IsolationUtils/src/IntegralOverPhiFunction.cc @@ -97,7 +97,7 @@ void IntegralOverPhiFunction::SetParameterAlpha(double alpha) alpha_ = alpha; } -void IntegralOverPhiFunction::SetParameters(double* param) +void IntegralOverPhiFunction::SetParameters(const double* param) { theta0_ = param[0]; phi0_ = param[1]; diff --git a/PhysicsTools/IsolationUtils/src/IntegrandThetaFunction.cc b/PhysicsTools/IsolationUtils/src/IntegrandThetaFunction.cc index 3fdce92094991..7e6e3d5540f60 100644 --- a/PhysicsTools/IsolationUtils/src/IntegrandThetaFunction.cc +++ b/PhysicsTools/IsolationUtils/src/IntegrandThetaFunction.cc @@ -95,7 +95,7 @@ void IntegrandThetaFunction::SetParameterAlpha(double alpha) alpha_ = alpha; } -void IntegrandThetaFunction::SetParameters(double* param) +void IntegrandThetaFunction::SetParameters(const double* param) { theta0_ = param[0]; phi0_ = param[1]; From d8854718c6ed1fb94edbaf3ad95599f66196f669 Mon Sep 17 00:00:00 2001 From: Patrick Gartung Date: Mon, 19 Dec 2016 11:11:25 -0600 Subject: [PATCH 2/2] add override keyword where needed --- .../IsolationUtils/interface/ConeAreaFunction.h | 10 +++++----- .../IsolationUtils/interface/ConeAreaRootFunction.h | 6 +++--- .../IsolationUtils/interface/IntegralOverPhiFunction.h | 10 +++++----- .../IsolationUtils/interface/IntegrandThetaFunction.h | 10 +++++----- .../IsolationUtils/src/ConeAreaRootFunction.cc | 2 +- 5 files changed, 19 insertions(+), 19 deletions(-) diff --git a/PhysicsTools/IsolationUtils/interface/ConeAreaFunction.h b/PhysicsTools/IsolationUtils/interface/ConeAreaFunction.h index 72ca5ad449faf..1894a48409140 100644 --- a/PhysicsTools/IsolationUtils/interface/ConeAreaFunction.h +++ b/PhysicsTools/IsolationUtils/interface/ConeAreaFunction.h @@ -44,15 +44,15 @@ class ConeAreaFunction : public ROOT::Math::ParamFunction 0 ) { edm::LogVerbatim("") << ":" << std::endl