Last change
on this file since 114 was
114,
checked in by moretto, 11 years ago
|
actual version of ESAF at CCin2p3
|
File size:
1.3 KB
|
Line | |
---|
1 | #ifndef OptPrimaryGeneratorAction_h |
---|
2 | #define OptPrimaryGeneratorAction_h 1 |
---|
3 | |
---|
4 | #include <G4VUserPrimaryGeneratorAction.hh> |
---|
5 | #include <globals.hh> |
---|
6 | #include <G4ThreeVector.hh> |
---|
7 | |
---|
8 | #include "EsafMsgSource.hh" |
---|
9 | #include "EsafConfigurable.hh" |
---|
10 | class G4ParticleGun; |
---|
11 | class G4Event; |
---|
12 | class OptPrimaryGeneratorMessenger; |
---|
13 | //class G4ThreeVector; |
---|
14 | |
---|
15 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
16 | class OptPrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction, public EsafConfigurable, public EsafMsgSource |
---|
17 | { |
---|
18 | public: |
---|
19 | OptPrimaryGeneratorAction(bool); |
---|
20 | virtual ~OptPrimaryGeneratorAction(); |
---|
21 | |
---|
22 | void GeneratePrimaries(G4Event*); |
---|
23 | void Init(); |
---|
24 | void FillCircle(G4Event*); |
---|
25 | void OnePoint(G4Event* anEvent); |
---|
26 | void GenerateEnergy(); |
---|
27 | void GenerateDirection(); |
---|
28 | private: |
---|
29 | G4ParticleGun* particleGun; |
---|
30 | bool factive; |
---|
31 | double fThetaMin; |
---|
32 | double fThetaMax; |
---|
33 | double fPhiMin; |
---|
34 | double fPhiMax; |
---|
35 | double fTheta; |
---|
36 | double fPhi; |
---|
37 | double fEnergyMin; |
---|
38 | double fEnergyMax; |
---|
39 | double fEnergy; |
---|
40 | |
---|
41 | G4ThreeVector fDirection; |
---|
42 | EsafConfigClass(G4,PrimaryGeneratorAction) |
---|
43 | }; |
---|
44 | |
---|
45 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
46 | |
---|
47 | #endif /*OptPrimaryGeneratorAction_h*/ |
---|
Note: See
TracBrowser
for help on using the repository browser.