Hi all, I've added in brat/test a program called RotateGeoFile.cxx, the executable is rotategeofile. Some details: // Rotate a geometry given a geo file as an input // // To get some help, type rotategeofile -h. // Options: -b --bfs-rotation BFS Rotation angle, default is 0 -f --ffs-rotation FFS Rotation angle, default is 0 -F --fs-rotation FS rotation angle, default is 0 -h --help Show this help, default is true -i --input-file Input file, default is -m --mrs-rotation MRS rotation angle, default is 0 -o --output-file Output file basename, default is // * Usage: // -------- // let's say you have an old geo and mag files you trust // you want to apply a rotation to them: // // old.geo ---> new.geo with rotations applied to each platform: // old.mag ---> new.mag " " " " " // // rotategeofile -i old.geo -o new.geo -m 5 -b 4.4 -f -3.2 // rotategeofile -i old.mag -o new.mag -m 5 -b 4.4 -f -3.2 // // It means that the old MRS geo will be rotated by +5 deg // FFS geo " " " +4.4 deg // BFS geo " " " -3.2 deg // // If you want the same rotation for FFS and BFS, put -F <value> only I checked with drawGeo.C in my brahms_app/do_app/geo dir that the results are ok. To read the input, I've picked the code in Br{Detector,Magnet}Volume.cxx so that it can read the stuff whatever spaces introduced or not after the sign = in each line. Hope you'll find it useful :) Ciao, Djam -- Djamel Ouerdane ------------------------------------------o | Niels Bohr Intstitute | Home: | | Blegdamsvej 17, DK-2100 Ø | Jagtvej 141 2D, | | Fax: +45 35 32 50 16 | DK-2200 Copenhagen N | | Tel: +45 35 32 52 69 | +45 35 86 19 74 | | http://www.nbi.dk/~ouerdane | | ouerdane@nbi.dk | o---------------------------------------------------------o
This archive was generated by hypermail 2b30 : Fri Oct 05 2001 - 13:53:39 EDT