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

None Getting Number of Events to normalize 

Keywords: value of number of events
Forum: Run Management
Date: 15 Feb, 2007
From: Katherin Shtejer <kshtejer@if.usp.br>

Hi,

My problem is based on Hadrontherapy advanced example, with two main differences: 1) My geometry is very simple because I am using a simple detector divided in slices (these are sensitive detectors) where I record my hits. 2) I created a class named "Histograma" with the vectors to store the data coming from myTargetSD class.

My actual difficulty is that I want to normalize all of these data in "Histograma" by the total number of event and I do not know do it. I know this is possible if I put in myRunAction.cc this:

void myN01RunAction::BeginOfRunAction(const G4Run*) { G4int n_evt = aRun->GetNumberOfEvent(); ... }

but can you tell me how to get the value of n_evt in "Histograma" ?

I would appreciate any help..

Thank you

Katherin

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   (Makoto Asai - 15 Feb, 2007)
(_ None: Re: Getting Number of Events to normalize   (Katherin Shtejer - 16 Feb, 2007)
 Add Message Add Message
to: "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 ]