VMC Examples Version 6.6
|
The primary generator. More...
#include <A01PrimaryGenerator.h>
Public Member Functions | |
A01PrimaryGenerator (TVirtualMCStack *stack) | |
A01PrimaryGenerator (const A01PrimaryGenerator &origin, TVirtualMCStack *stack) | |
A01PrimaryGenerator () | |
virtual | ~A01PrimaryGenerator () |
virtual void | GeneratePrimaries () |
void | SetNofPrimaries (Int_t nofPrimaries) |
void | SetMomentum (Double_t val) |
void | SetSigmaMomentum (Double_t val) |
void | SetSigmaAngle (Double_t val) |
void | SetRandomize (Bool_t val) |
Double_t | GetMomentum () const |
Double_t | GetSigmaMomentum () const |
Double_t | GetSigmaAngle () const |
Bool_t | GetRandomize () const |
Private Attributes | |
TVirtualMCStack * | fStack |
VMC stack. | |
Int_t | fNofPrimaries |
Number of primary particles. | |
Int_t | fDefaultParticle |
Default particle PDG. | |
Double_t | fMomentum |
Default particle momentum. | |
Double_t | fSigmaMomentum |
The sigma of particle momentum. | |
Double_t | fSigmaAngle |
The sigma of particle direction. | |
Bool_t | fRandomizePrimary |
Option to randomize primary particle type. | |
A01PrimaryGenerator::A01PrimaryGenerator | ( | TVirtualMCStack * | stack | ) |
Standard constructor
stack | The VMC stack |
Definition at line 35 of file A01PrimaryGenerator.cxx.
A01PrimaryGenerator::A01PrimaryGenerator | ( | const A01PrimaryGenerator & | 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 50 of file A01PrimaryGenerator.cxx.
A01PrimaryGenerator::A01PrimaryGenerator | ( | ) |
Default constructor
Definition at line 67 of file A01PrimaryGenerator.cxx.
|
virtual |
|
virtual |
Fill the user stack (derived from TVirtualMCStack) with primary particles. All primaries in one event have the same properties.
Definition at line 91 of file A01PrimaryGenerator.cxx.
|
inline |
Set the number of particles to be generated
nofPrimaries | The number of particles to be generated |
Definition at line 78 of file A01PrimaryGenerator.h.
|
inline |
Definition at line 47 of file A01PrimaryGenerator.h.
|
inline |
Definition at line 48 of file A01PrimaryGenerator.h.
|
inline |
Definition at line 49 of file A01PrimaryGenerator.h.
|
inline |
Definition at line 50 of file A01PrimaryGenerator.h.
|
inline |
Definition at line 53 of file A01PrimaryGenerator.h.
|
inline |
Definition at line 54 of file A01PrimaryGenerator.h.
|
inline |
Definition at line 55 of file A01PrimaryGenerator.h.
|
inline |
Definition at line 56 of file A01PrimaryGenerator.h.
|
private |
VMC stack.
Definition at line 63 of file A01PrimaryGenerator.h.
|
private |
Number of primary particles.
Definition at line 64 of file A01PrimaryGenerator.h.
|
private |
Default particle PDG.
Definition at line 65 of file A01PrimaryGenerator.h.
|
private |
Default particle momentum.
Definition at line 66 of file A01PrimaryGenerator.h.
|
private |
The sigma of particle momentum.
Definition at line 67 of file A01PrimaryGenerator.h.
|
private |
The sigma of particle direction.
Definition at line 68 of file A01PrimaryGenerator.h.
|
private |
Option to randomize primary particle type.
Definition at line 69 of file A01PrimaryGenerator.h.