RB - Event Display

An event display program written by Roger Barlow.

Where do I get the files from? and How do I set it up?

From Manchester sun1, need to copy the C++ src and header files:
cp /export/home/roger/tau/BetaUser/MyDisplay.cc mypath/BetaUser/MyDisplay.cc
cp /export/home/roger/tau/BetaUser/MyDisplay.hh mypath/BetaUser/MyDisplay.hh
now edit /mypath/BetaUser/AppUserBuild.cc with, e.g.
emacs /mypath/BetaUser/AppUserBuild.cc
After the line near the bottom of the file, add new Workbook, add the line
add ( new MyDisplay ("MyDisplay", "example") );
Now edit the corresponding header file, /mypath/BetaUser/AppUserBuild.hh . After the line near the top of the file, #include "BetaSequences/BtaAppBuild.icc", add the line
#include "BetaUser/MyDisplay.hh"
To compile (using option ROPT=-noDebug - as suggested by Alessandra to Chikara):
cd mypath
gmake ROPT=-noDebug BetaUser.bin
Now your executable should exist. The next step is to set up the tcl files to control the processes.

You will need to copy across a couple more of Roger's files to use (possibly just to see that it works, then edit own files)

cp /export/home/roger/tau/workdir/eventdis  /mypath/workdir/eventdis
cp /export/home/roger/tau/workdir/display.tcl  /mypath/workdir/display.tcl
Since you've copied across Roger's file, the following line will already be in display.tcl, but you may like to look there to see the syntax used. This file has, after the line sourceFoundUserFile mytau (or similar), the line:
sequence append MyAnalysis MyDisplay
If you're using kanga.tcl to control your jobs, you want to go into that file (e.g. using emacs), and before the line path append Everything MyAnalysis, add the line:
sequence append MyAnalysis MyDisplay
The program is run using the script eventdisp which you will need to source. You need to edit this file to contain a call to your .tcl program, e.g., the contents of eventdisp as taken directly from Roger's site are
./betarun ./display.tcl | awk 'BEGIN {FS="@"} /BPIX/ {print $2 | "gs >/dev/null"}'
Note: This assumes the user is using a bash shell (a reasonable assumption, as this is how accounts are set up in Manchester).

What happens?

Now run your program. E.g. from workdir
. /eventdisp
An event picture should come up from the first event. It's interactive from this stage.

What commands can I use?

Available options are: If you enter anything else you'll be given the list of valid options to choose from.

What about looking at other events?

Need to initialize the functions
MyDisplay::yes()
MyDisplay::no()
Choose one - if no, the event will be skipped. If yes, for each event the program will enter interactive mode for the display pictures.
Top

Last modified:  
Copyright © 2000-2001 Jenny Williams
All Rights Reserved
Email: jenny@hep.man.ac.uk