-
Notifications
You must be signed in to change notification settings - Fork 1
/
PrimaryGeneratorGun2.hh
50 lines (42 loc) · 1.42 KB
/
PrimaryGeneratorGun2.hh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef PrimaryGeneratorGun2_h
#define PrimaryGeneratorGun2_h 1
#include "G4VUserPrimaryGeneratorAction.hh"
#include "G4ParticleGun.hh"
#include "DetectorConstruction.hh"
#include "globals.hh"
#include "G4VUserPrimaryGeneratorAction.hh"
class G4ParticleGun;
class G4Event;
class G4VPrimaryGenerator;
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
class PrimaryGeneratorGun2 : public G4VUserPrimaryGeneratorAction
{
private:
G4VPrimaryGenerator* InitializeGPS();
G4VPrimaryGenerator* gun;
std::ofstream* outfile;
public:
PrimaryGeneratorGun2();
~PrimaryGeneratorGun2();
public:
virtual void GeneratePrimaries(G4Event*);
G4double GetRadius() {return fRadius;};
G4double GetAlphaMin() {return fAlphaMin;};
G4double GetAlphaMax() {return fAlphaMax;};
G4double GetGamma() {return fgamma;};
G4double GetEmin() {return fEmin;};
G4double GetEmax() {return fEmax;};
G4ParticleGun* GetParticleGun() {return fParticleGun;};
private:
G4double fRadius; //vertex surface
G4double fAlphaMin;
G4double fAlphaMax; //opening angle
G4double fgamma; //variables for energy
G4double fEmin;
G4double fEmax;
//G4ParticleDefinition* fParticle;
G4ParticleGun* fParticleGun;
DetectorConstruction* fDetector;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#endif