File indexing completed on 2024-04-06 11:56:27
0001 #ifndef LaserAlignmentSimulation_LaserBeamsTEC2_h
0002 #define LaserAlignmentSimulation_LaserBeamsTEC2_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #include "CLHEP/Random/DRand48Engine.h"
0013
0014
0015 #include "G4ParticleTable.hh"
0016 #include "G4VUserPrimaryGeneratorAction.hh"
0017
0018 class G4ParticleGun;
0019 class G4Event;
0020
0021 class LaserBeamsTEC2 : public G4VUserPrimaryGeneratorAction {
0022 public:
0023
0024 LaserBeamsTEC2();
0025
0026 LaserBeamsTEC2(G4int nPhotonsInGun, G4int nPhotonsInBeam, G4double PhotonEnergy);
0027
0028 ~LaserBeamsTEC2() override;
0029
0030 public:
0031
0032 void GeneratePrimaries(G4Event *myEvent) override;
0033
0034 void setOptPhotonPolar(G4double Angle);
0035
0036 private:
0037 G4int thenParticleInGun;
0038 G4int thenParticle;
0039 G4double thePhotonEnergy;
0040
0041 private:
0042 G4ParticleGun *theParticleGun;
0043
0044
0045 CLHEP::DRand48Engine *theDRand48Engine;
0046 };
0047 #endif