FDsimG4PrimaryGeneratorAction.hh
Go to the documentation of this file.
1 //
2 // Description: PrimaryGeneratorAction for FDsimG4 application
3 //
4 // Version 1.0: Use of ESA General Source Model
5 //
6 //
7 
8 #ifndef FDsimG4PrimaryGeneratorAction_h
9 #define FDsimG4PrimaryGeneratorAction_h 1
10 
11 #include "G4VUserPrimaryGeneratorAction.hh"
12 #include "G4ThreeVector.hh"
14 
15 namespace TelescopeSimulatorLX {
16  class FDsimG4CorsikaEvtInterface;
17 }
18 
19 class G4RunManager;
20 class G4GeneralParticleSource;
21 class G4Event;
22 class G4ParticleTable;
23 
24 namespace TelescopeSimulatorLX { class TelescopeSimulator; }
25 
26 namespace TelescopeSimulatorLX {
27 
28  class FDsimG4PrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction {
29 
30  public:
31 
34 
35  public:
36 
37  void GeneratePrimaries(G4Event* anEvent);
38 
39  G4ThreeVector GetSourcePosition() ;
40  G4ThreeVector GetParticleMomentumDirection() ;
41 
42  G4GeneralParticleSource* GetParticleGun(){return particleGun;}
43 
44  void SetNumberOfEvents(G4int Nevents){NumberOfEvents = Nevents;}
46 
48 
49  private:
50 
51  void GenerateGPSPrimaries(G4Event* anEvent);
52  void SetPhotonSpectrum(G4String type);
53 
55  G4GeneralParticleSource* particleGun;
56  G4ParticleTable* pParticleTable ;
57 
60 
61  void ReadFDSimulatorEvent(G4Event* anEvent);
63  };
64 
65 }
66 
67 #endif

, generated on Tue Sep 26 2023.