Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:30:46

0001 
0002 #ifndef _PFRICH_TSTAND_PRIMARY_GENERATOR_
0003 #define _PFRICH_TSTAND_PRIMARY_GENERATOR_
0004 
0005 #include "G4VUserPrimaryGeneratorAction.hh"
0006 #include "G4ParticleGun.hh"
0007 #include "Randomize.hh"
0008 #include "globals.hh"
0009 
0010 class G4Event;
0011 
0012 class TestStandPrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
0013 {
0014   public:
0015     TestStandPrimaryGeneratorAction(const char *hepmc);
0016     ~TestStandPrimaryGeneratorAction();
0017 
0018     void GeneratePrimaries(G4Event*);
0019 
0020   private:
0021     G4ParticleGun* fParticleGun;
0022 
0023   double UniformRand(double from, double to) {
0024     return from + (to-from)*G4UniformRand();
0025   };
0026 };
0027 
0028 #endif