Message: 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

Question BeamOn won't allow generating more than 3 billion events 

Forum: Run Management
Date: 22 Jul, 2010
From: John McFee <John McFee>

I am running a program which generates a number of primary photons and detects resulting neutrons and gammas. In the main program, after initializing the run manager, there is a line that allows me to execute a macro 

		UI->ApplyCommand("/control/execute Production.mac");


(where UI is a pointer of type  G4UImanager).

In the Production.mac macro, the number of events to be processed is set by a line:
/run/beamOn 2000000000

This executes the BeamOn(G4int n_event) method, wherein lies my problem. A G4Int goes up to 2^31 or  2,147,483,648. I want to have 3 billion or more events, so I need the argument to be a G4long. Is there a simple way to do this?

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

1 None: RE: BeamOn won't allow generating more than 3 billion events   (Asai, Makoto - 30 Jul, 2010)
(_ None: Re: RE: BeamOn won't allow generating more than 3 billion events   (Manuel Castro Avila - 03 Oct, 2011)
(_ None: Re: RE: BeamOn won't allow generating more than 3 billion events   (=?UTF-8?Q?Nicholas_Collin_Paul_de_Glouce=C5=BFter?= - 04 Oct, 2011)
(_ Feedback: Re: RE: BeamOn won't allow generating more than 3 billion events   (Gumplinger Peter - 04 Oct, 2011)
(_ 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: "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 ]