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.

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:
  • global which can only contain the attribute detectorName which is a string that defines, guess what, the detector name.
  • BField which define the magnetic field in the detector and contaon 4 attributes
    • type is a string which defines what implementation to use to create a megnetic field object. As of August 2009 the only value available for this field is ConstantBField
    • x defines the x component of the B vector (double)
    • y defines the y component of the B vector (double)
    • z defines the z component of the B vector (double)
  • detectors which contain a list of detector elements that will be described later

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

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


-- StefanoCaiazza - 14 Aug 2009

This topic: ILCTPC > WebHome > Software > MarlinTPC > MarlinTPCDeveloperWorkbook > HowToGEAR
Topic revision: r1 - 2009-08-14 - StefanoCaiazza
This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback