MdSimulation/Deprecated/MdEdepSimulatorAG/PrimaryGenerator.h
Go to the documentation of this file.
1 #ifndef _MdEdepSimulatorAG_PrimaryGenerator_h_
2 #define _MdEdepSimulatorAG_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 namespace EdepSimulatorAG {
14 
15  class PrimaryGenerator : public G4VUserPrimaryGeneratorAction {
16 
17  public:
20 
21  // This method is called each time
22  // G4RunManager* fRunManager->BeamOn() is called:
23  void GeneratePrimaries(G4Event *TheEvent);
24 
25  private:
26  G4ParticleGun* fParticleGun;
27  G4ParticleTable* fParticleTable;
28  std::ofstream fStatFile;
29  double fScint_Side_Z;
30 
31  };
32 
33 }
34 
35 
36 #endif

, generated on Tue Sep 26 2023.