30 lines
636 B
C++
30 lines
636 B
C++
|
// Written by Peter Stromberger
|
||
|
// based on work of Mirco Deckenhoff
|
||
|
|
||
|
#ifndef PrimaryGeneratorAction_h
|
||
|
#define PrimaryGeneratorAction_h 1
|
||
|
|
||
|
|
||
|
#include "globals.hh"
|
||
|
#include "G4VUserPrimaryGeneratorAction.hh"
|
||
|
#include "G4GeneralParticleSource.hh"
|
||
|
|
||
|
class PrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
|
||
|
{
|
||
|
public:
|
||
|
PrimaryGeneratorAction();
|
||
|
~PrimaryGeneratorAction();
|
||
|
|
||
|
void GeneratePrimaries(G4Event*);
|
||
|
void SetOptPhotonPolar();
|
||
|
void SetOptPhotonPolar(G4double);
|
||
|
G4GeneralParticleSource* GetGun();
|
||
|
|
||
|
private:
|
||
|
G4GeneralParticleSource * InitializeGPS();
|
||
|
G4GeneralParticleSource * gun;
|
||
|
};
|
||
|
|
||
|
|
||
|
#endif
|