hps-detectors/gdml
diff -N ecal_vacuum_flange_simple_v2.gdml
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ ecal_vacuum_flange_simple_v2.gdml 12 Jul 2013 18:30:15 -0000 1.1
@@ -0,0 +1,183 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
+<!--
+ ECal vacuum flange based on manufacturing drawings from Stepan.
+ @author Sho Uemura <[log in to unmask]>
+ @version $Id: ecal_vacuum_flange_simple_v2.gdml,v 1.1 2013/07/12 18:30:15 meeg Exp $
+-->
+<gdml xmlns:gdml="http://cern.ch/2001/Schemas/GDML" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.lcsim.org/schemas/gdml/1.0/gdml.xsd" >
+
+ <define/>
+
+ <materials>
+ <material Z="1" name="G4_Galactic" state="gas">
+ <T unit="K" value="2.73"/>
+ <P unit="pascal" value="3e-18"/>
+ <!-- <MEE unit="eV" value="21.8"/> -->
+ <D unit="g/cm3" value="1e-25"/>
+ <atom unit="g/mole" value="1.01"/>
+ </material>
+ <material Z="13" formula=" " name="Aluminum" >
+ <D value="2.7" />
+ <atom value="26.9815" />
+ </material>
+ </materials>
+
+ <solids>
+ <box lunit="mm" name="front_flange_box" x="768.35" y="457.2" z="20"/>
+ <box lunit="mm" name="back_flange_box" x="505" y="160" z="20"/>
+ <trap name="chamber_base_trap" aunit="deg" lunit="mm" z="450" theta="1.864" phi="0" y1="28" x1="377" x2="377" alpha1="0"
+ y2="28" x3="406.29" x4="406.29" alpha2="0"/>
+
+ <box lunit="mm" name="chamber_cutaway_box" x="500" y="10" z="265"/>
+
+ <subtraction name="chamber_base_1">
+ <first ref="chamber_base_trap"/>
+ <second ref="chamber_cutaway_box"/>
+ <position name="chamber_base_pos" unit="mm" x="0" y="16" z="-72.5"/>
+ </subtraction>
+ <subtraction name="chamber_base">
+ <first ref="chamber_base_1"/>
+ <second ref="chamber_cutaway_box"/>
+ <position name="chamber_base_pos" unit="mm" x="0" y="-16" z="-72.5"/>
+ </subtraction>
+
+ <union name="ecal_flange_1">
+ <first ref="front_flange_box"/>
+ <second ref="chamber_base"/>
+ <position name="chamber_base_pos" unit="mm" x="140.828" y="0" z="215"/>
+ </union>
+ <union name="ecal_flange_2">
+ <first ref="ecal_flange_1"/>
+ <second ref="back_flange_box"/>
+ <position name="back_flange_box_pos" unit="mm" x="147.505" y="0" z="430"/>
+ </union>
+
+
+ <eltube name="photontube_outside" lunit="mm" dx="17" dy="17" dz="235"/>
+
+ <union name="flange_with_photontube">
+ <first ref="ecal_flange_2"/>
+ <second ref="photontube_outside"/>
+ <position name="photontube_outside_pos" unit="mm" x="-26.569" y="0" z="215"/>
+ <rotation name="photontube_outside_rot" unit="deg" x="0" y="-1.748" z="0"/>
+ </union>
+ <box lunit="mm" name="photontube_cutaway_box" x="75" y="10" z="145"/>
+ <subtraction name="flange_with_photontube_trim1">
+ <first ref="flange_with_photontube"/>
+ <second ref="photontube_cutaway_box"/>
+ <position name="photontube_trim1_pos" unit="mm" x="-26.569" y="19" z="347.5"/>
+ </subtraction>
+ <subtraction name="flange_with_photontube_trim2">
+ <first ref="flange_with_photontube_trim1"/>
+ <second ref="photontube_cutaway_box"/>
+ <position name="photontube_trim1_pos" unit="mm" x="-26.569" y="-19" z="347.5"/>
+ </subtraction>
+
+
+ <trap name="egap_outside_trap_upper" aunit="deg" lunit="mm" z="450" theta="4.796" phi="0" y1="32.33" x1="106.962" x2="52.344" alpha1="-0.269"
+ y2="32.33" x3="167.411" x4="112.843" alpha2="-0.269"/>
+ <trap name="egap_outside_trap_lower" aunit="deg" lunit="mm" z="450" theta="4.796" phi="0" y1="32.33" x2="106.962" x1="52.344" alpha1="0.269"
+ y2="32.33" x4="167.411" x3="112.843" alpha2="0.269"/>
+ <union name="egap_outside">
+ <first ref="egap_outside_trap_upper"/>
+ <second ref="egap_outside_trap_lower"/>
+ <position name="egap_outside_trap_pos" unit="mm" x="0" y="-32.33" z="0"/>
+ </union>
+ <subtraction name="egap_outside_trim1">
+ <first ref="egap_outside"/>
+ <second ref="chamber_cutaway_box"/>
+ <position name="egap_trim1_pos" unit="mm" x="0" y="18.165" z="-72.5"/>
+ </subtraction>
+ <subtraction name="egap_outside_trim2">
+ <first ref="egap_outside_trim1"/>
+ <second ref="chamber_cutaway_box"/>
+ <position name="egap_trim2_pos" unit="mm" x="0" y="-50.495" z="-72.5"/>
+ </subtraction>
+
+ <union name="flange_outside">
+ <first ref="flange_with_photontube_trim2"/>
+ <second ref="egap_outside_trim2"/>
+ <position name="egap_outside_pos" unit="mm" x="63.810" y="16.165" z="215"/>
+ </union>
+
+
+ <subtraction name="flange_outside_trim1">
+ <first ref="flange_outside"/>
+ <second ref="front_flange_box"/>
+ <position name="outside_trim1_pos" unit="mm" x="0" y="0" z="-20"/>
+ </subtraction>
+ <subtraction name="flange_outside_trim2">
+ <first ref="flange_outside_trim1"/>
+ <second ref="front_flange_box"/>
+ <position name="outside_trim2_pos" unit="mm" x="0" y="0" z="450"/>
+ </subtraction>
+
+
+ <eltube name="photontube_inside" lunit="mm" dx="11" dy="11" dz="235"/>
+
+ <subtraction name="flange_minus_photontube">
+ <first ref="flange_outside_trim2"/>
+ <second ref="photontube_inside"/>
+ <position name="photontube_inside_pos" unit="mm" x="-26.569" y="0" z="215"/>
+ <rotation name="photontube_inside_rot" unit="deg" x="0" y="-1.748" z="0"/>
+ </subtraction>
+
+
+ <trap name="chamber_inside_trap" aunit="deg" lunit="mm" z="450" theta="0.988" phi="0" y1="16" x1="331.676" x2="331.676" alpha1="0"
+ y2="16" x3="374.667" x4="374.667" alpha2="0"/>
+
+ <subtraction name="flange_minus_inside">
+ <first ref="flange_minus_photontube"/>
+ <second ref="chamber_inside_trap"/>
+ <position name="flange_inside_pos" unit="mm" x="150.017" y="0" z="215"/>
+ </subtraction>
+
+
+ <trap name="egap_inside_trap" aunit="deg" lunit="mm" z="450" theta="4.796" phi="0" y1="52.66" x1="26.355" x2="26.355" alpha1="0"
+ y2="52.66" x3="86.854" x4="86.854" alpha2="0"/>
+
+ <subtraction name="flange_minus_egapinside">
+ <first ref="flange_minus_inside"/>
+ <second ref="egap_inside_trap"/>
+ <position name="egap_inside_pos" unit="mm" x="62.723" y="0" z="215"/>
+ </subtraction>
+
+
+ <eltube name="egap_inside_tube" lunit="mm" dx="26.33" dy="26.33" dz="240"/>
+
+ <subtraction name="flange_minus_egap_left">
+ <first ref="flange_minus_egapinside"/>
+ <second ref="egap_inside_tube"/>
+ <position name="egap_inside_left_pos" unit="mm" x="34.4205" y="0" z="215"/>
+ <rotation name="egap_inside_left_rot" unit="deg" x="0" y="0.956" z="0"/>
+ </subtraction>
+ <subtraction name="flange_minus_egap_right">
+ <first ref="flange_minus_egap_left"/>
+ <second ref="egap_inside_tube"/>
+ <position name="egap_inside_right_pos" unit="mm" x="91.025" y="0" z="215"/>
+ <rotation name="egap_inside_rightt_rot" unit="deg" x="0" y="8.594" z="0"/>
+ </subtraction>
+
+ <box lunit="mm" name="WorldBox" x="80000" y="80000" z="80000" />
+ </solids>
+
+ <structure>
+ <volume name="ecal_flange_vol">
+ <materialref ref="Aluminum"/>
+ <solidref ref="flange_minus_egap_right"/>
+ </volume>
+ <volume name="world_volume" >
+ <materialref ref="G4_Galactic" />
+ <solidref ref="WorldBox" />
+ <physvol>
+ <volumeref ref="ecal_flange_vol" />
+ <position name="ecal_flange_position" x="21.17" y="0" z="323.778" />
+ </physvol>
+ </volume>
+ </structure>
+
+ <setup name="Default" version="1.0">
+ <world ref="world_volume"/>
+ </setup>
+
+</gdml>
hps-detectors/gdml
diff -u -r1.4 -r1.5
--- ecal_vacuum_flange_simple.gdml 29 Jan 2013 23:22:05 -0000 1.4
+++ ecal_vacuum_flange_simple.gdml 12 Jul 2013 18:30:15 -0000 1.5
@@ -2,7 +2,7 @@
<!--
Tessellated solid for electron run vacuum flange, not tested.
@author Sho Uemura <[log in to unmask]>
- @version $Id: ecal_vacuum_flange_simple.gdml,v 1.4 2013/01/29 23:22:05 meeg Exp $
+ @version $Id: ecal_vacuum_flange_simple.gdml,v 1.5 2013/07/12 18:30:15 meeg Exp $
-->
<gdml xmlns:gdml="http://cern.ch/2001/Schemas/GDML" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.lcsim.org/schemas/gdml/1.0/gdml.xsd" >
@@ -189,6 +189,10 @@
<volumeref ref="Bottom_front_flange_d_vol"/>
<position name="Bottom_front_flange_d_pos_2" unit="mm" x="0+flange_x" y="-119.8" z="-215+flange_z"/>
</physvol>
+ <physvol name="Top_front_flange_d_phys">
+ <volumeref ref="Top_front_flange_d_vol"/>
+ <position name="Top_front_flange_d_pos_2" unit="mm" x="0+flange_x" y="119.8" z="-215+flange_z"/>
+ </physvol>
<physvol name="Vacuum_tube_phys">
<volumeref ref="Vacuum_tube_vol"/>
<position name="Vacuum_tube_pos_2" unit="mm" x="-61.75+flange_x" y="0" z="0+flange_z"/>
@@ -213,10 +217,6 @@
<volumeref ref="QLeft_block1_cut_vol"/>
<position name="QLeft_block1_cut_pos_2" unit="mm" x="40.783+flange_x" y="0" z="0+flange_z"/>
</physvol>
- <physvol name="Top_front_flange_d_phys">
- <volumeref ref="Top_front_flange_d_vol"/>
- <position name="Top_front_flange_d_pos_2" unit="mm" x="0+flange_x" y="119.8" z="-215+flange_z"/>
- </physvol>
<physvol name="Top_side_plate_phys">
<volumeref ref="Top_side_plate_vol"/>
<position name="Top_side_plate_pos_2" unit="mm" x="-224.205+flange_x" y="9.5" z="0+flange_z"/>