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
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:
disprun
disprun -exe TrkGraApp ../TrkGra/trkgra.tcl
@DrcGra_Xdr aliased to disprun -exe DrcGraApp_Xdr ../DrcGra/drcgraXdr.tcl
@DrcGra_Bdb aliased to disprun -exe DrcGraApp_Bdb ../DrcGra/drcgraBdb.tcl
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.
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:
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:
(Warning: with release 6.5.2, please do not switch Ifr on, your application would crash at run time ).
To switch off the drift chamber, eg., type:
gmake DchGra=no GraDisplay.bin
To build DrcGra for an xdr input (Bdb input is the default) , type:
gmake ReadXdr=yes ReadBdb=no DrcGra.bin
You will need to read the chapter Glossary and Basic Structure of the full Graphics Tutorial and the Designing new Observers section.
You may find useful the example walkthrough from DrcGra/DrcGraAppLoop.cc.
emacs GraDisplay/GraAppLoop.cc
play around:
then gmake
cd workdir
gmake setup
disprun [-exe your_binary your_tcl]
ev begin -nev 1
Please send all suggestions and corrections to
bbgraph@lal.in2p3.fr