35 #ifndef H02_PRIMARY_GENERATOR_ACTION_H
36 #define H02_PRIMARY_GENERATOR_ACTION_H
66 std::map<G4String, G4VPrimaryGenerator*> gentypeMap;
75 currentGenerator= gen;
80 std::map<G4String, G4VPrimaryGenerator*>::iterator
81 pos = gentypeMap.find(genname);
82 if(pos != gentypeMap.end()) {
83 currentGenerator= pos->second;
84 currentGeneratorName= genname;
90 return currentGenerator;
95 return currentGeneratorName;
G4String GetGeneratorName() const
H02PrimaryGeneratorAction()
void SetGenerator(G4VPrimaryGenerator *gen)
~H02PrimaryGeneratorAction()
G4VPrimaryGenerator * GetGenerator() const
virtual void GeneratePrimaries(G4Event *anEvent)