Skip to content
Snippets Groups Projects
Commit 43e57c65 authored by hallc-online's avatar hallc-online Committed by Mark K Jones
Browse files

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.
parent 7811dcc9
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
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