#include <EDepSimPrimaryGenerator.hh>
Public Member Functions | |
PrimaryGenerator (EDepSim::VKinematicsGenerator *kine, EDepSim::VCountGenerator *count, EDepSim::VPositionGenerator *position, EDepSim::VTimeGenerator *time) | |
virtual | ~PrimaryGenerator () |
virtual void | GeneratePrimaryVertex (G4Event *evt) |
G4String | GetName () |
Return the name of this generator. More... | |
const EDepSim::VKinematicsGenerator * | GetKinematicsGenerator () const |
Return the kinematics generator;. More... | |
const EDepSim::VCountGenerator * | GetCountGenerator () const |
Return the count generator. More... | |
const EDepSim::VPositionGenerator * | GetPositionGenerator () const |
Return the position generator. More... | |
const EDepSim::VTimeGenerator * | GetTimeGenerator () const |
Return the time generator. More... | |
Private Attributes | |
EDepSim::VKinematicsGenerator * | fKinematics |
EDepSim::VCountGenerator * | fCount |
EDepSim::VPositionGenerator * | fPosition |
EDepSim::VTimeGenerator * | fTime |
Definition at line 20 of file EDepSimPrimaryGenerator.hh.
EDepSim::PrimaryGenerator::PrimaryGenerator | ( | EDepSim::VKinematicsGenerator * | kine, |
EDepSim::VCountGenerator * | count, | ||
EDepSim::VPositionGenerator * | position, | ||
EDepSim::VTimeGenerator * | time | ||
) |
Definition at line 24 of file EDepSimPrimaryGenerator.cc.
|
virtual |
Definition at line 31 of file EDepSimPrimaryGenerator.cc.
|
virtual |
A pure virtual method to generate the actual primary particles which must be implemented in each derived class.
Definition at line 33 of file EDepSimPrimaryGenerator.cc.
|
inline |
Return the count generator.
Definition at line 41 of file EDepSimPrimaryGenerator.hh.
|
inline |
Return the kinematics generator;.
Definition at line 36 of file EDepSimPrimaryGenerator.hh.
G4String EDepSim::PrimaryGenerator::GetName | ( | void | ) |
Return the name of this generator.
Definition at line 98 of file EDepSimPrimaryGenerator.cc.
|
inline |
Return the position generator.
Definition at line 46 of file EDepSimPrimaryGenerator.hh.
|
inline |
Return the time generator.
Definition at line 51 of file EDepSimPrimaryGenerator.hh.
|
private |
The count generator determines the number of primary vertices that will be added to a G4Event.
Definition at line 69 of file EDepSimPrimaryGenerator.hh.
|
private |
The kinematics generator that will return the primary particles being simulated by this generator. The kinematics generator adds the primary vertex to the G4Event along with the primary particles that eminate from the vertex. The generator is passed a 4-vector position which gives the position that EDepSim::VPrimaryGenerator would like an interaction generated for. The kinematics generator can choose to ignore this information and create the vertex at any location, but it might be overriden by EDepSim::VPrimaryGenerator (depending on which EDepSim::VVertexGenerator is used).
Definition at line 65 of file EDepSimPrimaryGenerator.hh.
|
private |
The position generator picks candidate positions for the primary vertices. The candidate vertices generated by the position generator are passed to the kinematics generator as an advisory position. If the position generator returns true from EDepSim::VPositionGenerator::ForcePosition(), then the vertex from the kinematics generator will be overridden by the EDepSim::VPrimaryGenerator.
Definition at line 77 of file EDepSimPrimaryGenerator.hh.
|
private |
The time generator picks candidate times for the primary vertices. The candidate times are passed to the kinematics generator as advisory times. If the time generator returns true from EDepSim::VTimeGenerator::ForceTime(), then the vertex from the kinematics generator will be overridden by the EDepSim::VPrimaryGenerator.
Definition at line 84 of file EDepSimPrimaryGenerator.hh.