Skip to content
Snippets Groups Projects
Commit 71a823ae authored by Mark Jones's avatar Mark Jones Committed by Stephen A. Wood
Browse files

In THcHodoscope::ReadDatabase make reading in fTofTolerance optional and set default = 3.0

Fix  fStartTime=32. in THcHodoscope::Decode
parent 51f5ca37
No related branches found
No related tags found
No related merge requests found
...@@ -392,7 +392,7 @@ Int_t THcHodoscope::ReadDatabase( const TDatime& date ) ...@@ -392,7 +392,7 @@ Int_t THcHodoscope::ReadDatabase( const TDatime& date )
{"scin_tdc_to_time", &fScinTdcToTime, kDouble}, {"scin_tdc_to_time", &fScinTdcToTime, kDouble},
{"scin_tdc_min", &fScinTdcMin, kDouble}, {"scin_tdc_min", &fScinTdcMin, kDouble},
{"scin_tdc_max", &fScinTdcMax, kDouble}, {"scin_tdc_max", &fScinTdcMax, kDouble},
{"tof_tolerance", &fTofTolerance, kDouble}, {"tof_tolerance", &fTofTolerance, kDouble,0,1},
{"pathlength_central", &fPathLengthCentral, kDouble}, {"pathlength_central", &fPathLengthCentral, kDouble},
{"hodo_vel_light",&fHodoVelLight[0],kDouble,fMaxHodoScin}, {"hodo_vel_light",&fHodoVelLight[0],kDouble,fMaxHodoScin},
{"hodo_pos_sigma",&fHodoPosSigma[0],kDouble,fMaxHodoScin}, {"hodo_pos_sigma",&fHodoPosSigma[0],kDouble,fMaxHodoScin},
...@@ -409,6 +409,7 @@ Int_t THcHodoscope::ReadDatabase( const TDatime& date ) ...@@ -409,6 +409,7 @@ Int_t THcHodoscope::ReadDatabase( const TDatime& date )
{0} {0}
}; };
fTofUsingInvAdc = 0; // Default if not defined fTofUsingInvAdc = 0; // Default if not defined
fTofTolerance = 3.0; // Default if not defined
gHcParms->LoadParmValues((DBRequest*)&list,prefix); gHcParms->LoadParmValues((DBRequest*)&list,prefix);
if (fTofUsingInvAdc) { if (fTofUsingInvAdc) {
DBRequest list2[]={ DBRequest list2[]={
...@@ -637,6 +638,7 @@ Int_t THcHodoscope::Decode( const THaEvData& evdata ) ...@@ -637,6 +638,7 @@ Int_t THcHodoscope::Decode( const THaEvData& evdata )
fGoodStartTime=kFALSE; fGoodStartTime=kFALSE;
fStartTime=fStartTimeCenter; fStartTime=fStartTimeCenter;
} }
fStartTime=32.; // mkj force to constant
// cout <<" stats = "<<fGoodStartTime<<" "<<nfptimes<<" fStartTime = "<<fStartTime<<endl; // cout <<" stats = "<<fGoodStartTime<<" "<<nfptimes<<" fStartTime = "<<fStartTime<<endl;
// fRawHitList is TClones array of THcHodoscopeHit objects // fRawHitList is TClones array of THcHodoscopeHit objects
#if 0 #if 0
......
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