Back to home page

EIC code displayed by LXR

 
 

    


Warning, /DD4hep/examples/ClientTests/compact/ParamVolume3D.xml is written in an unsupported language. File is not indexed.

0001 <?xml version="1.0" encoding="UTF-8"?>
0002 <lccdd>
0003   <!-- #==========================================================================
0004        #  AIDA Detector description implementation 
0005        #==========================================================================
0006        # Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
0007        # All rights reserved.
0008        #
0009        # For the licensing terms see $DD4hepINSTALL/LICENSE.
0010        # For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
0011        #
0012        #==========================================================================
0013   -->
0014 
0015   <includes>
0016     <gdmlFile  ref="${DD4hepINSTALL}/DDDetectors/compact/elements.xml"/>
0017     <gdmlFile  ref="${DD4hepINSTALL}/DDDetectors/compact/materials.xml"/>
0018   </includes>
0019 
0020   <define>
0021     <constant name="world_size" value="30*m"/>
0022     <constant name="world_x" value="world_size"/>
0023     <constant name="world_y" value="world_size"/>
0024     <constant name="world_z" value="world_size"/>
0025   </define>
0026 
0027   <display>
0028     <vis name="Invisible" showDaughters="false" visible="false"/>
0029     <vis name="InvisibleWithChildren" showDaughters="true" visible="false"/>
0030     <vis name="VisibleRed"    r="1.0" g="0.0" b="0.0" showDaughters="true" visible="true"/>
0031     <vis name="VisibleBlue"   r="0.0" g="0.0" b="1.0" showDaughters="false" visible="true"/>
0032     <vis name="VisibleYellow" r="1.0" g="1.0" b="0.0" showDaughters="false" visible="true"/>
0033     <vis name="VisibleViolet" r="1.0" g="0.0" b="1.0" showDaughters="false" visible="true"/>
0034     <vis name="VisibleGreen" alpha="0.1" r="0.0" g="1.0" b="0.0" drawingStyle="solid" lineStyle="solid" showDaughters="true" visible="true"/>
0035   </display>
0036 
0037   <limits>
0038     <limitset name="param_limits">
0039       <limit name="step_length_max" particles="*" value="5.0" unit="mm" />
0040     </limitset>
0041   </limits>
0042 
0043   <detectors>
0044     <detector id="1" name="Param3D_1" type="DD4hep_ParamVolume" vis="VisibleGreen" readout="Hits3D" limits="param_limits">
0045       <!-- Mother volume dimensions  -->
0046       <box x="120*cm" y="120*cm" z="120*cm" material="Air"/>
0047       <!-- Mother volume placement in the world -->
0048       <position x="-60*cm" y="-60*cm" z="-60*cm"/>
0049       <rotation x="0" y="0" z="0"/>
0050 
0051       <!-- Parameterisation arguments -->
0052       <param x="2*cm" y="2*cm" z="2*cm" material="Iron" vis="VisibleRed" limits="param_limits">
0053         <start>
0054           <!-- Parameterisation start position in the mother volume frame  -->
0055           <position x="-100*cm" y="-100*cm" z="-100*cm"/>
0056           <rotation x="0" y="0" z="0"/>
0057         </start>
0058         <transformation>
0059           <!-- Parameterisation in dimension 1 with 20 placements -->
0060           <dim_x repeat="20">
0061             <position x="10*cm" y="0*cm" z="0*cm"/>
0062             <rotation x="0"     y="0"    z="0"/>
0063           </dim_x>
0064           <!-- Parameterisation in dimension 2 with 20 placements -->
0065           <dim_y repeat="20">
0066             <position x="0*cm" y="10*cm" z="0*cm"/>
0067             <rotation x="0"    y="0"     z="0"/>
0068           </dim_y>
0069           <!-- Parameterisation in dimension 3 with 20 placements -->
0070           <dim_z repeat="20">
0071             <position x="0*cm" y="0*cm" z="10*cm"/>
0072             <rotation x="0"    y="0"    z="0"/>
0073           </dim_z>
0074         </transformation>
0075       </param>
0076     </detector>
0077   </detectors>
0078   
0079   <readouts>
0080     <readout name="Hits3D">
0081       <segmentation type="CartesianGridXY" grid_size_x="1*mm" grid_size_y="1*mm"/>
0082       <id>system:6,volume:16,x:32:-6,y:48:-6</id> 
0083     </readout>
0084   </readouts>
0085 
0086   <fields>
0087     <field name="GlobalSolenoid" type="solenoid" 
0088            inner_field="5.0*tesla"
0089            outer_field="-1.5*tesla" 
0090            zmax="2*m"
0091            outer_radius="3*m">
0092     </field>
0093   </fields>
0094 
0095 </lccdd>