Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
<?xml version="1.0" encoding="UTF-8"?>
<DDDefinition xmlns="http://www.cern.ch/cms/DDL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.cern.ch/cms/DDL ../../../../../../DetectorDescription/Schema/DDLSchema.xsd">

<ConstantsSection label="forward.xml" eval="true">
  <Constant name="TotemT2dZ" value="([cms:TotemBeamZ3]-[cms:TotemBeamZ2])/2"/>
  <Constant name="TotemT2Z"  value="([cms:TotemBeamZ3]+[cms:TotemBeamZ2])/2"/>
</ConstantsSection>

<SolidSection label="forward.xml">
  <Tubs name="TotemT2" rMin="[cms:TotemBeamR4]" rMax="[cms:TotemBeamR5]" dz="[TotemT2dZ]" startPhi="0*deg" deltaPhi="360*deg"/>
</SolidSection>

<LogicalPartSection label="forward.xml">
  <LogicalPart name="TotemT2" category="unspecified">
    <rSolid name="TotemT2"/>
    <rMaterial name="materials:Air"/>
  </LogicalPart>
</LogicalPartSection>

<PosPartSection label="forward.xml">
  <PosPart copyNumber="1">
    <rParent name="cms:CMSE"/>
    <rChild name="forward:TotemT2"/>
    <Translation x="0*fm" y="0*fm" z="[TotemT2Z]"/>
    <rRotation name="rotations:000D"/>
  </PosPart>
  <PosPart copyNumber="2">
    <rParent name="cms:CMSE"/>
    <rChild name="forward:TotemT2"/>
    <Translation x="0*fm" y="0*fm" z="-[TotemT2Z]"/>
    <rRotation name="rotations:180D"/>
  </PosPart>
</PosPartSection>

</DDDefinition>