From 43e57c65653359f7f72fcde02002e38464dc95f4 Mon Sep 17 00:00:00 2001 From: hallc-online <hallconline@gmail.com> Date: Tue, 14 Aug 2018 14:00:28 -0400 Subject: [PATCH] Modify src/THcRaster.cxx Add default values for optional values of + fgbpma_zpos = 370.82; fgbpmb_zpos = 224.96 ;// cm fgbpmc_zpos = 129.30 ;// cm instead of zero. Otherwise the code would get NaN for the calculated target beam position since it was divied by zero unless this the parameters are set. --- src/THcRaster.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/THcRaster.cxx b/src/THcRaster.cxx index 18cc2c1..9342679 100644 --- a/src/THcRaster.cxx +++ b/src/THcRaster.cxx @@ -193,7 +193,10 @@ Int_t THcRaster::ReadDatabase( const TDatime& date ) {"usefr", &fgusefr, kInt,0,1}, {0} }; - + // + fgbpma_zpos = 370.82; + fgbpmb_zpos = 224.96 ;// cm + fgbpmc_zpos = 129.30 ;// cm // Default offsets to zero and slopes to +/- 1 fgbeam_xoff = 0.0; fgbeam_xpoff = 0.0; -- GitLab