GLG4VertexGen_Gun2 Class Reference
|
Ratpac-two
|
#include <GLG4VertexGen.hh>
Public Types | |
| enum | { numberOfElements = 110 } |
Public Member Functions | |
| GLG4VertexGen_Gun2 (const char *arg_dbname="gun2") | |
| virtual void | GeneratePrimaryVertex (G4Event *argEvent, G4ThreeVector &dx, G4double dt) |
| virtual void | SetState (G4String newValues) |
| virtual G4String | GetState () |
Public Member Functions inherited from GLG4VertexGen | |
| GLG4VertexGen (const char *arg_dbname="vertex") | |
| virtual bool | ELimitable () |
| virtual void | LimitEnergies (double, double) |
| virtual double | EMaximum () |
| virtual double | EMinimum () |
Static Public Attributes | |
| static const char * | theElementNames [numberOfElements] |
Protected Attributes | |
| G4ParticleDefinition * | _pDef |
| G4ThreeVector | _mom |
| G4double | _mom_theta |
| G4double | _ke1 |
| G4double | _ke2 |
| G4ThreeVector | _pol |
| G4int | _multiplicity |
Protected Attributes inherited from GLG4VertexGen | |
| G4String | _dbname |
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
◆ GeneratePrimaryVertex()
|
virtual |
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()
Implements GLG4VertexGen.
◆ SetState()
|
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 std::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 GLG4VertexGen.
Member Data Documentation
◆ theElementNames
|
static |
The documentation for this class was generated from the following files:
- /home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/gen/include/RAT/GLG4VertexGen.hh
- /home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/gen/src/GLG4VertexGen.cc
Generated by
Public Member Functions inherited from