Message: Re: get number of events to be started Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Idea Re: get number of events to be started 

Keywords: RunManager, run/beamOn
Forum: Run Management
Re: Question get number of events to be started (Christian Doerr)
Date: 12 Jun, 2002
From: Makoto Asai <Makoto Asai>

> Hello!
> Thanks for your reply. Well, my idea was that my PrimaryGenerator 
> should know the integer number that is passed to beamOn as argument. 
> I worked around this question, so I don't need it any more.
> But if there is an easy method that I couldn't figure out, I'd be 
> glad to learn about it.
> Thanks,
> Yours
>  Christian

The most elegant way I would like to suggest is creating a messenger 
associating to your PrimaryGeneratorAction which takes care a new 
command something like 
  /myAction/beamOn <numberOfEvent>
Once this command is issued from GUI or batch macro, this messenger
invokes a set method of your PrimaryGeneratorAction to pass an
integer number of the parameter of the command, and then invokes
the actual "beamOn()" method of G4RunManager.

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

1 Ok: Re: get number of events to be started   (maxime - 16 Dec, 2011)
 Add Message Add Message
to: "Re: get number of events to be started"

 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 ]