cp /export/home/roger/tau/BetaUser/MyDisplay.cc mypath/BetaUser/MyDisplay.cc cp /export/home/roger/tau/BetaUser/MyDisplay.hh mypath/BetaUser/MyDisplay.hhnow edit
/mypath/BetaUser/AppUserBuild.cc
with, e.g.
emacs /mypath/BetaUser/AppUserBuild.ccAfter 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.binNow 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.tclSince 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 MyDisplayIf 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 MyDisplayThe 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).
workdir
. /eventdispAn event picture should come up from the first event. It's interactive from this stage.
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.
|
All Rights Reserved |
Email: jenny@hep.man.ac.uk |