1 #ifndef MPrimaryGeneratorAction_h 2 #define MPrimaryGeneratorAction_h 1 7 #include "G4VUserPrimaryGeneratorAction.hh" 8 #include "G4ParticleGun.hh" 41 G4ParticleTable* particleTable;
44 G4ParticleDefinition *Particle;
45 double mom, dmom, Mom;
46 double theta, dtheta, Theta;
47 double phi, dphi, Phi;
51 double polDeg, polTheta, polPhi;
52 G4ThreeVector beam_dir;
53 G4ThreeVector beam_vrt;
54 G4ThreeVector beam_pol;
63 double targetPol, beamPol;
67 G4ParticleDefinition *L_Particle;
71 double L_vx, L_vy, L_vz;
76 G4ThreeVector L_beam_dir;
77 G4ThreeVector L_beam_vrt;
80 G4ParticleDefinition *L2_Particle;
84 double L2_vx, L2_vy, L2_vz;
85 double L2_dvr, L2_dvz;
88 G4ThreeVector L2_beam_dir;
89 G4ThreeVector L2_beam_vrt;
91 G4ParticleGun* particleGun;
~MPrimaryGeneratorAction()
void GeneratePrimaries(G4Event *anEvent)
MPrimaryGeneratorAction(gemc_opts *)