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

Basic generator to generate a cascade of discrete gamma-rays. More...

#include <SToGS_BasicPrimaryGeneratorAction.hh>

Inherits G4VUserPrimaryGeneratorAction.

Public Member Functions

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

Detailed Description

Basic generator to generate a cascade of discrete gamma-rays.

This generator read a setup file to generate a cascade of discrete gamma-rays. Here is a snapshot of such a file:

#
# Ascii file that described the particle cascade shoot in a given event for HermeBasicPrimaryGeneratoraction
# This is a BASIC 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
# 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 is a flag number depending on the information given below per particle
# - 0 : the emission cone is given for the first gamma only (similar to all gammas)
# - 1 : gamma energy and angular emission cone are indicated for each particle
# NB: the above second option might be useful in case the shells of the detector do not cover 4pi but also for investigating the influence
# of overlapping - or not - shells depending on the gamma energy (e.g. low vs. high energy gammas)
#
# source position and velocity/c
0. 0. 0. 0. 0. 0.000
# file format
0
# cascade: energy (in KeV) theta_min theta_max phi_min phi_max (depending on the format)
25000. 0. 180. 0. 360.
300
400.
500.
600.
700
800.
900
#
Warning
The multiplicity of the cascade is restricted to 100.

Definition at line 80 of file SToGS_BasicPrimaryGeneratorAction.hh.

Constructor & Destructor Documentation

ParisBasicPrimaryGeneratorAction::ParisBasicPrimaryGeneratorAction ( )

Definition at line 38 of file SToGS_BasicPrimaryGeneratorAction.cc.

SToGS::ParisBasicPrimaryGeneratorAction::ParisBasicPrimaryGeneratorAction ( G4String  )
ParisBasicPrimaryGeneratorAction::~ParisBasicPrimaryGeneratorAction ( )
virtual

Definition at line 130 of file SToGS_BasicPrimaryGeneratorAction.cc.

Member Function Documentation

void ParisBasicPrimaryGeneratorAction::ComputeParameters ( G4String  filename = "setup/basic.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/basic.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 177 of file SToGS_BasicPrimaryGeneratorAction.cc.

void ParisBasicPrimaryGeneratorAction::GeneratePrimaries ( G4Event *  anEvent)
virtual

Definition at line 135 of file SToGS_BasicPrimaryGeneratorAction.cc.


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