VMC Examples Version 6.6
|
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 () |
void | SetNofPrimaries (Int_t nofPrimaries) |
Private Member Functions | |
void | GenerateOnePrimary () |
Private Attributes | |
TVirtualMCStack * | fStack |
VMC stack. | |
Int_t | fNofPrimaries |
Number of primary particles. | |
VMC::TR::PrimaryGenerator::PrimaryGenerator | ( | TVirtualMCStack * | stack | ) |
Standard constructor
stack | The VMC stack |
Definition at line 36 of file PrimaryGenerator.cxx.
VMC::TR::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 45 of file PrimaryGenerator.cxx.
VMC::TR::PrimaryGenerator::PrimaryGenerator | ( | ) |
Default constructor
Definition at line 55 of file PrimaryGenerator.cxx.
|
virtual |
|
virtual |
Fill the user stack (derived from TVirtualMCStack) with primary particles.
Definition at line 114 of file PrimaryGenerator.cxx.
|
inline |
Set the number of particles to be generated
nofPrimaries | The number of particles to be generated |
Definition at line 63 of file PrimaryGenerator.h.
|
private |
Add one primary particle (kElectron) to the user stack (derived from TVirtualMCStack).
Definition at line 71 of file PrimaryGenerator.cxx.
|
private |
VMC stack.
Definition at line 53 of file PrimaryGenerator.h.
|
private |
Number of primary particles.
Definition at line 54 of file PrimaryGenerator.h.