$Id: README,v 1.16 2009/05/13 08:32:36 gbarrand Exp $ ------------------------------------------------------------------- ========================================================= Geant4 - an Object-Oriented Toolkit for Simulation in HEP ========================================================= AnaEx01 ------- This example shows the usage of histogram and tuple manipulations using an AIDA compliant system. In this example, all analysis manipulations (attaching an AIDA implementation, histo booking, filling, saving histos in a file, etc...) are concentrated in one class : AnaEx01AnalysisManager. To include the analysis code, the environment variable G4ANALYSIS_USE must be defined before doing "make". If not, at run time, no histograms and file will be created. For example, a typical session from a UNIX csh flavoured shell is : csh> source /aida-setup.csh csh> setenv G4ANALYSIS_USE 1 csh> make csh> ${G4BIN}/${G4SYSTEM}/AnaEx01 After execution, a file AnaEx01.aida should have been created. Someone can change the default file format by changing the value of the std::string variable format in the AnaEx01AnalysisManager constructor : // File format : std::string format("xml"); //std::string format("hbook"); //std::string format("root"); Working with the OpenScientist packages : --------------------------------------- To create the analysis file, you can install the light "osc_batch" binary kit (See http://OpenScientist.lal.in2p3.fr ). For example from a UNIX sh flavoured shell : sh> cd /usr/local sh> sh> sh> unzip -q osc_batch.zip sh> cd osc_batch/ sh> ./install Then you build the example with : csh> source /usr/local/osc_batch//aida-setup.csh csh> csh> setenv G4ANALYSIS_USE 1 csh> cd /examples/extended/analysis/AnaEx01 csh> make csh> ${G4BIN}/${G4SYSTEM}/AnaEx01 Depending of the file format, you can visualize the produced file with various interactive tools (CERN/PAW, CERN/ROOT, jas). But if installing also an OpenScientist osc_vis binary kit, you shall be able to visualize all formats by using the osc-plot program. To install an osc_vis kit : sh> cd /usr/local sh> sh> sh> unzip -q osc_vis.zip sh> cd osc_vis/ sh> ./install Then to browse the AnaEx01. file (for exa from an UNIX sh shell) : sh> . /usr/local/osc_vis//setup.sh sh> sh> osc-plot AnaEx01.[aida,root,hbook] The OpenScientist URL is : http://OpenScientist.lal.in2p3.fr. Note that OpenScientist is installed on CERN/lxplus under : /afs/cern.ch/sw/contrib/[osc_batch,osc_vis].