TestSetGeometry

From: Djamel Ouerdane (ouerdane@nbi.dk)
Date: Tue Nov 28 2000 - 04:11:23 EST

  • Next message: Djamel Ouerdane: "minor fixe for the geometry"

    Dear all,
    
    I've written a program that produces geo and mag files according to
    some reference data and put it in $BRATSYS/test directory.
    
    Here is a description (cvs Log):
    
    TestSetGeometry produces geo and mag files a la gbrahms.
    * It reads reference data in Geometry.dat and Magnet.dat
    * (these files should be modified ONLY IF you have more accurate
    * or up to date reference data).
    * Note that the reference is:
    *   MRS at 90 deg.
    *   FFS and BFS at 0 deg.
    *
    * To satisfy the latest requirements of BrDetectorVolume,
    * the magnet geometry is now only contained in the mag file.
    *
    * To use this program, type TestSetGeometry -h
    * The help is very easy to figure out. You can produce a geo and/or a mag
    * file, you just have to use the respective command options.
    * The most important are:
    *   -geo to enable the .geo file writing
    *   -mag same for the mag file
    *   -m <MRS angle>
    *   -f <FFS angle>
    *   -b <BFS angle>
    *   -F <FS angle> => FFS and BFS are equal
    *   -o <file name> => don't put any suffixe (they will be added depending
    *                     on the type of file - .geo or .mag)
    *
    * If you use -mag, you have to set explicitely ALL magnetic fields:
    *   -D1 <value (KG)> -D2 <val> etc...
    *
    * The output (a geo and/or a mag file) has exactly the same format as
    * gbrahms has adopted.
    *
    * Provided that the reference data are good, this program allows one
    * to quickly produce the right geometry whatever the angle setting.
    *
    
    
    And here is the help by typing TestSetGeometry -h:
    
    **************************************** 
    **                                    ** 
    **     SetGeometry program            ** 
    **       D.Ouerdane, NBI, nov 2000    ** 
    **       Type SetGeometry -h for help ** 
    **                                    ** 
    **************************************** 
    SetGeometry options:
      -m <MRS angle>   default is 90, range is [ 30, 95]
      -f <FFS angle>   default is  4, range is [2.3, 30]
      -b <BFS angle>   default is  4, range is [2.3, 15]
      -F <FS angle>    default is  4, range is [2.3, 15]
      -o <output file> no default (don't put any suffix!)
      -d <debug level> default is 0
      -v <verbosity>   default is 0
      -geo             create a geo file 
      -mag             create a mag file 
      -D1 <field>      no default, use if -mag 
      -D2 <field>      no default, use if -mag 
      -D3 <field>      no default, use if -mag 
      -D4 <field>      no default, use if -mag 
      -D5 <field>      no default, use if -mag 
      -h               this help 
    
    
    I think this program is very useful for now since we have to deal with
    different angle settings but also this program could be a very preliminary
    step towards a standardized geometry and even a geometry DB.
    
    If the brat experts think the files should be placed elsewhere in
    brat, they shall then proceed as they think.
    
    Cheers!
    Djamel
    
    
    :o) ****************************************************** )o:
    |ME	: Djamel Ouerdane   EMAIL  : ouerdane@nbi.dk         |
    |OFFICE : Tb1 @ NBI	    PHONE  : +45 353 252 69 (office) |
    |INST   : Niels Bohr Institute,                              | 
    |         Blegdamsvej 17, 2100 København Ø, Danmark          |
    :oD ****************************************************** \o:
    



    This archive was generated by hypermail 2b29 : Tue Nov 28 2000 - 04:12:39 EST