#include <LaserBeamsTEC2.h>
Public Member Functions | |
void | GeneratePrimaries (G4Event *myEvent) override |
shoot optical photons into the detector at the beginning of an event More... | |
LaserBeamsTEC2 () | |
default constructor More... | |
LaserBeamsTEC2 (G4int nPhotonsInGun, G4int nPhotonsInBeam, G4double PhotonEnergy) | |
constructor More... | |
void | setOptPhotonPolar (G4double Angle) |
set the polarisation of the photons More... | |
~LaserBeamsTEC2 () override | |
destructor More... | |
Private Attributes | |
CLHEP::DRand48Engine * | theDRand48Engine |
G4int | thenParticle |
G4int | thenParticleInGun |
G4ParticleGun * | theParticleGun |
G4double | thePhotonEnergy |
Laser Beams in the left Endcap
Definition at line 21 of file LaserBeamsTEC2.h.
LaserBeamsTEC2::LaserBeamsTEC2 | ( | ) |
default constructor
Definition at line 21 of file LaserBeamsTEC2.cc.
References EcalCondDBWriter_cfi::Energy.
LaserBeamsTEC2::LaserBeamsTEC2 | ( | G4int | nPhotonsInGun, |
G4int | nPhotonsInBeam, | ||
G4double | PhotonEnergy | ||
) |
constructor
Definition at line 29 of file LaserBeamsTEC2.cc.
References setOptPhotonPolar(), theDRand48Engine, thenParticle, thenParticleInGun, theParticleGun, and thePhotonEnergy.
|
override |
destructor
Definition at line 65 of file LaserBeamsTEC2.cc.
References theDRand48Engine, and theParticleGun.
|
override |
shoot optical photons into the detector at the beginning of an event
Definition at line 74 of file LaserBeamsTEC2.cc.
References funct::cos(), M_PI, ecalTB2006H4_GenSimDigiReco_cfg::myEvent, edm::RandomNumberGenerator::mySeed(), SurveyInfoScenario_cff::seed, setOptPhotonPolar(), funct::sin(), theDRand48Engine, thenParticle, theParticleGun, and thePhotonEnergy.
Referenced by LaserPrimaryGeneratorAction::GeneratePrimaries().
void LaserBeamsTEC2::setOptPhotonPolar | ( | G4double | Angle | ) |
set the polarisation of the photons
Definition at line 161 of file LaserBeamsTEC2.cc.
References funct::cos(), funct::sin(), mathSSE::sqrt(), and theParticleGun.
Referenced by GeneratePrimaries(), and LaserBeamsTEC2().
|
private |
Definition at line 45 of file LaserBeamsTEC2.h.
Referenced by GeneratePrimaries(), LaserBeamsTEC2(), and ~LaserBeamsTEC2().
|
private |
Definition at line 38 of file LaserBeamsTEC2.h.
Referenced by GeneratePrimaries(), and LaserBeamsTEC2().
|
private |
Definition at line 37 of file LaserBeamsTEC2.h.
Referenced by LaserBeamsTEC2().
|
private |
Definition at line 42 of file LaserBeamsTEC2.h.
Referenced by GeneratePrimaries(), LaserBeamsTEC2(), setOptPhotonPolar(), and ~LaserBeamsTEC2().
|
private |
Definition at line 39 of file LaserBeamsTEC2.h.
Referenced by GeneratePrimaries(), and LaserBeamsTEC2().