Message: Re: User runaction is not called Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: User runaction is not called 

Forum: Run Management
Re: None User runaction is not called (Victor Meldrew)
Date: 02 May, 2016
From: Marc Verderi <Marc Verderi>

Hello Victor,

If the spelling of your snapshot code is correct, you just misspelled 
the method name : should be BeginOfRunAction (ie capital "O" for "Of").

Cheers,
Marc

On 01/05/2016 02:24, traveller wrote:
> *** Discussion title: Run Management
>
> Hello All
>
>     My RunAction::BeginofRunAction function is never being called. Ie
> "============Run no is =" below is never printed.The code compiles and runs
> fine however.
>
> --------------------------------------------------------
> I have this in "RunAction::BeginofRunAction" :
>
> void RunAction::BeginofRunAction(const G4Run* run)
> {
> G4cout << "============Run no is = "<< run->GetRunID() << G4endl;
> }
> --------------------------------------------------------
> My ActionInitialization is this:
> #include "ActionInitialization.hh"
> void ActionInitialization::BuildForMaster() const
> {
> RunAction* runAction = new RunAction;
> SetUserAction(runAction);
> }
> void ActionInitialization::Build() const
> {
>     ...
>      SetUserAction(new RunAction);
>     ...
> }
> --------------------------------------------------------
> and my main code is:
> runManager->SetUserInitialization(new ActionInitialization());
> --------------------------------------------------------
>
>    Any help would be appreciated. Thanks.
>
> Victor.
>
>   [ MIME part of type text/html without a name stripped ]
>
> -------------------------------------------------------------
> Visit this GEANT4 at hypernews.slac.stanford.edu message (to reply or unsubscribe) at:
> http://hypernews.slac.stanford.edu/HyperNews/geant4/get/runmanage/405.html

 Add Message Add Message
to: "Re: User runaction is not called"

 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 ]