27 lines
565 B
C++
27 lines
565 B
C++
#ifndef PrimaryGeneratorAction_h
|
|
#define PrimaryGeneratorAction_h 1
|
|
|
|
#include "G4VUserPrimaryGeneratorAction.hh"
|
|
#include "G4ThreeVector.hh"
|
|
|
|
class G4ParticleGun;
|
|
class G4Event;
|
|
class ReactionGenerator;
|
|
|
|
class PrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
|
|
{
|
|
public:
|
|
PrimaryGeneratorAction();
|
|
virtual ~PrimaryGeneratorAction();
|
|
|
|
virtual void GeneratePrimaries(G4Event* event) override;
|
|
|
|
private:
|
|
G4ParticleGun* fParticleGun;
|
|
ReactionGenerator* fReaction;
|
|
G4double fTargetRadius;
|
|
G4double fTargetHalfLength;
|
|
};
|
|
|
|
#endif
|