Message: Re: Getting Number of Events to normalize Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Getting Number of Events to normalize 

Keywords: value of number of events
Forum: Run Management
Re: None Getting Number of Events to normalize (Katherin Shtejer)
Date: 15 Feb, 2007
From: Makoto Asai <Makoto Asai>

You can get the pointer to G4Run object by
 const G4Run* aRun 
  = G4RunManager::GetRunManager()->GetCurrentRun();
Please note that this pointer is null before you run the 
first event. This pointer is valid until you prceed to 
the next run if you are using Geant4 version 8.2, while
valid only durling the event loop if you use the earlier
version.

Also, please note that G4Run::GetNumberOfEvent() returns
the number of events which have already processed. Thus,
if you use this method durling the event loop, the number
actually increments event by event. On the other hand,
G4Run::GetNumberOfEventToBeProcessed() returns the number
you specified with the "beamOn" command. Thus, if the run
is aborted, G4Run::GetNumberOfEventToBeProcessed() does 
not return the actual number of event processed.

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

1 None: Re: Getting Number of Events to normalize   (Katherin Shtejer - 16 Feb, 2007)
 Add Message Add Message
to: "Re: Getting Number of Events to normalize"

 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 ]