Message: Re: verbose levels Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: verbose levels 

Forum: Run Management
Re: Question verbose levels (Mark Boland)
Date: 22 Mar, 2002
From: Vladimir Ivanchenko <Vladimir Ivanchenko>

> *** Discussion title: Run Management
> Email replies to PublicHyperNews@slac.stanford.edu must include:
>   In-Reply-To: <"/runmanage/5"@geant4-hn.slac.stanford.edu>
>   Subject: ...change this to be about your reply.
> 
> Hi GEANT4 Team,
> 
> I am trying to control the output I generate in my EventAction class
> by setting the verbose levels in a macro, e.g.
> 
> /run/verbose 2
> /tracking/verbose 2
> /event/verbose 2
> 
> I would like to use these levels to switch on and off G4cout statements
> containing values of energy deposition etc. Is there a way I can test
> these levels in my EventAction class? For example
> 
> if(EventVerboseLevel == 2) G4cout << Energy << endl;
> 
> In some of the examples a "magical" variable varboseLevel is tested, and
> I cannot find where it is defined or which verbose level it refers to:
> run, tracking or event.
> 
> In summary, how do I access and test verbosity levels?
> 

Hi Mark,

If you use a command

/tracking/verbose

you define the level of verbosity for the tracking classes not for your
user classes. 

For users classes you have to define verbose level in other way. For
example directly in the code, or the the class instatiation in the main,
or you can create your own command which will be recognised by your own
Messenger and provide modification of the verbose level of your actions.

regards, VI



Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

 Add Message Add Message
to: "Re: verbose levels"

 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 ]