Skip to content
Snippets Groups Projects

eflowRec: Fix memory `leak'

Merged Scott Snyder requested to merge ssnyder/athena:leak.eflowRec-20210326 into master
All threads resolved!
9 files
+ 94
79
Compare changes
  • Side-by-side
  • Inline
Files
9
/*
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
*/
*/
/*
/*
@@ -125,14 +125,14 @@ public:
@@ -125,14 +125,14 @@ public:
inline void setEtaSq(double xSq) { m_etaSq = xSq; }
inline void setEtaSq(double xSq) { m_etaSq = xSq; }
inline double evaluateStdExp(double rSq) { return m_norm * exp(-rSq * m_oneOverTwoSigmaSq); }
inline double evaluateStdExp(double rSq) const { return m_norm * exp(-rSq * m_oneOverTwoSigmaSq); }
inline double evaluateLookupExp(double rSq) { return m_lookupExp->evaluate(rSq * m_oneOverTwoSigmaSq)*m_norm; }
inline double evaluateLookupExp(double rSq) const { return m_lookupExp->evaluate(rSq * m_oneOverTwoSigmaSq)*m_norm; }
/** The evaluate method for the integration. The implementation depends on the template parameter */
/** The evaluate method for the integration. The implementation depends on the template parameter */
inline double evaluate(double y);
inline double evaluate(double y);
private:
private:
eflowLookupExp* m_lookupExp;
const eflowLookupExp* m_lookupExp;
double m_oneOverTwoSigmaSq;
double m_oneOverTwoSigmaSq;
double m_norm;
double m_norm;
double m_etaSq;
double m_etaSq;
Loading