From 30b35853a7388ac36fcce778032bb36e33815de5 Mon Sep 17 00:00:00 2001 From: Ole Hansen <ole@jlab.org> Date: Sun, 6 Jan 2019 17:53:20 -0500 Subject: [PATCH] Fix uninitialized fHodoVelLight array --- src/THcHodoscope.cxx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/THcHodoscope.cxx b/src/THcHodoscope.cxx index b9abbbe..7d5ee6d 100644 --- a/src/THcHodoscope.cxx +++ b/src/THcHodoscope.cxx @@ -415,6 +415,11 @@ Int_t THcHodoscope::ReadDatabase( const TDatime& date ) // << " number of photo electrons = " << fNCerNPE // << endl; + //Set scin Velocity/Cable to default + for (UInt_t i=0; i<fMaxHodoScin; i++) { + fHodoVelLight[i] = 15.0; + } + if (fTofUsingInvAdc) { DBRequest list2[]={ {"hodo_vel_light", &fHodoVelLight[0], kDouble, fMaxHodoScin, 1}, @@ -427,13 +432,6 @@ Int_t THcHodoscope::ReadDatabase( const TDatime& date ) {0} }; - for (UInt_t i=0; i<fMaxHodoScin; i++) - { - //Set scin Velocity/Cable to default - fHodoVelLight[i] = 15.0; - - } - gHcParms->LoadParmValues((DBRequest*)&list2,prefix); }; /* if (!fTofUsingInvAdc) { -- GitLab