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
6 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!35107EventBoost: Fix uninitialized properties.
...@@ -36,11 +36,11 @@ EventBoost::EventBoost( const std::string& name, ...@@ -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), : 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.) 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("GenEvtInputKey", m_genEvtInKey );
declareProperty("GenEvtOutputKey", m_genEvtOutKey ); declareProperty("GenEvtOutputKey", m_genEvtOutKey );
declareProperty("DoGaussianVertexSmearing", m_gaussian_vertex_smearing ); declareProperty("DoGaussianVertexSmearing", m_gaussian_vertex_smearing = false );
declareProperty("DoFlatVertexSmearing", m_flat_vertex_smearing ); declareProperty("DoFlatVertexSmearing", m_flat_vertex_smearing = false );
declareProperty("GaussianMean", m_gaussian_mean ); declareProperty("GaussianMean", m_gaussian_mean );
declareProperty("GaussianWidth", m_gaussian_width ); declareProperty("GaussianWidth", m_gaussian_width );
declareProperty("FlatSmearingBoundaryMin", m_flat_smearing_boundary_min ); 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