VMC Examples Version 6.6
|
The primary generator. More...
#include <Ex06PrimaryGenerator.h>
Public Member Functions | |
Ex06PrimaryGenerator (TVirtualMCStack *stack) | |
Ex06PrimaryGenerator (const Ex06PrimaryGenerator &origin, TVirtualMCStack *stack) | |
Ex06PrimaryGenerator () | |
virtual | ~Ex06PrimaryGenerator () |
void | GeneratePrimaries () |
void | SetParticle (Int_t pdg) |
void | SetKinEnergy (Double_t kinEnergy) |
void | SetDirection (Double_t dirX, Double_t dirY, Double_t dirZ) |
void | SetOptPhotonPolar (Double_t angle) |
void | SetNofPrimaries (Int_t nofPrimaries) |
Private Member Functions | |
void | GeneratePrimary () |
Private Attributes | |
TVirtualMCStack * | fStack |
VMC stack. | |
Int_t | fPdg |
Particle PDG encoding. | |
Double_t | fKinEnergy |
Particle kinetic energy. | |
Double_t | fDirX |
Particle direction - x component. | |
Double_t | fDirY |
Particle direction - y component. | |
Double_t | fDirZ |
Particle direction - z component. | |
Double_t | fPolAngle |
Particle polarization angle. | |
Int_t | fNofPrimaries |
Number of primary particles. | |
Ex06PrimaryGenerator::Ex06PrimaryGenerator | ( | TVirtualMCStack * | stack | ) |
Standard constructor
stack | The VMC stack |
Definition at line 35 of file Ex06PrimaryGenerator.cxx.
Ex06PrimaryGenerator::Ex06PrimaryGenerator | ( | const Ex06PrimaryGenerator & | 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 Ex06PrimaryGenerator.cxx.
Ex06PrimaryGenerator::Ex06PrimaryGenerator | ( | ) |
Default constructor
Definition at line 69 of file Ex06PrimaryGenerator.cxx.
|
virtual |
void Ex06PrimaryGenerator::GeneratePrimaries | ( | ) |
Fill the user stack (derived from TVirtualMCStack) with primary particle
Definition at line 158 of file Ex06PrimaryGenerator.cxx.
|
inline |
Set particle type
pdg | The new particle PDG encoding |
Definition at line 73 of file Ex06PrimaryGenerator.h.
|
inline |
Set kinetic energy
kinEnergy | The new particle kinetic energy (in GeV) |
Definition at line 77 of file Ex06PrimaryGenerator.h.
void Ex06PrimaryGenerator::SetDirection | ( | Double_t | dirX, |
Double_t | dirY, | ||
Double_t | dirZ ) |
Set normalized direction
dirX | The new direction - x component |
dirY | The new direction - y component |
dirZ | The new direction - z component |
Definition at line 166 of file Ex06PrimaryGenerator.cxx.
|
inline |
Set photon polarization
angle | The new polarization angle (in degrees) |
Definition at line 84 of file Ex06PrimaryGenerator.h.
|
inline |
Set the number of particles to be generated
nofPrimaries | The number of particles to be generated |
Definition at line 91 of file Ex06PrimaryGenerator.h.
|
private |
Add one primary particle to the user stack (derived from TVirtualMCStack).
Definition at line 95 of file Ex06PrimaryGenerator.cxx.
|
private |
VMC stack.
Definition at line 57 of file Ex06PrimaryGenerator.h.
|
private |
Particle PDG encoding.
Definition at line 58 of file Ex06PrimaryGenerator.h.
|
private |
Particle kinetic energy.
Definition at line 59 of file Ex06PrimaryGenerator.h.
|
private |
Particle direction - x component.
Definition at line 60 of file Ex06PrimaryGenerator.h.
|
private |
Particle direction - y component.
Definition at line 61 of file Ex06PrimaryGenerator.h.
|
private |
Particle direction - z component.
Definition at line 62 of file Ex06PrimaryGenerator.h.
|
private |
Particle polarization angle.
Definition at line 63 of file Ex06PrimaryGenerator.h.
|
private |
Number of primary particles.
Definition at line 64 of file Ex06PrimaryGenerator.h.