SToGS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
SToGS::ParisUniformPrimaryGeneratorAction Class Reference

It generates gamma-rays using an uniform distribution. More...

#include <SToGS_UniformPrimaryGeneratorAction.hh>

Inherits G4VUserPrimaryGeneratorAction.

Public Member Functions

void ChangeMultiplicity (G4int smult)
 
void ComputeParameters (G4String filename="setup/uniform.gene")
 from a given file, it reads the characteristics of the gamma cascade More...
 
virtual void GeneratePrimaries (G4Event *anEvent)
 
 ParisUniformPrimaryGeneratorAction ()
 
 ParisUniformPrimaryGeneratorAction (G4String)
 
virtual ~ParisUniformPrimaryGeneratorAction ()
 

Detailed Description

It generates gamma-rays using an uniform distribution.

This generator read a setup file ( setup/uniform.gene) to generate a cascade of gamma-rays. A template of such a file is available is the setup directory (uniform.gene.demo). Here is a snapshot:

#
# Ascii file that described the particle cascade shoot in a given event for ParisUniformPrimaryGeneratorAction
# This is a basic UNIFORM photon generator !! I.e. only gammas are allowed and each of them is emitted from the same source point
# The number of gammas per cascade is free but can not exceed 100 (see below)
# The first line gives information on the source position (x, y, z) in the lab frame (experimental hall frame) as well as
# its velocity components (vx,vy,vz) required for including Doppler effects (note that z is the direction of the beam).
# For sake of simplicity, the velocity components are given in units of the speed of light i.e. (beta_x, beta_y, beta_z).
# The second line gives the number of gamma to be shoot (multiplicity max of 100)
# The third line indicates the energy range over which the gammas will be randomly sampled as well as their emission cone
#
# source position and velocity/c
0. 0. 0. 0. 0. 0.0
# number of particles
1
# cascade: energy (in KeV) min and max theta_min theta_max phi_min phi_max
0. 25000. 0. 180. 0. 360.
#
Warning
The multiplicity of the cascade is restricted to 100.

Definition at line 71 of file SToGS_UniformPrimaryGeneratorAction.hh.

Constructor & Destructor Documentation

ParisUniformPrimaryGeneratorAction::ParisUniformPrimaryGeneratorAction ( )

Definition at line 38 of file SToGS_UniformPrimaryGeneratorAction.cc.

SToGS::ParisUniformPrimaryGeneratorAction::ParisUniformPrimaryGeneratorAction ( G4String  )
ParisUniformPrimaryGeneratorAction::~ParisUniformPrimaryGeneratorAction ( )
virtual

Definition at line 136 of file SToGS_UniformPrimaryGeneratorAction.cc.

Member Function Documentation

void ParisUniformPrimaryGeneratorAction::ChangeMultiplicity ( G4int  smult)

Definition at line 262 of file SToGS_UniformPrimaryGeneratorAction.cc.

void ParisUniformPrimaryGeneratorAction::ComputeParameters ( G4String  filename = "setup/uniform.gene")

from a given file, it reads the characteristics of the gamma cascade

The parameters are read from a file which is by default setup/uniform.gene. In this file, the position . of the emitting gamma source, the angular coverage of the emission cone and the gamma energy can be modified

Definition at line 188 of file SToGS_UniformPrimaryGeneratorAction.cc.

void ParisUniformPrimaryGeneratorAction::GeneratePrimaries ( G4Event *  anEvent)
virtual

Definition at line 142 of file SToGS_UniformPrimaryGeneratorAction.cc.


The documentation for this class was generated from the following files: