Message: Re: How can I add to the number of events to be run? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: How can I add to the number of events to be run? 

Forum: Run Management
Re: Question How can I add to the number of events to be run? (Ioannis Sechopoulos)
Date: 05 Mar, 2010
From: Gumplinger Peter <Gumplinger Peter>

Hi Ioannis,

Yours is an interesting question, I am not the expert, but I am afraid, short of writing your own RunManager class, there is nothing you can do to manipulate the n_event:

http://www-geant4.kek.jp/lxr/source/run/src/G4RunManager.cc#L232

inside the DoEventLoop method. I don't know but the compiler may not even allow you to change the loop limit within the loop as the for-loop is written.

I agree, it is confusing that there is a public method SetNumberOfEventToBeProcessed but that doesn't actually do anything. BeamOn is the only method that sets the number of events to be processed.

You are getting on very shaky ground if you try to initiate an event from a user hook of a previous event.

Peter

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

1 Idea: Re: How can I add to the number of events to be run?   (Tom Roberts - 06 Mar, 2010)
(_ Ok: Re: How can I add to the number of events to be run?   (Ioannis Sechopoulos - 08 Mar, 2010)
 Add Message Add Message
to: "Re: How can I add to the number of events to be run?"

 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 ]