#include <EDepSimUserPrimaryGeneratorAction.hh>
Public Member Functions | |
UserPrimaryGeneratorAction (void) | |
virtual | ~UserPrimaryGeneratorAction () |
virtual void | GeneratePrimaries (G4Event *anEvent) |
void | AddGenerator (G4VPrimaryGenerator *generator) |
void | ClearGenerators () |
Clear the current list of generators. More... | |
const G4VPrimaryGenerator * | GetGenerator (int i) const |
Get the generators used to create events. There will be at least one. More... | |
int | GetGeneratorCount () const |
Get the number of generators being used to create events. More... | |
void | SetAllowEmptyEvents (bool flag) |
void | SetAllowPartialEvents (bool flag) |
void | SetAddFakeGeantino (bool flag) |
Private Attributes | |
std::vector< G4VPrimaryGenerator * > | fPrimaryGenerators |
bool | fAllowEmptyEvents |
bool | fAddFakeGeantino |
bool | fAllowPartialEvents |
EDepSim::UserPrimaryGeneratorMessenger * | fMessenger |
The messenger for this action. More... | |
Definition at line 17 of file EDepSimUserPrimaryGeneratorAction.hh.
EDepSim::UserPrimaryGeneratorAction::UserPrimaryGeneratorAction | ( | void | ) |
Definition at line 16 of file EDepSimUserPrimaryGeneratorAction.cc.
|
virtual |
Definition at line 22 of file EDepSimUserPrimaryGeneratorAction.cc.
|
inline |
Add a new EDepSim::PrimaryGenerator to the list of generators adding primary vertices to the event.
Definition at line 31 of file EDepSimUserPrimaryGeneratorAction.hh.
void EDepSim::UserPrimaryGeneratorAction::ClearGenerators | ( | ) |
Clear the current list of generators.
Definition at line 76 of file EDepSimUserPrimaryGeneratorAction.cc.
|
virtual |
Generate all of the primaries for and event and place them into a primary vertex. This may generate several primary vertices (in no particular order).
Definition at line 26 of file EDepSimUserPrimaryGeneratorAction.cc.
|
inline |
Get the generators used to create events. There will be at least one.
Definition at line 39 of file EDepSimUserPrimaryGeneratorAction.hh.
|
inline |
Get the number of generators being used to create events.
Definition at line 44 of file EDepSimUserPrimaryGeneratorAction.hh.
|
inline |
Set a flag that events without a real vertex should have a fake GEANTINO generated. This only has an effect with SetAllowEmptyEvents() has been called with true.
Definition at line 60 of file EDepSimUserPrimaryGeneratorAction.hh.
|
inline |
Set a flag that events that don't contain a real vertex are allowed. If the flag is true, then empty events are allowed.
Definition at line 50 of file EDepSimUserPrimaryGeneratorAction.hh.
|
inline |
Set a flag that events that it's to run out of events in the kinematics file. If the flag is true, then partial events are allowed.
Definition at line 55 of file EDepSimUserPrimaryGeneratorAction.hh.
|
private |
A flag that any empty event should be filled with a fake GEANTINO vertex. This only has an affect with fAllowEmptyEvents is true.
Definition at line 74 of file EDepSimUserPrimaryGeneratorAction.hh.
|
private |
A flag that empty events are allowed. If this is set to be true, the generator will return events even if there are no real vertices.
Definition at line 70 of file EDepSimUserPrimaryGeneratorAction.hh.
|
private |
A flag to allow an event to be generated even if the input kinematics has run out of data. This is useful when a single spill of interactions has been generated and you want to generate a single event containing every interaction in the kinematic input file.
Definition at line 80 of file EDepSimUserPrimaryGeneratorAction.hh.
|
private |
The messenger for this action.
Definition at line 83 of file EDepSimUserPrimaryGeneratorAction.hh.
|
private |
A vector of generator sets to use to generate events. Each of these primary factories will be called in sequence.
Definition at line 66 of file EDepSimUserPrimaryGeneratorAction.hh.