2022-05-09 00:31:02 +08:00
|
|
|
#ifndef DESCSS_PrimaryGeneratorAction_h
|
|
|
|
#define DESCSS_PrimaryGeneratorAction_h
|
|
|
|
|
|
|
|
#include "G4ParticleGun.hh"
|
2022-05-14 17:50:03 +08:00
|
|
|
#include "G4GeneralParticleSource.hh"
|
2022-05-09 00:31:02 +08:00
|
|
|
#include "G4VUserPrimaryGeneratorAction.hh"
|
|
|
|
#include "globals.hh"
|
|
|
|
|
|
|
|
class G4ParticleGun;
|
|
|
|
class G4Event;
|
|
|
|
class G4Box;
|
|
|
|
|
|
|
|
class PrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction {
|
|
|
|
public:
|
|
|
|
PrimaryGeneratorAction();
|
|
|
|
~PrimaryGeneratorAction();
|
|
|
|
virtual void GeneratePrimaries(G4Event*);
|
2022-05-14 17:50:03 +08:00
|
|
|
const G4GeneralParticleSource* GetParticleGun() const { return fParticleGun; }
|
2022-05-09 00:31:02 +08:00
|
|
|
|
|
|
|
private:
|
2022-05-14 17:50:03 +08:00
|
|
|
G4GeneralParticleSource* fParticleGun;
|
2022-05-09 00:31:02 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|