TODAC - User's Guide - Geometry

Command Line Interface

todac geometry <path> <start_run> [<end_run>] [-h] [-label <label>]

Argument Required Default value Description
<path> Yes   Path to an XML file in a proper format (see below for allowed formats of geometry XMLs)
<start_run> Yes   Beginning TOTEM Run number
<end_run> No <start_run> Ending TOTEM Run number
-label <label> No a label based on <path>

Allows to specify database label explicitly

Note: <label> must not contain white spaces

Note: <label> length must not exceed 50 characters

-h No   Prints help


Show help
todac geometry -h

Insert data for specified run span
todac geometry path/to/geometry/2010_07_14/RP_Dist_Beam_Cent.xml 8367 8372
The label that will be generated: 2010_07_14/RP_Dist_Beam_Cent.xml

Insert data for a single run
todac geometry geom_data.xml 8164
The label that will be generated: geom_data.xml

Specify custom label
todac geometry some_geometry_data.xml 8264 8265 -label my_own_label

Web Interface



Argument Required Default value Description
Run number Yes   TOTEM Run number
Label Yes  

Note: <label> must not contain white spaces

Note: <label> length must not exceed 50 characters

Version No Latest Data version



Argument Required Default value Description
Start run Yes   Beginning TOTEM Run number
End run No Start run Ending TOTEM Run number
Label Yes  

Note: <label> must not contain white spaces

Note: <label> length must not exceed 50 characters

File Yes   File to upload

Supported file formats


Parsing XMLs with geometry data is based on parsing Constant tags:

<Constant name="___" value="___"/>

Attribute Description Sample value

Roman Pot's name

(all accepted Roman Pot names are presented in the first example file below)


floating-point number

Note: white spaces and measurement units will be ignored


Note: All tags in the XML file which are not Constant tags will be ignored.

Example files

The most commonly used file format:

<?xml version="1.0" encoding="UTF-8"?>
<DDDefinition xmlns="" xmlns:xsi="">
   <ConstantsSection label="RP_Dist_Beam_Cent.xml">
      <Constant name="RP_147_Left_Det_Dist_0" value="40*mm"/> 
      <Constant name="RP_147_Left_Det_Dist_1" value="40*mm"/> 
      <Constant name="RP_147_Left_Det_Dist_2" value="40*mm"/> 
      <Constant name="RP_147_Left_Det_Dist_3" value="40*mm"/>  <!-- some xml comment -->
      <Constant name="RP_147_Left_Det_Dist_4" value="40*mm"/>  
      <Constant name="RP_147_Left_Det_Dist_5" value="40*mm"/> 
      <Constant name="RP_147_Right_Det_Dist_0" value="40*mm"/> 
      <Constant name="RP_147_Right_Det_Dist_1" value="40*mm"/> 
      <Constant name="RP_147_Right_Det_Dist_2" value="40*mm"/> 
      <Constant name="RP_147_Right_Det_Dist_3" value="40*mm"/> 
      <Constant name="RP_147_Right_Det_Dist_4" value="40*mm"/> 
      <Constant name="RP_147_Right_Det_Dist_5" value="40*mm"/> 
      <Constant name="RP_220_Left_Det_Dist_0" value=" +2.572*mm"/> 
      <Constant name="RP_220_Left_Det_Dist_1" value=" +2.572*mm"/> 
      <Constant name="RP_220_Left_Det_Dist_2" value="+41.173*mm"/> 
      <Constant name="RP_220_Left_Det_Dist_3" value="+39.838*mm"/> 
      <Constant name="RP_220_Left_Det_Dist_4" value=" +2.927*mm"/> 
      <Constant name="RP_220_Left_Det_Dist_5" value=" +2.927*mm"/> 
      <Constant name="RP_220_Right_Det_Dist_0" value=" +2.567*mm"/>
      <Constant name="RP_220_Right_Det_Dist_1" value=" +2.568*mm"/>
      <Constant name="RP_220_Right_Det_Dist_2" value="+41.154*mm"/>
      <Constant name="RP_220_Right_Det_Dist_3" value="+40.699*mm"/>
      <Constant name="RP_220_Right_Det_Dist_4" value=" +2.914*mm"/>
      <Constant name="RP_220_Right_Det_Dist_5" value=" +2.917*mm"/>

The example below, besides that it may contain meaningless data, also presents proper format of XML geometry file:

<Constant name="RP_147_Left_Det_Dist_0" value="-0.24*mm"/> 
<Constant name="RP_220_Right_Det_Dist_4" value="+16.254*mm"/> 
<Constant name="RP_220_Left_Det_Dist_2" value="+23*mm"/> 
<Constant name="RP_147_Left_Det_Dist_3" value="5"/>  <!-- some xml comment -->
<Constant name="RP_147_Left_Det_Dist_3" value="-3.5*mm"/>  
<Constant name="RP_220_Left_Det_Dist_1" value="0"/> 
Topic attachments
I Attachment History Action Size Date Who Comment
PNGpng geometry-browse.png r2 r1 manage 4.5 K 2014-01-14 - 23:00 KamilMielnik TODAC Web Application - Geometry browse form
PNGpng geometry-populate.png r1 manage 5.0 K 2014-01-10 - 19:36 KamilMielnik TODAC Web Application - Geometry populate form
Edit | Attach | Watch | Print version | History: r9 < r8 < r7 < r6 < r5 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r9 - 2014-01-15 - MichalMarciniec
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    TOTEM All webs login

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