CMS 3D CMS Logo

LaserBeamsBarrel.h
Go to the documentation of this file.
1 #ifndef LaserAlignmentSimulation_LaserBeamsBarrel_h
2 #define LaserAlignmentSimulation_LaserBeamsBarrel_h
3 
12 #include "CLHEP/Random/DRand48Engine.h"
13 
14 // G4 includes
15 #include "G4ParticleTable.hh"
16 #include "G4VUserPrimaryGeneratorAction.hh"
17 
18 class G4ParticleGun;
19 class G4Event;
20 
21 class LaserBeamsBarrel : public G4VUserPrimaryGeneratorAction {
22 public:
26  LaserBeamsBarrel(G4int nPhotonsInGun, G4int nPhotonsInBeam, G4double PhotonEnergy);
28  ~LaserBeamsBarrel() override;
29 
30 public:
32  void GeneratePrimaries(G4Event *myEvent) override;
34  void setOptPhotonPolar(G4double Angle);
35 
36 private:
38  G4int thenParticle;
39  G4double thePhotonEnergy;
40 
41 private:
42  G4ParticleGun *theParticleGun;
43 
44  // Unique random number generator
45  CLHEP::DRand48Engine *theDRand48Engine;
46 };
47 #endif
G4double thePhotonEnergy
LaserBeamsBarrel()
default constructor
G4ParticleGun * theParticleGun
~LaserBeamsBarrel() override
destructor
void setOptPhotonPolar(G4double Angle)
set the polarisation of the photons
Definition: Angle.h:17
CLHEP::DRand48Engine * theDRand48Engine
void GeneratePrimaries(G4Event *myEvent) override
shoot optical photons into the detector at the beginning of an event