Main Page | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

GLG4VertexGen_Gun Class Reference

vertex generator that can generate a primary vertex with one more particles of a given type, direction, energy, and polarization. More...

#include <GLG4VertexGen.hh>

Inheritance diagram for GLG4VertexGen_Gun:

GLG4VVertexGen List of all members.

Public Types

enum  { numberOfElements = 110 }

Public Member Functions

 GLG4VertexGen_Gun (const char *arg_dbname)
virtual void GeneratePrimaryVertex (G4Event *argEvent)
 Generates one or more particles with a specified momentum, or isotropic momentum with specific energy, and specified polarization, or uniformly random polarization, based on parameters set via SetState().
virtual void SetState (G4String newValues)
 Set state of the GLG4VertexGen_Gun, or show current state and explanation of state syntax if empty string provided.
virtual G4String GetState ()

Static Public Attributes

const char * theElementNames [numberOfElements]

Detailed Description

vertex generator that can generate a primary vertex with one more particles of a given type, direction, energy, and polarization.

Allows for randomly isotropic direction and random transverse polarization of spin-1, mass=0 particles


Member Function Documentation

void GLG4VertexGen_Gun::SetState G4String  newValues  )  [virtual]
 

Set state of the GLG4VertexGen_Gun, or show current state and explanation of state syntax if empty string provided.

Format of argument to GLG4VertexGen_Gun::SetState: "pname momx_MeV momy_MeV momz_MeV KE_MeV polx poly polz mult", where

  • pname is the name of a particle type (e-, mu-, U238, ...)
  • mom*_MeV is a momentum in MeV/c
  • KE_MeV is an optional override for kinetic energy
  • pol* is an optional polarization vector.
  • mult is an optional multiplicity of the particles. If mom*_MeV==0 and KE_MeV!=0, then random isotropic directions chosen. If pol*==0, then random transverse polarization for photons.

Implements GLG4VVertexGen.


Member Data Documentation

const char * GLG4VertexGen_Gun::theElementNames [static]
 

Initial value:

 {
  "H",                                                                                                "He", 
  "Li", "Be",                                                             "B",  "C",  "N",  "O", "F", "Ne", 
  "Na", "Mg",                                                             "Al", "Si", "P", "S", "Cl", "Ar", 
  "K", "Ca", "Sc", "Ti", "V", "Cr", "Mn", "Fe", "Co", "Ni", "Cu", "Zn", "Ga", "Ge", "As", "Se", "Br", "Kr", 
  "Rb", "Sr", "Y", "Zr", "Nb", "Mo","Tc", "Ru", "Rh", "Pd", "Ag", "Cd", "In", "Sn", "Sb", "Te", "I",  "Xe", 
  "Cs", "Ba", 
              "La", "Ce", "Pr", "Nd", "Pm", "Sm", "Eu", "Gd", "Tb", "Dy", "Ho", "Er", "Tm", "Yb", "Lu", 
                   "Hf", "Ta", "W", "Re", "Os", "Ir", "Pt", "Au", "Hg", "Tl", "Pb", "Bi", "Po", "At", "Rn", 
  "Fr", "Ra", 
              "Ac", "Th", "Pa",  "U", "Np", "Pu", "Am", "Cm", "Bk", "Cf", "Es", "Fm", "Md", "No", "Lr",
              "Rf", "Db", "Sg", "Bh", "Hs", "Mt", "Xa"
  
}


The documentation for this class was generated from the following files:
Generated on Fri Jul 6 13:31:46 2007 for GLG4sim by  doxygen 1.3.9.1