Running the Interactive COBRA Demo
Requirements
- python2.2
- CMS environment:
if not please:
setenv PATH /afs/cern.ch/cms/utils/:${PATH}
or
export PATH=/afs/cern.ch/cms/utils/:${PATH}
- the latest greatest COBRA version (7_5_0)
If you have access to cern afs this is granted to be true
Startup
Just excecute
- wget http://cobra.web.cern.ch/cobra/testdata/go
- chmod 755 go
- ./go
it will run a python script that creates a
local COBRA area, bootstrap it, copy a bunch of files locally,
opens emacs with a python script and finally starts icobra
Playing
Disclaimer
This is just a prototype, it is unstable and not robust enough
to support end-users.
In using it please be very patient, particularly if you are on a slow
and overloaded system and network (lxplus for instance).
Take into account that it segfaulted on me few times on lxplus
before running properly.
In a close future it will be ported to Iguana that is able to handle
Qt events much better.
Escape Lane
if you are lost just control-z, and killall -9
icobra
(You may need to kill few more python and icobra processes by hand)
Enjoying
- go forward and backward in the event collection using next
event and previous event. If you pass first or
last event just Rewind
- wait a message of the type tellHim... before clicking
further
- click event dump and wait that the Qt canvas with the
event structure appears.
Green exagons represent Runs,
Magenta exagons represent Digi events,
Big Red exagons represent Reco events,
Small Red exagons represent RecObj collections
- Use left button and mouse to move the
objects around; click on the right mouse to inspect them (dump on
cout at the moment).
RecObj (small exagon) do not respond yet to inspection.
- to exit click the big Quit button.
any other procedure requires usage of the Escape way
Runnig scripts
- copy the script opened in emacs in the paste buffer
- click on the edit script button
- your preferred editor will start up
- paste the script in the editor buffer
- if emacs close it with control-x # (or save and
close)
else: typically save and exit
Python scripts write in the first pad below the buttons.
Clicking on event dump you should notice that the
Transient event has changed...
Understanding what happened
the go script
Inspecting the go you will notice that it
is a sort of prototype of a python-binding to scram.
the Qt windows
just copy paste form qt example. It contains still the original
demo fuctionalities...
the python script
Python version of the well known COBRA
Observers, RecCollections and so on,
built using boost-python and pyste.
Code source
Code for the Demo is under
COBRA/Visualisation/EventReaderTest
Vincenzo Innocente
Most recently modified on Mon Dec 15 13:51:26 CET 2003 by Vincenzo Innocente