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 36 37 38 39 40 41 42 43
<?xml version="1.0"?>
<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">
    <!-- 
         
         == CMS Forward Pixels Geometry ==
         
         @version 3.02.01 May 30, 2006
         @created Dmitry Onoprienko
         
         == COMPONENT DEFINED BY THIS FILE: ==
         
         Root volume for testing forward pixels geometry.
         
         -->
    <ConstantsSection label="Root" eval="true">
        <Constant name="RootRadius" value="[pixfwd:RootRadius] + 5.*mm"/>
        <Constant name="RootHalfLength" value="[pixfwd:ZPixelForward] + [pixfwd:RootHalfLength]*2. + 5.*mm"/>
    </ConstantsSection>
    <!-- Test root volume -->
    <SolidSection label="Root">
        <Tubs name="TestRoot" rMin="0." rMax="[RootRadius]" dz="[RootHalfLength]" startPhi="0." deltaPhi="360*deg"/>
    </SolidSection>
    <LogicalPartSection label="Root">
        <LogicalPart name="TestRoot" category="envelope">
            <rSolid name="TestRoot"/>
            <rMaterial name="materials:Air"/>
        </LogicalPart>
    </LogicalPartSection>
    <!-- Position forward pixels endcaps inside Test root volume -->
    <PosPartSection label="PixelForwardRootPlacement">
        <PosPart copyNumber="1">
            <rParent name="TestRoot"/>
            <rChild name="pixfwd:PixelForwardZPlus"/>
            <Translation x="0." y="0." z="[pixfwd:ZPixelForward]-[pixfwd:AnchorZ]"/>
        </PosPart>
        <PosPart copyNumber="1">
            <rParent name="TestRoot"/>
            <rChild name="pixfwd:PixelForwardZMinus"/>
            <Translation x="0." y="0." z="-[pixfwd:ZPixelForward]+[pixfwd:AnchorZ]"/>
            <rRotation name="pixfwdCommon:Y180"/>
        </PosPart>
    </PosPartSection>
</DDDefinition>