G4StationPrimaryGenerator.h
Go to the documentation of this file.
1 
12 #ifndef _G4StationSimulatorOG_G4StationPrimaryGenerator_h_
13 #define _G4StationSimulatorOG_G4StationPrimaryGenerator_h_
14 
15 #include <G4VUserPrimaryGeneratorAction.hh>
16 
17 class G4Event;
18 class G4ParticleGun;
19 class G4ParticleTable;
20 
21 namespace G4StationSimulatorOG {
22 
23  class G4StationPrimaryGenerator : public G4VUserPrimaryGeneratorAction {
24 
25  public:
26 
29 
30  // This method is called each time
31  // G4RunManager* fRunManager->BeamOn() is called:
32 
33  void GeneratePrimaries(G4Event *TheEvent);
34 
35  protected:
36 
37  private:
38 
39  G4ParticleGun* fParticleGun;
40  G4ParticleTable* fParticleTable;
41 
42  };
43 
44 }
45 
46 #endif

, generated on Tue Sep 26 2023.