G4-ExampleB0/include/PrimaryGeneratorAction.h
YiHui Liu de0caaaae0 fix: batch mode, scroing volume, GunAction headers;
change: message verbose, Accumulable in run, QGSP_BERT to QBBC;
2022-04-29 15:33:52 +08:00

24 lines
528 B
C++

#ifndef B0PrimaryGeneratorAction_h
#define B0PrimaryGeneratorAction_h
#include "G4ParticleGun.hh"
#include "G4VUserPrimaryGeneratorAction.hh"
#include "globals.hh"
class G4ParticleGun;
class G4Event;
class G4Box;
class PrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction {
public:
PrimaryGeneratorAction();
~PrimaryGeneratorAction();
virtual void GeneratePrimaries(G4Event*);
const G4ParticleGun* GetParticleGun() const { return fParticleGun; }
private:
G4ParticleGun* fParticleGun;
};
#endif