Skip to content

Commit

Permalink
Merge changes from RotatedPionDetectorSystem
Browse files Browse the repository at this point in the history
  • Loading branch information
wdconinc committed Jan 27, 2022
1 parent 0583311 commit 688b512
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 26 deletions.
4 changes: 2 additions & 2 deletions geometry/pion/Lucite/pionDetectorLucite.gdml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<!--
For enclosing volumes we merely scale up the actual volume by a small factor.
-->
<constant name="SCALE" value="0.1"/>
<constant name="SCALE" value="0.05"/>
<constant name="SCALE_UP" value="1.0+SCALE"/>
<constant name="SCALE_DOWN" value="1.0-SCALE"/>
<scale name="scale_up" x="SCALE_UP" y="SCALE_UP" z="SCALE_UP"/>
Expand All @@ -40,7 +40,7 @@
<constant name="pionDetectorLuciteWedgeBevelFraction" value="0.01"/> <!-- in ]0, 1[ -->
<constant name="pionDetectorLuciteWedgeHeightFraction" value="0.5"/> <!-- in ]0, inf[ -->

<quantity name="pionDetectorLuciteReflectorLightGuideHeight" type="length" value="40.0" unit="cm"/>
<quantity name="pionDetectorLuciteReflectorLightGuideHeight" type="length" value="0.01" unit="cm"/>
<quantity name="pionDetectorLuciteReflectorHeightFraction" value="0.5"/>
<quantity name="pionDetectorLuciteLightGuideHeightFraction"
value="1.0-pionDetectorLuciteReflectorHeightFraction"/>
Expand Down
66 changes: 48 additions & 18 deletions geometry/pion/Lucite/pionDetectorLuciteSector.gdml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
you modify the angle below so as to avoid overlaps between this volume and
the trigger scintillator and volumes.
-->
<quantity name="pionDetectorLuciteLength" type="length" value="2.0*2.54" unit="cm"/>
<quantity name="pionDetectorLuciteLength" type="length" value="10.0*2.54" unit="cm"/>

<!--
The Cherenkov critical angle for n = 1.5 materials is cos(theta_c) = 1/n,
Expand All @@ -44,7 +44,7 @@
PMT radially outward; -90.0 degrees is with the PMT radially inward.
-->
<quantity name="pionDetectorLuciteSectorAngleBase" type="angle" value="+90.0" unit="deg"/>
<quantity name="pionDetectorLuciteSectorAnglePitch" type="angle" value="0.0" unit="rad"/>
<quantity name="pionDetectorLuciteSectorAnglePitch" type="angle" value="-90.0" unit="deg"/>

<!--
The lucite detector is placed radially in reference to the the center of the
Expand All @@ -56,18 +56,23 @@
<!--
The lucite detector shielding ...
-->
<quantity name="pionDetectorLuciteShieldDSThickness" type="length" value="2.54/2" unit="cm"/>
<quantity name="pionDetectorLuciteShieldDSInsideWidth" type="length" value="50.0" unit="cm"/>
<quantity name="pionDetectorLuciteShieldDSOutsideWidth" type="length" value="54.5" unit="cm"/>
<!-- <quantity name="pionDetectorLuciteShieldDSThickness" type="length" value="2.54/2" unit="cm"/>
<quantity name="pionDetectorLuciteShieldDSInsideWidth" type="length" value="49.0" unit="cm"/>
<quantity name="pionDetectorLuciteShieldDSOutsideWidth" type="length" value="53.5" unit="cm"/>
<quantity name="pionDetectorLuciteShieldDSHeight" type="length" value="10" unit="cm"/>
<quantity name="pionDetectorLuciteShieldDSTheta" type="angle" value="0" unit="deg"/>
<quantity name="pionDetectorLuciteShieldDSThicknessInY"
value="pionDetectorLuciteShieldDSThickness/cos(pionDetectorLuciteShieldDSTheta)"/>
value="pionDetectorLuciteShieldDSThickness/cos(pionDetectorLuciteShieldDSTheta)"/> -->

<quantity name="pionDetectorLuciteShieldINThickness" type="length" value="2.54/2" unit="cm"/>
<quantity name="pionDetectorLuciteShieldINInsideWidth" type="length" value="49.0" unit="cm"/>
<quantity name="pionDetectorLuciteShieldINOutsideWidth" type="length" value="49.5" unit="cm"/>
<quantity name="pionDetectorLuciteShieldINDepth" type="length" value="1.8*2.54" unit="cm"/>
<quantity name="pionDetectorLuciteShieldINDepth" type="length" value="10*2.54" unit="cm"/>

<quantity name="pionDetectorLuciteShieldOUThickness" type="length" value="2.54/2" unit="cm"/>
<quantity name="pionDetectorLuciteShieldOUInsideWidth" type="length" value="49.0" unit="cm"/>
<quantity name="pionDetectorLuciteShieldOUOutsideWidth" type="length" value="49.5" unit="cm"/>
<quantity name="pionDetectorLuciteShieldOUDepth" type="length" value="10*2.54" unit="cm"/>

</define>

Expand All @@ -76,17 +81,17 @@

<solids>
<tube name="pionDetectorLuciteSector_solid"
rmin="1.01*pionDetectorLuciteInnerRadius"
rmax="0.99*pionDetectorLuciteOuterRadius"
z="0.99*pionDetectorLuciteLength"
rmin="1.02*pionDetectorLuciteInnerRadius"
rmax="pionDetectorLuciteOuterRadius"
z="pionDetectorLuciteLength"
startphi="-0.99*PHI/2.0" deltaphi="0.99*PHI" aunit="deg"/>
<tube name="pionDetectorLuciteAllSectors_solid"
rmin="pionDetectorLuciteInnerRadius"
rmax="pionDetectorLuciteOuterRadius"
z="pionDetectorLuciteLength"
startphi="0" deltaphi="360.0" aunit="deg"/>

<trap name="pionDetectorLuciteShieldDS_solid"
<!-- <trap name="pionDetectorLuciteShieldDS_solid"
alpha1="0.0" alpha2="0.0"
theta="pionDetectorLuciteShieldDSTheta" phi="90.0*deg"
x1="pionDetectorLuciteShieldDSInsideWidth"
Expand All @@ -95,7 +100,7 @@
x4="pionDetectorLuciteShieldDSOutsideWidth"
y1="pionDetectorLuciteShieldDSThicknessInY"
y2="pionDetectorLuciteShieldDSThicknessInY"
z="pionDetectorLuciteShieldDSHeight"/>
z="pionDetectorLuciteShieldDSHeight"/> -->
<trap name="pionDetectorLuciteShieldIN_solid"
alpha1="0.0" alpha2="0.0"
theta="0.0" phi="0.0"
Expand All @@ -106,22 +111,40 @@
y1="pionDetectorLuciteShieldINInsideWidth"
y2="pionDetectorLuciteShieldINOutsideWidth"
z="pionDetectorLuciteShieldINThickness"/>
<trap name="pionDetectorLuciteShieldOU_solid"
alpha1="0.0" alpha2="0.0"
theta="0.0" phi="0.0"
x1="pionDetectorLuciteShieldOUDepth"
x2="pionDetectorLuciteShieldOUDepth"
x3="pionDetectorLuciteShieldOUDepth"
x4="pionDetectorLuciteShieldOUDepth"
y1="pionDetectorLuciteShieldOUInsideWidth"
y2="pionDetectorLuciteShieldOUOutsideWidth"
z="pionDetectorLuciteShieldOUThickness"/>
</solids>

<structure>
<volume name="pionDetectorLuciteShieldDS_logical">
<!-- <volume name="pionDetectorLuciteShieldDS_logical">
<materialref ref="G4_Pb"/>
<solidref ref="pionDetectorLuciteShieldDS_solid"/>
<auxiliary auxtype="Color" auxvalue="Yellow"/>
<auxiliary auxtype="Alpha" auxvalue="0.5"/>
</volume>
</volume> -->

<volume name="pionDetectorLuciteShieldIN_logical">
<materialref ref="G4_Pb"/>
<solidref ref="pionDetectorLuciteShieldIN_solid"/>
<auxiliary auxtype="Color" auxvalue="Yellow"/>
<auxiliary auxtype="Alpha" auxvalue="0.5"/>
</volume>

<volume name="pionDetectorLuciteShieldOU_logical">
<materialref ref="G4_Pb"/>
<solidref ref="pionDetectorLuciteShieldOU_solid"/>
<auxiliary auxtype="Color" auxvalue="Yellow"/>
<auxiliary auxtype="Alpha" auxvalue="0.5"/>
</volume>


<volume name="pionDetectorLuciteSector_logical">
<materialref ref="G4_AIR"/>
Expand All @@ -136,24 +159,31 @@
y="-(pionDetectorLuciteSectorAngleBase+pionDetectorLuciteSectorAnglePitch)"/>
<!-- x rotation 180: layer 1 in the back -->
</physvol>
<physvol name="pionDetectorLuciteShieldDS_physical">
<!-- <physvol name="pionDetectorLuciteShieldDS_physical">
<volumeref ref="pionDetectorLuciteShieldDS_logical"/>
<position name="pionDetectorLucite_position"
x="pionDetectorLuciteInnerEdgeRadialPosition"
z="+0.65*2.54*cm"/>
<rotation name="pionDetectorLucite_rotation"
z="pionDetectorLuciteSectorAngleBase"
y="-(pionDetectorLuciteSectorAngleBase+pionDetectorLuciteSectorAnglePitch)"/>
<!-- x rotation 180: layer 1 in the back -->
</physvol>
</physvol> -->
<physvol name="pionDetectorLuciteShieldIN_physical">
<volumeref ref="pionDetectorLuciteShieldIN_logical"/>
<position name="pionDetectorLucite_position"
x="pionDetectorLuciteInnerEdgeRadialPosition-5.75*cm"
x="pionDetectorLuciteInnerEdgeRadialPosition-3.54*cm"
z="0"/>
<rotation name="pionDetectorLuciteShieldIN_rotation"
y="-90*deg"/>
</physvol>
<physvol name="pionDetectorLuciteShieldOU_physical">
<volumeref ref="pionDetectorLuciteShieldOU_logical"/>
<position name="pionDetectorLucite_position"
x="pionDetectorLuciteInnerEdgeRadialPosition+3.54*cm"
z="0"/>
<rotation name="pionDetectorLuciteShieldOU_rotation"
y="-90*deg"/>
</physvol>
<auxiliary auxtype="Alpha" auxvalue="0.05"/>
</volume>

Expand Down
4 changes: 2 additions & 2 deletions geometry/pion/Lucite/pionDetectorLucite_world.gdml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
<rotation x="90*deg"/>
</physvol>

<physvol>
<!-- <physvol>
<file name="pionDetectorLucite.gdml" volname="pionDetectorLuciteShieldDS_logical"/>
<positionref ref="pionDetectorShieldCenter"/>
<rotation x="90*deg"/>
</physvol>
</physvol> -->

</volume>

Expand Down
8 changes: 4 additions & 4 deletions geometry/pion/pionDetectorSystem.gdml
Original file line number Diff line number Diff line change
Expand Up @@ -35,30 +35,30 @@
<materialref ref="G4_AIR"/>
<solidref ref="pionDetectorSystem_solid"/>

<physvol>
<!-- <physvol>
<file name="pion/TS/pionDetectorTSOpenSector.gdml"/>
<positionref ref="pionDetectorTSFrontCenterPosition"/>
</physvol>
<physvol>
<file name="pion/GEM/pionDetectorGEMOpenSector.gdml"/>
<positionref ref="pionDetectorGEMFrontCenterPosition"/>
</physvol>
</physvol> -->

<physvol>
<file name="pion/Lucite/pionDetectorLuciteSector.gdml"/>
<positionref ref="pionDetectorLuciteCenterPosition"/>
</physvol>

<physvol>
<!-- <physvol>
<file name="pion/GEM/pionDetectorGEMOpenSector.gdml"/>
<positionref ref="pionDetectorGEMBackCenterPosition"/>
</physvol>
<physvol>
<file name="pion/TS/pionDetectorTSOpenSector.gdml"/>
<positionref ref="pionDetectorTSBackCenterPosition"/>
</physvol>
</physvol> -->

<!--
<physvol>
Expand Down

0 comments on commit 688b512

Please sign in to comment.