File indexing completed on 2025-01-18 10:18:20
0001
0002
0003
0004
0005
0006 #ifndef _PFRICH_FTBF_PRIMARY_GENERATOR_
0007 #define _PFRICH_FTBF_PRIMARY_GENERATOR_
0008
0009 #include "G4VUserPrimaryGeneratorAction.hh"
0010 #include "G4ParticleGun.hh"
0011
0012 #include "Randomize.hh"
0013
0014 class G4Event;
0015
0016 class FTBFPrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
0017 {
0018 public:
0019 FTBFPrimaryGeneratorAction(const char *hepmc);
0020 ~FTBFPrimaryGeneratorAction();
0021
0022 void GeneratePrimaries(G4Event*);
0023
0024 private:
0025 G4ParticleGun* fParticleGun;
0026
0027 double UniformRand(double from, double to) {
0028 return from + (to-from)*G4UniformRand();
0029 };
0030 };
0031
0032 #endif