Skip to content
Snippets Groups Projects
Commit 1930b402 authored by Dave Casper's avatar Dave Casper
Browse files

Merge branch 'fasernu-04-wall' into 'FASERNU-04'

Add 5m of concrete in front of trench

See merge request faser/calypso!359
parents b5189b3a 877c69f9
No related branches found
No related tags found
No related merge requests found
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
<constant name="RampLengthZ" value="8422"/> <constant name="RampLengthZ" value="8422"/>
<constant name="RampMinThickness" value="2000"/> <constant name="RampMinThickness" value="2000"/>
<constant name="RampSlope" value="0.08533"/> <constant name="RampSlope" value="0.08533"/>
<constant name="WallThickness" value="5000" />
</define> </define>
<materials> <materials>
<isotope N="1.400000000000000e+01" Z="7.000000000000000e+00" name="N140x8e46440"> <isotope N="1.400000000000000e+01" Z="7.000000000000000e+00" name="N140x8e46440">
...@@ -196,6 +197,7 @@ ...@@ -196,6 +197,7 @@
v5x="-RampWidth/2" v5y="-RampMinThickness" v6x="RampWidth/2" v6y="-RampMinThickness" v7x="RampWidth/2" v7y="0" v8x="-RampWidth/2" v8y="0" v5x="-RampWidth/2" v5y="-RampMinThickness" v6x="RampWidth/2" v6y="-RampMinThickness" v7x="RampWidth/2" v7y="0" v8x="-RampWidth/2" v8y="0"
dz="RampLengthZ/2" /> dz="RampLengthZ/2" />
<box name="world" lunit="mm" x="WorldSize" y="WorldSize" z="WorldSize" /> <box name="world" lunit="mm" x="WorldSize" y="WorldSize" z="WorldSize" />
<box name="faserWall" lunit="mm" x="RampWidth" y="(RampSlope*RampLengthZ+RampMinThickness)" z="WallThickness" />
<xtru name="trenchOutline" lunit="mm"> <xtru name="trenchOutline" lunit="mm">
<twoDimVertex x="-249.75647241976003" y="-3162.7618497323056"/> <twoDimVertex x="-249.75647241976003" y="-3162.7618497323056"/>
<twoDimVertex x="436.065806982358" y="-3162.7608114181166"/> <twoDimVertex x="436.065806982358" y="-3162.7608114181166"/>
...@@ -212,6 +214,11 @@ ...@@ -212,6 +214,11 @@
<section zOrder="0" zPosition="-375.0" xOffset="0" yOffset="0" scalingFactor="1" /> <section zOrder="0" zPosition="-375.0" xOffset="0" yOffset="0" scalingFactor="1" />
<section zOrder="1" zPosition="375.0" xOffset="0" yOffset="0" scalingFactor="1" /> <section zOrder="1" zPosition="375.0" xOffset="0" yOffset="0" scalingFactor="1" />
</xtru> </xtru>
<union name="rampAndWall">
<first ref="ramp"/>
<second ref="faserWall"/>
<position name="WallShift" unit="mm" y="-RampMinThickness+(RampSlope*RampLengthZ+RampMinThickness)/2" z="-(RampLengthZ+WallThickness)/2"/>
</union>
<subtraction name="faserTrench"> <subtraction name="faserTrench">
<first ref="ramp"/> <first ref="ramp"/>
<firstpositionref ref="RampinWorldpos"/> <firstpositionref ref="RampinWorldpos"/>
...@@ -224,17 +231,34 @@ ...@@ -224,17 +231,34 @@
<rotation name="Xrotation" unit="deg" x="90"/> <rotation name="Xrotation" unit="deg" x="90"/>
<position name="Yshift" unit="mm" y="75"/> <position name="Yshift" unit="mm" y="75"/>
</subtraction> </subtraction>
<subtraction name="faserTrenchAndWall">
<first ref="rampAndWall"/>
<firstpositionref ref="RampinWorldpos"/>
<firstrotationref ref="RampinWorldrot"/>
<second ref="trenchOutline"/>
<!--
<rotationref ref="Subrot"/>
<positionref ref="Subpos"/>
-->
<rotation name="Xrotation" unit="deg" x="90"/>
<position name="Yshift" unit="mm" y="75"/>
</subtraction>
</solids> </solids>
<structure> <structure>
<volume name="Trench"> <volume name="Trench">
<solidref ref="faserTrench"/> <solidref ref="faserTrench"/>
<materialref ref="Concrete"/> <materialref ref="Concrete"/>
</volume> </volume>
<volume name="TrenchAndWall">
<solidref ref="faserTrenchAndWall"/>
<materialref ref="Concrete"/>
</volume>
<volume name="World" > <volume name="World" >
<materialref ref="Air" /> <materialref ref="Air" />
<solidref ref="world" /> <solidref ref="world" />
<physvol> <physvol>
<volumeref ref="Trench" /> <!-- <volumeref ref="Trench" /> -->
<volumeref ref="TrenchAndWall" />
<!-- <!--
<rotationref ref="RampinWorldrot"/> <rotationref ref="RampinWorldrot"/>
<positionref ref="RampinWorldpos"/> <positionref ref="RampinWorldpos"/>
......
...@@ -77,7 +77,8 @@ void TrenchDetectorFactory::create(GeoPhysVol *world) ...@@ -77,7 +77,8 @@ void TrenchDetectorFactory::create(GeoPhysVol *world)
xercesParser.ParseFileAndNavigate(resolvedFile); xercesParser.ParseFileAndNavigate(resolvedFile);
// std::cout << "done parsing " << resolvedFile << std::endl; // std::cout << "done parsing " << resolvedFile << std::endl;
const GeoLogVol* trenchLog = controller.retrieveLogicalVolume("Trench").first; // const GeoLogVol* trenchLog = controller.retrieveLogicalVolume("Trench").first;
const GeoLogVol* trenchLog = controller.retrieveLogicalVolume("TrenchAndWall").first;
GeoPhysVol* trenchPhys = new GeoPhysVol(trenchLog); GeoPhysVol* trenchPhys = new GeoPhysVol(trenchLog);
GeoNameTag *tag = new GeoNameTag("Trench"); GeoNameTag *tag = new GeoNameTag("Trench");
world->add(tag); world->add(tag);
......
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