MdSimulation/Deprecated/MdGroundPropagatorAG/PrimaryGenerator.h
Go to the documentation of this file.
1 #ifndef _GroundPropagatorAG_PrimaryGenerator_h_
2 #define _GroundPropagatorAG_PrimaryGenerator_h_
3 
4 #include <G4VUserPrimaryGeneratorAction.hh>
5 #include <fstream>
6 #include <string>
7 
8 
9 class G4Event;
10 class G4ParticleGun;
11 class G4ParticleTable;
12 
13 
14 namespace GroundPropagatorAG {
15 
16  class PrimaryGenerator : public G4VUserPrimaryGeneratorAction {
17 
18  public:
20  PrimaryGenerator(const std::string&);
22 
23  // This method is called each time
24  // G4RunManager* fRunManager->BeamOn() is called:
25 
26  void GeneratePrimaries(G4Event* const event);
27 
28  private:
29  G4ParticleGun* fParticleGun;
30  G4ParticleTable* fParticleTable;
31  std::ofstream fStatFile;
32 
33  };
34 
35 }
36 
37 
38 #endif

, generated on Tue Sep 26 2023.