From d9ae13f1a4b2d5fa9e3810a3e24a4cad8d29f2f9 Mon Sep 17 00:00:00 2001 From: scott snyder <sss@karma> Date: Thu, 18 Jun 2020 00:00:55 -0400 Subject: [PATCH] EventBoost: Fix uninitialized properties. Make sure all properties are initialized in the ctor. Otherwise genconf will write garbage for the default values. --- Generators/GenAnalysisTools/EventBoost/src/EventBoost.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Generators/GenAnalysisTools/EventBoost/src/EventBoost.cxx b/Generators/GenAnalysisTools/EventBoost/src/EventBoost.cxx index fc3cbf654d4..9fcb86b8ccf 100755 --- a/Generators/GenAnalysisTools/EventBoost/src/EventBoost.cxx +++ b/Generators/GenAnalysisTools/EventBoost/src/EventBoost.cxx @@ -36,11 +36,11 @@ EventBoost::EventBoost( const std::string& name, : AthAlgorithm(name, pSvcLocator), m_nModifiedEvent(0), m_nFailedEvent(0), m_nModifiedTotal(0), m_nFailedTotal(0), m_flat_rand_x(0.), m_flat_rand_y(0.), m_flat_rand_z(0.), m_gauss_rand_x(0.), m_gauss_rand_y(0.), m_gauss_rand_z(0.), m_pxsum(0.) { - declareProperty("BeamInclination", m_beam_inclination ); + declareProperty("BeamInclination", m_beam_inclination = 0); declareProperty("GenEvtInputKey", m_genEvtInKey ); declareProperty("GenEvtOutputKey", m_genEvtOutKey ); - declareProperty("DoGaussianVertexSmearing", m_gaussian_vertex_smearing ); - declareProperty("DoFlatVertexSmearing", m_flat_vertex_smearing ); + declareProperty("DoGaussianVertexSmearing", m_gaussian_vertex_smearing = false ); + declareProperty("DoFlatVertexSmearing", m_flat_vertex_smearing = false ); declareProperty("GaussianMean", m_gaussian_mean ); declareProperty("GaussianWidth", m_gaussian_width ); declareProperty("FlatSmearingBoundaryMin", m_flat_smearing_boundary_min ); -- GitLab