Message: Re: A small question found in exampleB1 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: A small question found in exampleB1 

Forum: Documentation and Examples
Re: Question A small question found in exampleB1 (Huagang Yan)
Date: 22 Aug, 2016
From: Makoto Asai <Makoto Asai>

> I am surprised because the method Build() in B1ActionInitialization
> seems never called while the single command
> "runManager->SetUserInitialization(new B1ActionInitialization())" still
> works.

The old style of setting user action classes to G4RunManager still works for Geant4 version 10 series as long as you instantiate G4RunManager (not G4MTRunManager) and thus you run your application in sequential mode. This guarantees the backward compatibility of the user's code. If you instantiate G4MTRunManager, you have to use G4UserActionInitialization class.

Hope this helps, Makoto

 Add Message Add Message
to: "Re: A small question found in exampleB1"

 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 ]