Skip to content
Snippets Groups Projects
Commit d9ae13f1 authored by scott snyder's avatar scott snyder Committed by scott snyder
Browse files

EventBoost: Fix uninitialized properties.

Make sure all properties are initialized in the ctor.
Otherwise genconf will write garbage for the default values.
parent e8df3bb2
No related branches found
No related tags found
No related merge requests found
......@@ -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 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment