/[PAMELA software]/PamG4/include/PrimaryGeneratorAction.hh
ViewVC logotype

Contents of /PamG4/include/PrimaryGeneratorAction.hh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (download) (vendor branch)
Tue Dec 13 16:20:39 2005 UTC (19 years ago) by cafagna
Branch: start, MAIN
CVS Tags: v1r0, bogo, HEAD
Changes since 1.1: +0 -0 lines
Error occurred while calculating annotation data.
Geant4 code for ND and Calorimeter

1
2
3 #ifndef PrimaryGeneratorAction_h
4 #define PrimaryGeneratorAction_h 1
5
6 #include "G4VUserPrimaryGeneratorAction.hh"
7 #include "globals.hh"
8
9 class G4ParticleGun;
10 class G4Event;
11 class DetectorConstruction;
12 class PrimaryGeneratorMessenger;
13
14 class PrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
15 {
16 public:
17 PrimaryGeneratorAction(DetectorConstruction*);
18 ~PrimaryGeneratorAction();
19
20 public:
21 void GeneratePrimaries(G4Event* anEvent);
22 void SetRndmFlag(G4String val) { rndmFlag = val;}
23
24 private:
25 G4ParticleGun* particleGun;
26 DetectorConstruction* Detector;
27
28 PrimaryGeneratorMessenger* gunMessenger; //messenger of this class
29 G4String rndmFlag; //flag for a random impact point
30 };
31
32 #endif
33
34
35 // 2005 by G.I.Vasilyev

  ViewVC Help
Powered by ViewVC 1.1.23