Message: Re: Histogram related with ROOT Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Histogram related with ROOT 

Forum: Particles
Re: Question Histogram related with ROOT (Arami)
Date: 12 Feb, 2003
From: michel maire <michel maire>

User Arami wrote:

>> Hi.I`m in the first step of Geant4... I know how to set a uniform
>> cylinderical beam.. But I don`t know a way of making a Gaussian shape
>> beam(three dimensional). [Is this related with RandGauss or
>> RandMultiGauss(in PrimaryGenertorAction.cc)?] The energy of particle is
>> fixed..just need a variation of the number of particle...At
>> x,y,z=0(center of beam),the most particles are shut.In other
>> words,function of beam shape is te number of paticle vs positon(from
>> cener of circle)..What should I add to definition part of beam in
>> PrimaryGeneratorAction.cc?

An example of beam randomization is given in novice/N03. See README and ExN03PrimaryGeneratorAction::GeneratePrimaries()

Replace G4UniformRand() by G4RandGauss::shoot(mean,sigma)

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

 Add Message Add Message
to: "Re: Histogram related with ROOT"

 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 ]