Message: Re: Any way to change UserAction registrations after the fact? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Any way to change UserAction registrations after the fact? 

Forum: Run Management
Re: Question Any way to change UserAction registrations after the fact? (Michael H. Kelsey)
Date: 06 Jul, 2017
From: Makoto Asai <Makoto Asai>

You have to write a small messenger class that sets your stacking
action to run manager. Old stacking action pointer will be just
forgotten. Please make sure to do it for worker run manager as well
if you run your code in MT mode.
Hope this helps,
Makoto

On 7/6/17, 5:25 PM, "Michael H. Kelsey" <kelsey@slac.stanford.edu> wrote:

>
>*** Discussion title: Run Management
>
>Is there any way to change the user actions registered by
>ActionInitialization::Build() after the fact? In particular, can this be
>done during the PreInit state (e.g., via UI commands), but after
>RunManager->SetUserInitialization(new ActionInitialization) has been
>called?
>
>I have a use case where I would like to be able to switch between two
>different stacking actions (each of which comes from a different utility
>library) via a run-time macro command. As is usual with G4 applications,
>the UI is not instantiated until the RunManager configuration is
>finished.
>
>  -- Michael Kelsey
>
>-------------------------------------------------------------
>Visit this GEANT4 at hypernews.slac.stanford.edu message (to reply or
>unsubscribe) at: 
>http://hypernews.slac.stanford.edu/HyperNews/geant4/get/runmanage/425.html
> 


 [ MIME part of type application/ms-tnef stripped ]

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

1 None: Re: Any way to change UserAction registrations after the fact?   (Mike Kelsey - 06 Jul, 2017)
 Add Message Add Message
to: "Re: Any way to change UserAction registrations after the fact?"

 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 ]