TWiki
>
ILCTPC Web
>
Software
>
MarlinTPC
>
MarlinTPCDeveloperWorkbook
>
HowToGEAR
(2009-08-17,
StefanoCaiazza
)
(raw view)
E
dit
A
ttach
P
DF
---+ 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: <verbatim> <gear> <global detectorName="MyExperiment" /> <BField type="ConstantBField" x="0." y="0." z="4.0" /> <detectors> [Put your detector list here] </detectors> </gear> </verbatim> ---++ 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: * =name= which is a custom identifier for the particular detector * =geartype= which defines the specific type of the detector. This parameter is a string that must correspond to one of the gear detector types. For the TPC this is =TPCParameters= 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: <verbatim> <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> </verbatim> [TO BE CONTINUED] -- Main.StefanoCaiazza - 14 Aug 2009
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r2
<
r1
|
B
acklinks
|
V
iew topic
|
WYSIWYG
|
M
ore topic actions
Topic revision: r2 - 2009-08-17
-
StefanoCaiazza
Log In
ILCTPC
ILCTPC Web
Create New Topic
Index
Search
Changes
Notifications
Statistics
Preferences
Public webs
Public webs
ABATBEA
ACPP
ADCgroup
AEGIS
AfricaMap
AgileInfrastructure
ALICE
AliceEbyE
AliceSPD
AliceSSD
AliceTOF
AliFemto
ALPHA
ArdaGrid
ASACUSA
AthenaFCalTBAna
Atlas
AtlasLBNL
AXIALPET
CAE
CALICE
CDS
CENF
CERNSearch
CLIC
Cloud
CloudServices
CMS
Controls
CTA
CvmFS
DB
DefaultWeb
DESgroup
DPHEP
DM-LHC
DSSGroup
EGEE
EgeePtf
ELFms
EMI
ETICS
FIOgroup
FlukaTeam
Frontier
Gaudi
GeneratorServices
GuidesInfo
HardwareLabs
HCC
HEPIX
ILCBDSColl
ILCTPC
IMWG
Inspire
IPv6
IT
ItCommTeam
ITCoord
ITdeptTechForum
ITDRP
ITGT
ITSDC
LAr
LCG
LCGAAWorkbook
Leade
LHCAccess
LHCAtHome
LHCb
LHCgas
LHCONE
LHCOPN
LinuxSupport
Main
Medipix
Messaging
MPGD
NA49
NA61
NA62
NTOF
Openlab
PDBService
Persistency
PESgroup
Plugins
PSAccess
PSBUpgrade
R2Eproject
RCTF
RD42
RFCond12
RFLowLevel
ROXIE
Sandbox
SocialActivities
SPI
SRMDev
SSM
Student
SuperComputing
Support
SwfCatalogue
TMVA
TOTEM
TWiki
UNOSAT
Virtualization
VOBox
WITCH
XTCA
Cern Search
TWiki Search
Google Search
ILCTPC
All webs
Copyright &© 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