The scheleton we are presenting here for the Online Monitoring of the detector is based on three different approaches. Still everything is based on the nice SPY system developed by the DAQ group.
Our proposal at the moment is really minimalistic. We need to learn how to interpret the data on memory. In this case all calls to filling object histograms is done using the "c"-language. Minimal usage of the offline reconstruction is needed here. There are two possible scenarios:
We do not have preferences. Whatever it is decided is fine. What is clear is that the HISTO_PRESENTER, for "normal online detector monitoring" should:
Let us use "C" as the basic language for Online monitoring. More sophysticated analysis as, for istance, tracking reconstruction/calibration and so on DO NOT NEED TO BE "exactly" ONLINE. Indeed, we expect to close a file each 2-3 minutes. The EMC group intend to process as quick as possible, with all the magic of OFFLINE reconstruction, all the coming data in order to calculate calibrations and monitor relevant physical quantities (energy-time scales and resolution + efficiencies).
An A_C program spying/reading from files can always book HBOOK histos that can be quickly converted "ON REQUEST" to other objects as ROOT or OSH files.
******* ROOT USAGE NOW 8-AUG-1997 ********
Using the shared memory facility of the new ROOT version (v1.02), a producer & a consumer program have been created. The first one, uses the events coming from the online spy process, fills the histograms and stores them in a memory map file. The second one connects to this file and display the histograms.
All the code is in the area /kloe/soft/monitor/src/
PRODUCER: emchisprod.cxx
CONSUMER: CalSysTest.C,Input.C,BarrelHisto.C
*** HOW TO RUN IT OFFLINE *****
If you want to taste how the presenter looks like, a procedure to run it offline from the "daq" account has been set-up:
- Connect on dxcalc machine (the only one where at the moment ROOT v1.02 is installed) as "daq" user.
- Go to your favorite scratch area (for instance /scrtch1/kloedaq/daq/myarea )
- Give the command: source ~/root/root_example_setup.csh
This script creates a subdirectory "root" under the one where you stay & creates there all the necessary links and setup to run the presenter
- Start the root application typing:
- Type: .x CalSysTest.C a control bar appears
- Push the "Input data" button to open the memory map file
- Push one of the "Wedge # Histo" . A new menu appears.
From here you can display
15 histograms
selecting one of the buttons.
***** HOW TO RUN IT ONLINE *********
The procedure to run online from "daq" account is:
a) Start a receiver/builder/recorder procedure on dxcalc
b) Start a collector & sender procedure on axrt02
c) Start a spy-daemon process on dxcalc
d) Finally, go in your favourite scratch1 area and type:
source ~/root/hisprod_startup_OSF1.csh
e) Start the online ROOT presenter typing:
source ~/root/root_setup_OSF1.csh
Here the best of mixing between Online & Offline can really be done since
it is working today. Unfortunately works only from file .. still is a work
in progress.
**** HOW TO RUN IT OFFLINE *******
If you want to taste how the DISPLAY looks like, a procedure to run it
offline from the "daq" account has been set-up:
- Connect on dxcalc machine (the only one where at the moment ROOT v1.02 is
installed) as "daq" user
- Move to a scratch area (for instance /scrtch1/kloedaq/daq/ )
- Give the command: source ~/didone/didone_startup_XXX.csh (XXX= OSF or HP-UX)
This script starts the display
- select in A_C botton Vis-AC-Vis ...
a window A_C control appear.
- Open file: /kloe/soft/monitor/db/spy0000000.raw and
see in the main window if the file is succesfully open.
- go in A_C control window.
Play around with event botton using /next/automatic.
Play with Windows botton.. and learn to Zoom/Rotate and so on.
Online/Offline programs for DIDONE:
FINALLY the Displays
one window or
4 windows
appear.
AH AH .. Igor prepared for you a simple GUIDE in the iper-word of the KLOE daq ... HAVE FUN.
Top of the page. | Send comments to: Stefano Miscetti |
Created | : | 5.8.1997 |
Last modified | : | 5.8.1997 |