5 #ifndef EDepSim_PrimaryGeneratorAction_hh 6 #define EDepSim_PrimaryGeneratorAction_hh 1 11 #include "G4VUserPrimaryGeneratorAction.hh" 13 namespace EDepSim {
class UserPrimaryGeneratorMessenger;}
14 class G4VPrimaryGenerator;
16 namespace EDepSim {
class UserPrimaryGeneratorAction;}
18 :
public G4VUserPrimaryGeneratorAction {
EDepSim::UserPrimaryGeneratorMessenger * fMessenger
The messenger for this action.
UserPrimaryGeneratorAction(void)
void SetAddFakeGeantino(bool flag)
virtual ~UserPrimaryGeneratorAction()
void AddGenerator(G4VPrimaryGenerator *generator)
void ClearGenerators()
Clear the current list of generators.
int GetGeneratorCount() const
Get the number of generators being used to create events.
Construct a module from components.
void SetAllowEmptyEvents(bool flag)
virtual void GeneratePrimaries(G4Event *anEvent)
void SetAllowPartialEvents(bool flag)
std::vector< G4VPrimaryGenerator * > fPrimaryGenerators
const G4VPrimaryGenerator * GetGenerator(int i) const
Get the generators used to create events. There will be at least one.