Skip to content
Snippets Groups Projects
Commit 1da1ab9f authored by FU Chengdong's avatar FU Chengdong
Browse files

remove hardcode vaules to defs files

parent 3416ea2c
No related branches found
No related tags found
No related merge requests found
...@@ -15,16 +15,16 @@ ...@@ -15,16 +15,16 @@
<!-- central tube --> <!-- central tube -->
<section type ="Center" <section type ="Center"
start="0*mm" end="500*mm" start="0*mm" end="TUBE_innerCylinder_zEnd_real"
rMin1="TUBE_innerCylinder_rInner" rMin2="TUBE_innerCylinder_rInner" rMin1="TUBE_innerCylinder_rInner" rMin2="TUBE_innerCylinder_rInner"
rMax1="TUBE_innerCylinder_rInner+TUBE_innerCylinder_thickness" rMax2="TUBE_innerCylinder_rInner+TUBE_innerCylinder_thickness" rMax1="TUBE_innerCylinder_rInner+TUBE_innerCylinder_thickness" rMax2="TUBE_innerCylinder_rInner+TUBE_innerCylinder_thickness"
material="G4_Be" name="IPInnerTube" /> material="G4_Be" name="IPInnerTube" />
<!-- first cone --> <!-- first cone -->
<section type ="Center" <section type ="Center"
start="500*mm" end="700*mm" start="TUBE_innerCylinder_zEnd_real" end="TUBE_firstCone_zEnd_real"
rMin1="TUBE_innerCylinder_rInner" rMin2="17*mm" rMin1="TUBE_innerCylinder_rInner" rMin2="TUBE_firstCone_rInnerEnd_real"
rMax1="TUBE_innerCylinder_rInner+TUBE_innerCylinder_thickness" rMax2="17.5*mm" rMax1="TUBE_innerCylinder_rInner+TUBE_innerCylinder_thickness" rMax2="TUBE_firstCone_rInnerEnd_real+TUBE_firstCone_thickness"
material="G4_Be" name="IPInnerBulge" /> material="G4_Be" name="IPInnerBulge" />
<!-- second cylinder --> <!-- second cylinder -->
......
<define> <define>
<constant name="TUBE_innerCylinder_zEnd_real" value="500*mm"/>
<constant name="TUBE_innerCylinder_zEnd" value="TUBE_IPInnerTube_end_z"/> <constant name="TUBE_innerCylinder_zEnd" value="TUBE_IPInnerTube_end_z"/>
<constant name="TUBE_innerCylinder_rInner" value="TUBE_central_inner_radius"/> <constant name="TUBE_innerCylinder_rInner" value="TUBE_central_inner_radius"/>
<constant name="TUBE_innerCylinder_thickness" value="TUBE_central_thickness"/> <constant name="TUBE_innerCylinder_thickness" value="TUBE_central_thickness"/>
<constant name="TUBE_firstCone_zEnd_real" value="700*mm"/>
<constant name="TUBE_firstCone_zStart" value="TUBE_innerCylinder_zEnd"/> <constant name="TUBE_firstCone_zStart" value="TUBE_innerCylinder_zEnd"/>
<constant name="TUBE_firstCone_zEnd" value="TUBE_IPInnerBulge_end_z"/> <constant name="TUBE_firstCone_zEnd" value="TUBE_IPInnerBulge_end_z"/>
<constant name="TUBE_firstCone_rInnerStart" value="TUBE_innerCylinder_rInner"/> <constant name="TUBE_firstCone_rInnerStart" value="TUBE_innerCylinder_rInner"/>
<constant name="TUBE_firstCone_rInnerEnd" value="TUBE_IPInnerBulge_end_innerradius"/> <constant name="TUBE_firstCone_rInnerEnd" value="TUBE_IPInnerBulge_end_innerradius"/>
<constant name="TUBE_firstCone_thickness" value="0.5*mm"/> <constant name="TUBE_firstCone_thickness" value="0.5*mm"/>
<constant name="TUBE_firstCone_rInnerEnd_real" value="17*mm"/>
<!-- <!--
D. Jeans, update april 2017 D. Jeans, update april 2017
in this driver, we have to define the what I call the radial thickness in this driver, we have to define the what I call the radial thickness
......
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