|
VMC Examples Version 6.7
|
The primary generator. More...
#include <PrimaryGenerator.h>

Public Member Functions | |
| PrimaryGenerator (TVirtualMCStack *stack) | |
| PrimaryGenerator (const PrimaryGenerator &origin, TVirtualMCStack *stack) | |
| PrimaryGenerator () | |
| virtual | ~PrimaryGenerator () |
| virtual void | GeneratePrimaries (const TVector3 &worldSize) |
| void | SetNofPrimaries (Int_t nofPrimaries) |
| void | SetVertexPosition (TVector3 position) |
| void | SetVertexDirection (TVector3 direction) |
| TVector3 | GetVertexPosition () const |
| Return the Vertex position. | |
| TVector3 | GetVertexDirection () const |
| Return the Vertex direction. | |
Private Member Functions | |
| void | GenerateOnePrimary (const TVector3 &origin) |
Private Attributes | |
| TVirtualMCStack * | fStack |
| VMC stack. | |
| Int_t | fNofPrimaries |
| Number of primary particles. | |
| TVector3 | fVertexPosition |
| Vertex position. | |
| TVector3 | fVertexDirection |
| Vertex direction. | |
The primary generator.
Geant4 gflash example adapted to Virtual Monte Carlo.
Definition at line 40 of file PrimaryGenerator.h.
| VMC::Gflash::PrimaryGenerator::PrimaryGenerator | ( | TVirtualMCStack * | stack | ) |
Standard constructor
| stack | The VMC stack |
Definition at line 39 of file PrimaryGenerator.cxx.
| VMC::Gflash::PrimaryGenerator::PrimaryGenerator | ( | const PrimaryGenerator & | origin, |
| TVirtualMCStack * | stack ) |
Copy constructor (for clonig on worker thread in MT mode).
| origin | The source object (on master). |
| stack | The VMC stack |
Definition at line 51 of file PrimaryGenerator.cxx.
| VMC::Gflash::PrimaryGenerator::PrimaryGenerator | ( | ) |
Default constructor
Definition at line 65 of file PrimaryGenerator.cxx.
|
virtual |
|
virtual |
Fill the user stack (derived from TVirtualMCStack) with primary particles.
Definition at line 141 of file PrimaryGenerator.cxx.
|
inline |
Set the number of particles to be generated
| nofPrimaries | The number of particles to be generated |
Definition at line 77 of file PrimaryGenerator.h.
|
inline |
Set the Vertex position
| position | The Vertex position |
Definition at line 84 of file PrimaryGenerator.h.
|
inline |
Set the Vertex direction
| direction | The Vertex direction |
Definition at line 91 of file PrimaryGenerator.h.
|
inline |
Return the Vertex position.
Definition at line 97 of file PrimaryGenerator.h.
|
inline |
Return the Vertex direction.
Definition at line 103 of file PrimaryGenerator.h.
|
private |
Add one primary particle (kElectron) to the user stack (derived from TVirtualMCStack).
| origin | The track position |
Definition at line 86 of file PrimaryGenerator.cxx.
|
private |
VMC stack.
Definition at line 65 of file PrimaryGenerator.h.
|
private |
Number of primary particles.
Definition at line 66 of file PrimaryGenerator.h.
|
private |
Vertex position.
Definition at line 67 of file PrimaryGenerator.h.
|
private |
Vertex direction.
Definition at line 68 of file PrimaryGenerator.h.