Skip to content

Commit

Permalink
Fix memory hoard in EcalShapeBase
Browse files Browse the repository at this point in the history
  • Loading branch information
makortel committed Jan 11, 2019
1 parent b8365c6 commit 4ee3b46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SimCalorimetry/EcalSimAlgos/src/EcalShapeBase.cc
Expand Up @@ -63,7 +63,8 @@ EcalShapeBase::buildMe()
m_kNBinsPerNSec = (unsigned int) (10/time_interval); // used to be an unsigned int = 10 in < CMSSW10X, should work for time intervals ~0.1, 0.2, 0.5, 1
m_qNSecPerBin = time_interval/10.;

for(unsigned int i = 0; i < m_denseArraySize; ++i) { m_deriv.push_back(0.0); m_shape.push_back(0.0); }
m_deriv.resize(m_denseArraySize);
m_shape.resize(m_denseArraySize);

const double maxel ( *max_element( shapeArray.begin(), shapeArray.end() ) ) ;

Expand Down

0 comments on commit 4ee3b46

Please sign in to comment.