<detector
id="30"
name="TrackerFieldDef"
type="HPSTracker2"
readout="TrackerHitsFieldDef"
>
<comment>Boundary planes for magnetic field, also used as scoring planes</comment>
<!-- <constant name="dipoleMagnetHeight" value="17.78*cm"/>
<constant name="dipoleMagnetWidth" value="41.6052*cm"/>-->
<module
name="TestRunModuleFieldDef">
<box x="416.052"
y="177.8"
/>
<module_component
thickness="scoringThickness"
material =
"Vacuum" sensitive="true"/>
</module>
<module
name="TestRunModuleFieldDefFlare2">
<box
x="416.052"
y="177.8+(327.66-177.8)*(dipoleMagnetPositionZ+dipoleMagnetLength/2-913.378)/385.572"
/>
<module_component
thickness="scoringThickness"
material =
"Vacuum" sensitive="true"/>
</module>
<layer id="1">
<module_placement
name="TestRunModuleFieldDef"
id="0"
x="dipoleMagnetPositionX"
y="0"
z="dipoleMagnetPositionZ-dipoleMagnetLength/2"
rx="0"
ry="0"
rz="-PI/2"/>
</layer>
<layer id="2">
<module_placement
name="TestRunModuleFieldDefFlare2"
id="0"
x="dipoleMagnetPositionX"
y="0"
z="dipoleMagnetPositionZ+dipoleMagnetLength/2"
rx="0"
ry="0"
rz="-PI/2"/>
</layer>
</detector>