2022-04-29 15:01:36 +08:00
|
|
|
#ifndef B0PrimaryGeneratorAction_h
|
|
|
|
#define B0PrimaryGeneratorAction_h
|
|
|
|
|
|
|
|
#include "G4ParticleGun.hh"
|
|
|
|
#include "G4VUserPrimaryGeneratorAction.hh"
|
2022-04-29 15:33:52 +08:00
|
|
|
#include "globals.hh"
|
2022-04-29 15:01:36 +08:00
|
|
|
|
2022-04-29 15:33:52 +08:00
|
|
|
class G4ParticleGun;
|
2022-04-29 15:01:36 +08:00
|
|
|
class G4Event;
|
2022-04-29 15:33:52 +08:00
|
|
|
class G4Box;
|
2022-04-29 15:01:36 +08:00
|
|
|
|
|
|
|
class PrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction {
|
|
|
|
public:
|
|
|
|
PrimaryGeneratorAction();
|
|
|
|
~PrimaryGeneratorAction();
|
|
|
|
virtual void GeneratePrimaries(G4Event*);
|
|
|
|
const G4ParticleGun* GetParticleGun() const { return fParticleGun; }
|
|
|
|
|
|
|
|
private:
|
|
|
|
G4ParticleGun* fParticleGun;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|