GGS(GenericGEANT4Simulation)Software  2.7.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 
14 
15 #include "G4GenericMessenger.hh"
16 #include "G4String.hh"
17 #include "G4ThreeVector.hh"
18 class G4HEPEvtInterface;
19 
20 #include <memory>
21 
24 public:
27 
32  void GeneratePrimaries(G4Event *anEvent);
33 
48 
49 private:
50  std::unique_ptr<G4HEPEvtInterface> _hepEvtGenerator;
51  G4GenericMessenger _messenger;
52 
53  G4String _hepEvtFile;
54  G4ThreeVector _hepEvtPos;
55  G4double _hepEvtTime;
56 };
57 
58 #endif /* GGSHEPEVTGENERATORACTION_H_ */
GGSParameters GetParameters() const
Gets the generation parameters.
Base class for GGS generator actions.
A generator action to produce particles using the HEPEvt generator.
Class for storing parameters.
Definition: GGSParameters.h:29
void GeneratePrimaries(G4Event *anEvent)
Generate primaries with GPS generator.