Skip to content
Snippets Groups Projects
gem_tracker.xml 5.22 KiB
Newer Older
  • Learn to ignore specific revisions
  • Whitney Armstrong's avatar
    Whitney Armstrong committed
    <lccdd>
    
      <info name="ip6_tutorial1" title="simple tracker"
            author="Whitney Armstrong"
            url="https://eicweb.phy.anl.gov/EIC/NPDet"
            status="development"
            version="">
        <comment>EIC Beam Pipe</comment>        
      </info>
    
      <includes>
        <gdmlFile  ref="compact/elements.xml"/>
        <gdmlFile  ref="compact/materials.xml"/>
      </includes>
      
      <define>
        <constant name="world_side" value="10*m"/>
        <constant name="world_x" value="world_side"/>
        <constant name="world_y" value="world_side"/>
        <constant name="world_z" value="10*world_side"/>
        
        <constant name="tracker_region_rmax" value="2.0*m" />
        <constant name="tracker_region_zmax" value="4.0*m" />
    
        <constant name="CrossingAngle" value="0.020*rad"/>
    
        <constant name="Place_Center" value="0*cm"/>
        <constant name="ForwardTrackerPlane_z0" value="400*cm"/>
    
      </define>
    
      <limits>
        <limitset name="cal_limits">
          <limit name="step_length_max" particles="*" value="5.0" unit="mm" />
        </limitset>
        <limitset name="GemTrackerDiscRegionLimitSet">
          <limit name="step_length_max" particles="*" value="5.0" unit="mm" />
          <limit name="track_length_max" particles="*" value="5.0" unit="mm" />
          <limit name="time_max" particles="*" value="5.0" unit="ns" />
          <limit name="ekin_min" particles="*" value="0.01" unit="MeV" />
          <limit name="range_min" particles="*" value="5.0" unit="mm" />
        </limitset>
      </limits>
      <regions>
        <region name="GemTrackerDiscRegion" eunit="MeV" lunit="mm" cut="0.001" threshold="0.001">
          <limitsetref name="GemTrackerDiscRegionLimitSet"/>
        </region>
      </regions>
    
        <limits>
          <limitset name="Tracker_limits">
            <limit name="step_length_max" particles="*" value="5.0" unit="mm" />
          </limitset>
        </limits>
    
      <comment>Common Generic visualization attributes</comment>
      <display>
        <vis name="InvisibleNoDaughters"      showDaughters="false" visible="false"/>
        <vis name="InvisibleWithDaughters"    showDaughters="true" visible="false"/>
        <vis name="GreenVis"       alpha="0.5"  r= "0.0" g="1.0" b="0.0" showDaughters="true" visible="true"/>
        <vis name="RedVis"         alpha="0.5"  r= "1.0" g="0.0" b="0.0" showDaughters="true" visible="true"/>
        <vis name="BlueVis"        alpha="0.5"  r= "0.0" g="0.0" b="1.0" showDaughters="true" visible="true"/>
        <vis name="OrangeVis"      alpha="0.5"  r= "1.0" g="0.45" b="0.0" showDaughters="true" visible="true"/>
        <vis name="RedGreenVis"    alpha="0.5"  r= "1.0" g="1.0" b="0.0" showDaughters="true" visible="true"/>
        <vis name="BlueGreenVis"   alpha="0.5"  r= "0.0" g="1.0" b="1.0" showDaughters="true" visible="true"/>
        <vis name="PurpleVis"      alpha="0.5"  r= "1.0" g="0.0" b="1.0" showDaughters="true" visible="true"/>
        <vis name="DoubleRedG"     alpha="0.5"  r= "2.0" g=".10" b="0.0" showDaughters="true" visible="true"/>
        <vis name="RBG015"         alpha="0.5"  r= "0.0" g=".2"  b="1.0" showDaughters="true" visible="true"/>
        <vis name="RBG510"         alpha="0.5"  r= "1.0" g=".2"  b="0.0" showDaughters="true" visible="true"/>
        <vis name="RBG"            alpha="0.5"  r= "1.0" g="1.0" b="1.0" showDaughters="true" visible="true"/>
        <vis name="GrayVis"        alpha="1.0"  r= "0.75" g="0.75" b="0.75" showDaughters="true" visible="true"/>
      </display>
    
    
      <detectors>
    
        <detector id="102" name="GEMTracker_assembly" type="DD4hep_SubdetectorAssembly" vis="BlueVis">
          <composite name="GEMTracker_SIDIS"/>
        </detector>
    
        <detector id="2" name="GEMTracker" vis="RedVis" type="my_GEMTracker" readout="GEMTrackerHits" > 
    
          <layer id="1" z="-100 *cm" inner_r="40*cm"  outer_r="120*cm"   phi0_offset="0.0*deg" />
          <layer id="2" z="-80 *cm"  inner_r="30*cm"  outer_r="90*cm"    phi0_offset="0.0*deg" />
          <layer id="3" z="-60 *cm"  inner_r="20*cm"  outer_r="70*cm"    phi0_offset="0.0*deg" />
    
          <layer id="4" z="-40 *cm"  inner_r="10*cm"  outer_r="20.0*cm"  phi0_offset="0.0*deg" />
          <layer id="5" z=" 40 *cm"  inner_r="10*cm"  outer_r="20.0*cm" phi0_offset="0.0*deg" />
    
          <layer id="6" z=" 60 *cm"  inner_r="25*cm"  outer_r="70.0*cm" phi0_offset="0.0*deg" />
          <layer id="7" z=" 80 *cm"  inner_r="30*cm"  outer_r="90.0*cm" phi0_offset="0.0*deg" />
          <layer id="8" z="100 *cm"  inner_r="40*cm"  outer_r="100.0*cm" phi0_offset="0.0*deg" />
    
    Whitney Armstrong's avatar
    Whitney Armstrong committed
        </detector>
    
      </detectors>
    
      <readouts>
        <readout name="GEMTrackerHits">
    
          <segmentation type="CartesianGridXY" grid_size_x="1*cm" grid_size_y="3*cm" />
          <id>system:8,barrel:2,layer:4,module:12,sensor:2,x:32:-16,y:-16</id>
    
          <segmentation type="PolarGridRPhi" grid_size_phi="3.0*degree" grid_size_r="5.0*cm"/>
          <id>system:5,barrel:3,layer:4,module:5,r:32:-16,phi:-16</id>
    
        </readout>
    
    Whitney Armstrong's avatar
    Whitney Armstrong committed
      </readouts>
    
      <!--
        <plugins>
        <plugin name="DD4hep_GenericSurfaceInstallerPlugin">
        <argument value="GEMTracker_SIDIS"/>
        <argument value="dimension=2"/>
        <argument value="u_x=-1."/>
        <argument value="v_y=-1."/>
        <argument value="n_z=1."/>
        </plugin>	
        <plugin name="InstallSurfaceManager"/>
        </plugins>
      -->
    
      <fields>
        <field name="GlobalSolenoid" type="solenoid" 
    	   inner_field="3.0*tesla"
    	   outer_field="-0.5*tesla" 
    	   zmax="4.0*m"
    	   outer_radius="2.0*m">
        </field>
      </fields>
    </lccdd>