VMC Examples Version 6.6
|
The primary generator. More...
#include <Ex03PrimaryGenerator.h>
Public Types | |
enum | Type { kDefault , kUser , kUserDecay , kAnti , kTestField , kPion , kDefault , kUser , kUserDecay , kAnti , kTestField , kPion , kDefault , kUser , kUserDecay , kAnti , kTestField , kPion } |
Predefined primary generators. More... | |
enum | Type { kDefault , kUser , kUserDecay , kAnti , kTestField , kPion , kDefault , kUser , kUserDecay , kAnti , kTestField , kPion , kDefault , kUser , kUserDecay , kAnti , kTestField , kPion } |
Predefined primary generators. More... | |
enum | Type { kDefault , kUser , kUserDecay , kAnti , kTestField , kPion , kDefault , kUser , kUserDecay , kAnti , kTestField , kPion , kDefault , kUser , kUserDecay , kAnti , kTestField , kPion } |
Predefined primary generators. More... | |
Public Member Functions | |
Ex03PrimaryGenerator (TVirtualMCStack *stack) | |
Ex03PrimaryGenerator (const Ex03PrimaryGenerator &origin, TVirtualMCStack *stack) | |
Ex03PrimaryGenerator () | |
virtual | ~Ex03PrimaryGenerator () |
virtual void | GeneratePrimaries (const TVector3 &worldSize) |
void | SetIsRandom (Bool_t isRandomGenerator) |
void | SetPrimaryType (Type primaryType) |
void | SetNofPrimaries (Int_t nofPrimaries) |
Bool_t | GetUserDecay () const |
Return true if particle with user decay is activated. | |
Ex03PrimaryGenerator (TVirtualMCStack *stack) | |
Ex03PrimaryGenerator (const Ex03PrimaryGenerator &origin, TVirtualMCStack *stack) | |
Ex03PrimaryGenerator () | |
virtual | ~Ex03PrimaryGenerator () |
virtual void | GeneratePrimaries (const TVector3 &worldSize) |
void | SetIsRandom (Bool_t isRandomGenerator) |
void | SetPrimaryType (Type primaryType) |
void | SetNofPrimaries (Int_t nofPrimaries) |
Bool_t | GetUserDecay () const |
Ex03PrimaryGenerator (TVirtualMCStack *stack) | |
Ex03PrimaryGenerator (const Ex03PrimaryGenerator &origin, TVirtualMCStack *stack) | |
Ex03PrimaryGenerator () | |
virtual | ~Ex03PrimaryGenerator () |
virtual void | GeneratePrimaries (const TVector3 &worldSize) |
void | SetIsRandom (Bool_t isRandomGenerator) |
void | SetPrimaryType (Type primaryType) |
void | SetNofPrimaries (Int_t nofPrimaries) |
Bool_t | GetUserDecay () const |
Private Member Functions | |
void | GeneratePrimary1 (const TVector3 &origin) |
void | GeneratePrimary2 (const TVector3 &origin) |
void | GeneratePrimary3 (const TVector3 &origin) |
void | GeneratePrimary4 (const TVector3 &origin) |
void | GeneratePrimary5 (const TVector3 &origin) |
void | GeneratePrimary6 (const TVector3 &origin) |
void | GeneratePrimary1 (const TVector3 &origin) |
void | GeneratePrimary2 (const TVector3 &origin) |
void | GeneratePrimary3 (const TVector3 &origin) |
void | GeneratePrimary4 (const TVector3 &origin) |
void | GeneratePrimary5 (const TVector3 &origin) |
void | GeneratePrimary6 (const TVector3 &origin) |
void | GeneratePrimary1 (const TVector3 &origin) |
void | GeneratePrimary2 (const TVector3 &origin) |
void | GeneratePrimary3 (const TVector3 &origin) |
void | GeneratePrimary4 (const TVector3 &origin) |
void | GeneratePrimary5 (const TVector3 &origin) |
void | GeneratePrimary6 (const TVector3 &origin) |
Private Attributes | |
TVirtualMCStack * | fStack |
VMC stack. | |
Bool_t | fIsRandom |
Switch to random generator. | |
Type | fPrimaryType |
Primary generator selection. | |
Int_t | fNofPrimaries |
Number of primary particles. | |
Predefined primary generators.
Definition at line 37 of file Ex03PrimaryGenerator.h.
Predefined primary generators.
Definition at line 37 of file Ex03PrimaryGenerator.h.
Predefined primary generators.
Definition at line 37 of file Ex03PrimaryGenerator.h.
Ex03PrimaryGenerator::Ex03PrimaryGenerator | ( | TVirtualMCStack * | stack | ) |
Standard constructor
stack | The VMC stack |
Definition at line 36 of file Ex03PrimaryGenerator.cxx.
Ex03PrimaryGenerator::Ex03PrimaryGenerator | ( | const Ex03PrimaryGenerator & | 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 49 of file Ex03PrimaryGenerator.cxx.
Ex03PrimaryGenerator::Ex03PrimaryGenerator | ( | ) |
Default constructor
Definition at line 63 of file Ex03PrimaryGenerator.cxx.
|
virtual |
Ex03PrimaryGenerator::Ex03PrimaryGenerator | ( | TVirtualMCStack * | stack | ) |
Ex03PrimaryGenerator::Ex03PrimaryGenerator | ( | const Ex03PrimaryGenerator & | origin, |
TVirtualMCStack * | stack ) |
Ex03PrimaryGenerator::Ex03PrimaryGenerator | ( | ) |
|
virtual |
Ex03PrimaryGenerator::Ex03PrimaryGenerator | ( | TVirtualMCStack * | stack | ) |
Ex03PrimaryGenerator::Ex03PrimaryGenerator | ( | const Ex03PrimaryGenerator & | origin, |
TVirtualMCStack * | stack ) |
Ex03PrimaryGenerator::Ex03PrimaryGenerator | ( | ) |
|
virtual |
|
virtual |
Fill the user stack (derived from TVirtualMCStack) with primary particles.
Definition at line 435 of file Ex03PrimaryGenerator.cxx.
|
inline |
Switch on/off the random generator
isRandom | If true, the position is randomized |
Definition at line 87 of file Ex03PrimaryGenerator.h.
|
inline |
Set the primary particle type to be generated
primaryType | The primary particle type |
Definition at line 94 of file Ex03PrimaryGenerator.h.
|
inline |
Set the number of particles to be generated
nofPrimaries | The number of particles to be generated |
Definition at line 102 of file Ex03PrimaryGenerator.h.
|
inline |
Return true if particle with user decay is activated.
Definition at line 108 of file Ex03PrimaryGenerator.h.
|
private |
Add one primary particle (kElectron) to the user stack (derived from TVirtualMCStack).
origin | The track position |
Definition at line 84 of file Ex03PrimaryGenerator.cxx.
|
private |
Add user defined particle and ion as primaries to the user stack (derived from TVirtualMCStack).
origin | The track position |
Definition at line 133 of file Ex03PrimaryGenerator.cxx.
|
private |
Add one primary particle (kK0Short) to the user stack (derived from TVirtualMCStack).
origin | The track position |
Definition at line 199 of file Ex03PrimaryGenerator.cxx.
|
private |
Add light anti-ions:
Definition at line 248 of file Ex03PrimaryGenerator.cxx.
|
private |
Add one primary particle (kMuonPlus) to the user stack
Definition at line 337 of file Ex03PrimaryGenerator.cxx.
|
private |
Add one primary particle (kPiMinus) to the user stack
Definition at line 384 of file Ex03PrimaryGenerator.cxx.
|
virtual |
void Ex03PrimaryGenerator::SetIsRandom | ( | Bool_t | isRandomGenerator | ) |
void Ex03PrimaryGenerator::SetPrimaryType | ( | Type | primaryType | ) |
void Ex03PrimaryGenerator::SetNofPrimaries | ( | Int_t | nofPrimaries | ) |
Bool_t Ex03PrimaryGenerator::GetUserDecay | ( | ) | const |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
virtual |
void Ex03PrimaryGenerator::SetIsRandom | ( | Bool_t | isRandomGenerator | ) |
void Ex03PrimaryGenerator::SetPrimaryType | ( | Type | primaryType | ) |
void Ex03PrimaryGenerator::SetNofPrimaries | ( | Int_t | nofPrimaries | ) |
Bool_t Ex03PrimaryGenerator::GetUserDecay | ( | ) | const |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
VMC stack.
Definition at line 75 of file Ex03PrimaryGenerator.h.
|
private |
Switch to random generator.
Definition at line 76 of file Ex03PrimaryGenerator.h.
|
private |
Primary generator selection.
Definition at line 77 of file Ex03PrimaryGenerator.h.
|
private |
Number of primary particles.
Definition at line 78 of file Ex03PrimaryGenerator.h.