Hi all,
Since it hasn't been possible to connect remotely to pii3 for some
time now, I played around a little and came up with BRED.
BRED (which is pronounced "breed") is a general event display for
BRAHMS. The design is based on modules. Each module corresponds to
some kind of detector, and is responsible for defining the detector
geometry and drawing hits and/or tracks. A specialised subclass of
BrMainModule is responsible for the GUI and stoping the module
pipeline after each event.
It all runs via bratmain (of course), and in the configuration script
you specify which detectors you want to visualise. One can insert
filters to select only the events one is intrested in. There's an
example in the "test" subdirectory.
The code is surprinsingly simple. All in all, BRED is not more than
3000 lines, and I wrote it in 4 or 5 days. Ok, so documentation is
suspiscisouly missing from most of the code :-(
What is there and what isn't:
* 3D diplay of all detectors, except TOFW, BB, ZDC, and poor display
of the RICH (image plane missing)
* TPC hits and tracks are visualised.
* TMA and SMA hits are visualised.
* Save current display to GIF, PS, EPS, script or ROOT file.
* Setting view ranges and angles via popup dialog
* X3D (plain and if avaliable OpenGL) display.
* Hits in the TOFs are not displayed, but it should be fairly easy to
do (I didn't have a file with BrTofRdo objects, so I couldn't test
it).
* DC `hits' and tracks are not displayed (for the same reason as
above).
* C1 and RICH hits are not displayed (as above).
* The `special' geometry (4 panels) of TOFW is not fully integrated.
* I'd like to show the centrality in the GUI somehow, but I'm not sure
how I'd like to do that just yet.
* The vertex(es) are not drawn yet.
* The BBs are not drawn, since I haven't figured out how I'd like to
draw them, and I need to look in BRAG for the geometry. Similar goes
for the ZDCs.
* The look'n'feel of the GUI is not as nice as some of the other
visualisation packages like TED. However, that is really of minor
concern to me. I'd rather have all detector reponses visualised
than putting images on buttons!
That's a lot of "nots" I'm afraid, but I think the framework is simple
enough and it's fairly easy to do most of the stuff above. So, if you
like, please see if you can implement some of the above easily.
Thanks to Alv et al, for inspirration to the TPC stuff, which I mainly
took from tpc3d.
Please note, that this package is _not_ meant to obsolete specialised
packages like TED, tpc3d, rich2d, and so on. Rather, it's supposed to
provide a simplified view of all BRAHMS.
Currently, you can find BRED in my CVS area:
brahms_app/cholm_app/bred
but if the intrest is big enough, we should put it along side BRAT,
BROP, or perhaps in BROP (although it's not really only for online
monitoring). It builds like anyother package:
cvs -d /afs/rhic/brahms/BRAHMS_CVS co -d bred brahms_app/cholm_app/bred
cd bred
./autogen <configure options>
make install
I hope you like this little toy.
Yours,
Christian Holm Christensen -------------------------------------------
Address: Sankt Hansgade 23, 1. th. Phone: (+45) 35 35 96 91
DK-2200 Copenhagen N Cell: (+45) 28 82 16 23
Denmark Office: (+45) 353 25 305
Email: cholm@nbi.dk Web: www.nbi.dk/~cholm
This archive was generated by hypermail 2b30 : Tue Dec 04 2001 - 10:45:32 EST