MarlinTPC

How to create your GEAR XML steering file

This post is a small guide on how to create your own GEAR file with GEAR v0.12, the first with multi-module capabilities. I will include a code example for each section of the description.

A more extensive guide by Martin Killenberg can be found at https://agenda.linearcollider.org/event/5902/contribution/2/2/material/0/0.pdf It gives special attention to gear files for the Large Prototype TPC.

The root element of any GEAR XML steering file is gear

Children of gear

The only element that are currently looked for in the first layer of the tree structure of the XML file are:

The first example of the first layer of the XML tree is:

<gear>

 . <global detectorName="!MyExperiment" />
 . <BField type="ConstantBField" x="0." y="0." z="4.0" /> <detectors>
  . [Put your detector list here]
 </detectors>

</gear>

Defining your detector

The only type of element that can be defined has child of a detectors element is a detector (notice the lack of s). Infact the detectors element is but a list of detector items.

Each detector has two mandatory attributes which:

The elements that can be contained in a detector are detector-specific. In the following I will describe the parameters necessary to describe a TPC.

Let's now fill the example a little more:

<gear>

 . <global detectorName="!MyExperiment" />
 . <BField type="ConstantBField" x="0." y="0." z="4.0" /> <detectors>
  . <detector name="MyTPC" geartype="TPCParameters">
  .      [Define your TPC here]
  . </detector>
 </detectors>

</gear>

[TO BE CONTINUED]


comment: original post by Stefano Caiazza (copied here by C.R.)

MarlinTPC: HowToCreateAGearGeometryDescription (last edited 2015-03-25 16:20:17 by OliverSchaefer)