Message: Set number of events Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Set number of events 

Forum: Event and Track Management
Date: 24 Apr, 2004
From: Vlasios Vasileiou <Vlasios Vasileiou>

I want to specify the number of events in a run. I don't want to do it manually via /run/beamOn nevents but I want the program to do it by itself depending on the number of events in the input file.

I tried using

G4int nevents=10; aRun->SetNumberOfEventToBeProcessed(nevents)

from inside my runaction but I was getting error messages "no matching function to call".

I think the problem was that aRun is a const inside the runaction.

Is there a way to specify the number of events to be processed?


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

1 None: Re: Set number of events   (Tom Roberts - 24 Apr, 2004)
 Add Message Add Message
to: "Set number of 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 ]