Making your own XML

From Nuclear Physics Group Documentation Pages
Revision as of 16:35, 25 October 2007 by Kyle (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

The xml files defining the geometry you want smash particles into is fairly straightforward. I am no expert on the matter but xml is pretty intuitive.

Example 1 - Full file, just SVT 1 & 2

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HDDS [
  <!ENTITY Regions_s   SYSTEM  "Regions_clas12.xml">
  <!ENTITY Material_s  SYSTEM  "Material_HDDS.xml">

  <!-- DETECTORS -->
  <!ENTITY INNER_spec_s       SYSTEM  "inner_detector_HDDS.xml">
]>


<HDDS specification="v1.0" xmlns="http://www.gluex.org/hdds"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.gluex.org/hdds HDDS-1_0.xsd">

<!-- Include materials -->
     &Material_s;
<!-- Include magnetic fields -->
     &Regions_s;


<section name          = "Kyle's Geometry"
         version       = ".01"
         date          = "2007-10-25"
         author        = "Kyle Snavely"
         top_volume    = "SITE"
         specification = "v1.0"
>

 
 <box name="SITE" X_Y_Z="3000. 3000. 3000." material="Vacuum" comment="Master Volume" >
<!--   <apply region="ihep-solenoid"/>-->
 </box>


<!-- Inner Detector -->
  &INNER_spec_s;

<composition name="centralCLAS" envelope="CENT">
    <posXYZ volume="TARG" X_Y_Z="0. 0. 0."    />
    
    <posXYZ volume="SVT1" X_Y_Z="0. 0. 0."    />
    <posXYZ volume="SVT2" X_Y_Z="0. 0. 0."    />
</composition>



<!--Everything-->
  <composition name="everything" envelope="SITE">
  <posXYZ  volume="centralCLAS" X_Y_Z="0. 0. 0." />
  </composition>

</section>

</HDDS>