BABAR Graphics Tutorial at Annecy Workshop

This file is http://www.lal.in2p3.fr/BaBar/GraphicsTutorial/gratut_annecy.html.

A full Graphics Tutorial can be found at
http://www.lal.in2p3.fr/BaBar/GraphicsTutorial/ (European version)
[or
http://prancer.physics.louisville.edu/GraTutorial/ (US)]


The following instructions are valid for release 6.5.2, and allow to run the multipurpose GraDisplayApp interactive program on xdr files.

You may also choose to run specific display programs, as TrkGraApp or DrcGraApp. For fun, the latter is proposed in two flavours: running on data stored on xdr or on EventStore database.

You may also have a look at the program structure and play with the customizations.

All these applications will run first the reconstruction of the events


Preliminaries: setting up


  1. logon to a terminal under ecolenn where nn runs from 01 to 20 (ask me for the password)

  2. source $GROUP_DIR/gra_tut/gratut_cshrc
    This will setup some useful aliases and make OO_FD_BOOT point to a valid database.

  3. setenv DISPLAY xx.yy.zz:0.0


Running pre-built applications


This part of the tutorial is meant to practice the BaBar event display windows and panels. To save time, a release directory has been created under all ecolenn logons, with binaries pointing to pre-built applications:

cd public/gratut/Rel6.5.2/workdir

Then make your choice:

As the Babar Event Display is deliberately a make-it-yourself kit to be tailored mainly from GUI, you will find your windows rather bare at starting up. The purpose of this tutorial is to make you display what you wish.

Follow the Working with Graphics Applications. part of the full Graphics Tutorial to play with the panels and windows.

If you chose the DrcGraApp applications, the example Walkthrough may be a good start.

You will tailor your display windows as you wish and, eventually save them to a Postscript or Gif file.
The configuration you design is saved when moving through events. It is not saved however when leaving the application. It can be partly recovered by editing the .tcl file and setting the toggles appropriately.


Customizing applications


Beyond the customization you do at running time, either from GUI or from tcl, you may also customize the application itself.

This part of the tutorial is meant to perform some of these customizations, which are foreseen at two levels:

To save time, a release directory public/gratutRel6.5.2_dev has been created on some ecolenn logons, (ecole19 and ecole20), with the packages relevant to release 6.5.2. On your own home machine and logon, you will have to type the following commands:

cd public/gratut
newrel -t 6.5.2 Rel6.5.2_dev
cd Rel6.5.2_dev

addpkg DrcData V00-06-11
addpkg -h DrcGra
addpkg DrcReco V00-06-13
addpkg G3DataP rgj980502a
addpkg -h GraBase
addpkg -h GraDisplay
addpkg GraOpa V00-05-01
addpkg KalmanTrack rgj980502b
addpkg PackageList V00-01-37
addpkg workdir

speedup (aliased to source ~amlutz/public/gratut_speedup -a, local adaptation of Charlie's script)

gmake lib

Now, make your choice:

and run:

cd workdir
gmake setup

disprun [-exe your_binary your_tcl]
ev begin -nev 1


Have FUN ! and PLEASE FEEDBACK !


Please send all suggestions and corrections to bbgraph@lal.in2p3.fr  


Last modified: Mon Jun 1 11:32:52 MET DST
Anne Marie Lutz (amlutz@lal.in2p3.fr)