Message: Re: global switch to hdf5 output Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: global switch to hdf5 output 

Forum: Analysis
Re: None global switch to hdf5 output (Svetlana Shasharina)
Re: None Re: global switch to hdf5 output (Ivana Hrivnacova)
Re: None Re: global switch to hdf5 output (Svetlana Shasharina)
Date: Apr 04, 03:32
From: Ivana Hrivnacova <Ivana Hrivnacova>

Dear Svetlana,

The G4 analysis is used in basic B4 and B5 examples, and also in many extended/advanced examples. The default output format is Root. To change this default, you need to modify the analysis include file. For example, in the B4 example, this means to change the content of G4Analysis.hh, which is

     #include "g4root.hh"
   //#include "g4csv.hh"
   //#include "g4xml.hh"

to

   #include "g4hdf5.hh" 
   // #include "g4root.hh"
   //#include "g4csv.hh"
   //#include "g4xml.hh"

No other changes in the code are needed.

However the above is available only when an application is using Geant4 analysis; if GRAS defines its own analysis class, independent from Geant4 analysis, the HDF5 may be not available.

You can check if Geant4 analysis is used implicitly, by looking if the Geant4 UI commands /analysis/* are present, when you type "help" in an interactive session.

Best regards,

 Add Message Add Message
to: "Re: global switch to hdf5 output"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]