GGS(GenericGEANT4Simulation)Software  2.6.0
 All Data Structures Namespaces Files Functions Variables Typedefs Macros
GGSHEPEvtGeneratorAction.h
Go to the documentation of this file.
1 /*
2  * GGSHEPEvtGeneratorAction.h
3  *
4  * Created on: 10 Oct 2013
5  * Author: Nicola Mori
6  */
7 
10 #ifndef GGSHEPEVTGENERATORACTION_H_
11 #define GGSHEPEVTGENERATORACTION_H_
12 
13 #include "G4VUserPrimaryGeneratorAction.hh"
14 
15 #include "G4String.hh"
16 #include "G4ThreeVector.hh"
17 
18 class G4HEPEvtInterface;
19 class G4HEPEvtInterface;
20 class G4GenericMessenger;
21 
23 class GGSHEPEvtGeneratorAction: public G4VUserPrimaryGeneratorAction {
24 public:
25 
28 
31 
36  void GeneratePrimaries(G4Event *anEvent);
37 
38 private:
39 
40  G4HEPEvtInterface *_hepEvtGenerator;
41  G4GenericMessenger *_messenger;
42 
43  G4String _hepEvtFile;
44  G4ThreeVector _hepEvtPos;
45  G4double _hepEvtTime;
46 
47 };
48 
49 #endif /* GGSHEPEVTGENERATORACTION_H_ */
A generator action to produce particles using the HEPEvt generator.
void GeneratePrimaries(G4Event *anEvent)
Generate primaries with GPS generator.