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

None User runaction is not called 

Forum: Run Management
Date: 30 Apr, 2016
From: Victor Meldrew <Victor Meldrew>

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 ]

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

1 None: Re: User runaction is not called   (Marc Verderi - 02 May, 2016)
 Add Message Add Message
to: "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 ]