GAMOS 5.1.0 User's Guide | ||
---|---|---|
<<< Previous | Managing the verbosity | Next >>> |
You can create your own verbosity manager for the code you use taking as example one of the GAMOS verbosity managers (for example the class GmGenerVerbostityMgr in the package GamosCore/GamosGenerator).
First create a class inheriting from GmVerbosityMgr and fill it as follows:
In the include file (i.e. the one with suffix .hh) of this class define an object of type GmVerbosity as extern
extern GmVerbosity MyVerb; |
In the method void SetFilterLevel( int fl ) call the same method of your GmVerbosity object
MyVerb.SetFilterLevel( fl ); |
In the method void GetFilterLevel( int fl ) call the same method of your GmVerbosity object
MyVerb.GetFilterLevel( fl ); |
Finally you have to transform your class into a plug-in:
DEFINE_GAMOS_VERBOSITY(MyVerbosityMgr); |
<<< Previous | Home | Next >>> |
Using a GAMOS verbosity manager in your code | Up | Controlling the Geant4 verbosity by event and track |