From 738c2f88939a041fbc8b6b9cfa3c547b86bc6e42 Mon Sep 17 00:00:00 2001 From: shivesh Date: Sat, 25 Aug 2018 17:57:22 +0100 Subject: Add Cerenkov Processes --- include/G4BeamTestPrimaryGeneratorAction.h | 33 ++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 include/G4BeamTestPrimaryGeneratorAction.h (limited to 'include/G4BeamTestPrimaryGeneratorAction.h') diff --git a/include/G4BeamTestPrimaryGeneratorAction.h b/include/G4BeamTestPrimaryGeneratorAction.h new file mode 100644 index 0000000..83fbacc --- /dev/null +++ b/include/G4BeamTestPrimaryGeneratorAction.h @@ -0,0 +1,33 @@ +#ifndef G4BeamTestPrimaryGeneratorAction_h +#define G4BeamTestPrimaryGeneratorAction_h 1 + +#include "G4VUserPrimaryGeneratorAction.hh" +#include "globals.hh" + +class G4GeneralParticleSource; +class G4Event; +class G4BeamTestPrimaryGeneratorMessenger; + +//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... + +class G4BeamTestPrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction +{ + public: + G4BeamTestPrimaryGeneratorAction(); + virtual ~G4BeamTestPrimaryGeneratorAction(); + + public: + virtual void GeneratePrimaries(G4Event*); + + void SetOptPhotonPolar(); + void SetOptPhotonPolar(G4double); + + private: + G4GeneralParticleSource* fParticleGun; + G4BeamTestPrimaryGeneratorMessenger* fGunMessenger; +}; + +//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... + +#endif /*G4BeamTestPrimaryGeneratorAction_h*/ + -- cgit v1.2.3