Message: Re: RE: BeamOn won't allow generating more than 3 billion events Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: RE: BeamOn won't allow generating more than 3 billion events 

Forum: Run Management
Re: Question BeamOn won't allow generating more than 3 billion events (John McFee)
Re: None RE: BeamOn won't allow generating more than 3 billion events (Makoto Asai)
Re: None Re: RE: BeamOn won't allow generating more than 3 billion events (Manuel Castro Avila)
Re: None Re: RE: BeamOn won't allow generating more than 3 billion events (Paul Nicholas Colin Gloster)
Date: 04 Oct, 2011
From: Gumplinger Peter <Gumplinger Peter>

I suggest you don't mess with the G4int typedef and especially don't assume that nowhere in the code this takes on negative integers. If it is too combersome for you to merge the results of separate runs to get the statistics you need, and you are free to modify the Geant4 source, then by all means redefine the code of G4RunManager:BeamOn:

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

so that n_event take the new meaning of n * billions of events. You then modify G4RunManager::DoEventLoop adding an outside for-loop accordingly.

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

I checked, i_event, G4RunManager::numberOfEventToBeProcessed and G4Run:numberOfEventToBeProcessed are used for printing purposes only except for some visualization logic at:

http://www-geant4.kek.jp/lxr/source/visualization/management/src/G4VisManager.cc#L1375

which looks harmless especially for a large batch job.

Running multiple primary particles for each event is only a solution if you are interested in quantities that are accumulative for the entire run. For signals that are derived event by event this will produce the wrong result because you'll get the system's responds to multiple primary particles/per event not just each one independently.

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

1 Question: Re: RE: BeamOn won't allow generating more than 3 billion events   (Manuel Castro Avila - 05 Oct, 2011)
(_ Feedback: Re: RE: BeamOn won't allow generating more than 3 billion events   (Gumplinger Peter - 05 Oct, 2011)
 Add Message Add Message
to: "Re: RE: BeamOn won't allow generating more than 3 billion events"

 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 ]