diff --git a/src/THcHodoscope.cxx b/src/THcHodoscope.cxx index b9abbbe224268e7e062bdfb4b4b866e0ab44714d..7d5ee6dff8e55cd97857237a409476f3c2e6b173 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) {