go4monitor

This is online/offline Go4 analysis of raw ROC data, produced by DABC or read directly from ROC

Requirements.

ROOT (http://root.cern.ch) and newest Go4 4.4 (http://go4.gsi.de) packages must be installed. Environment variables ROOTSYS, GO4SYS, PATH and LD_LIBRARY_PATH should be setup.

Build the package.

Just call make in directory where analysis is checked out. This will produce libGo4UserAnalysis.so library. Package is automatically build with complete ROClib when go4 is configured at that time.

Description of the package:

Files: TRocProc - processor with user analysis code TRocParam - place for user-defined parameters TRocSource - event source to read data directly from ROC

All classes are defined and declared in two files (*.h and *.cxx) The data can be read:

The processor: TRocProc The analysis code is in the event processor TRocProc. Members are histograms and parameter pointers used laster in data processing. In the constructor of TRocProc the histograms and parameters are created. Method BuildEvent - called event by event - gets input event pointer from the framework. Main loop goes throw all subevents - data portions from different ROCs. For each ROC number individual histograms are filled.

Parameter class: TRocParam In this class one can store parameters, and use them in all places of analysis. Parameters can be modified from GUI.

Autosave file mechanism: This is a file, where all analysis objects (histograms, parameters) are saved in the end of data analysis (by default autosave is disabled). If enabled, at startup time the autosave file is read and all objects are than restored from that file. When TGo4Analysis object is created, the autosave file is not yet loaded. Therefore the objects created here are overwritten by the objects from autosave file (if any), except histograms. From GUI, objects are loaded from autosave file when Submit button is pressed. One can inspect the content of the auto save file with the Go4 GUI.

Creating a new class: Provide the definition and implementation files (.h and .cxx) Add class in LinkDef.h Then "make all"

Use the example with lmd files: Run go4, lunch analysis on host where lmd files are stored. In analysis configuration set file names - one also can use "*" and "?" symbols to process several files at once. Press Submit and start button. While analysis is running, one can see all histograms.

Run in batch mode: Just run analysis program like this: [shell] go4analysis -file file_name -asf my.root // to process data from lmd file [shell] go4analysis -stream host -asf my.root // to process data from running DABC [shell] go4analysis -user rocname -asf my.root // to process data from single ROC directly Analysis will run through all events and produce my.root file with filled histograms. By pressing Ctrl-C processing will be stopped and output file closed. Histograms can be dispatched either in Go4 gui like: [shell] go4 my.root

More info: http://go4.gsi.de

S.Linev@gsi.de