#include <LaserBeamsBarrel.h>
Public Member Functions | |
void | GeneratePrimaries (G4Event *myEvent) override |
shoot optical photons into the detector at the beginning of an event More... | |
LaserBeamsBarrel () | |
default constructor More... | |
LaserBeamsBarrel (G4int nPhotonsInGun, G4int nPhotonsInBeam, G4double PhotonEnergy) | |
constructor More... | |
void | setOptPhotonPolar (G4double Angle) |
set the polarisation of the photons More... | |
~LaserBeamsBarrel () override | |
destructor More... | |
Private Attributes | |
CLHEP::DRand48Engine * | theDRand48Engine |
G4int | thenParticle |
G4int | thenParticleInGun |
G4ParticleGun * | theParticleGun |
G4double | thePhotonEnergy |
Define the LaserBeams which connect both TECs and TIB and TOB with eachother
Definition at line 21 of file LaserBeamsBarrel.h.
LaserBeamsBarrel::LaserBeamsBarrel | ( | ) |
default constructor
Definition at line 21 of file LaserBeamsBarrel.cc.
References EcalCondDBWriter_cfi::Energy.
LaserBeamsBarrel::LaserBeamsBarrel | ( | G4int | nPhotonsInGun, |
G4int | nPhotonsInBeam, | ||
G4double | PhotonEnergy | ||
) |
constructor
Definition at line 29 of file LaserBeamsBarrel.cc.
References setOptPhotonPolar(), theDRand48Engine, thenParticle, thenParticleInGun, theParticleGun, and thePhotonEnergy.
|
override |
destructor
Definition at line 65 of file LaserBeamsBarrel.cc.
References theDRand48Engine, and theParticleGun.
|
override |
shoot optical photons into the detector at the beginning of an event
Definition at line 74 of file LaserBeamsBarrel.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 LaserBeamsBarrel::setOptPhotonPolar | ( | G4double | Angle | ) |
set the polarisation of the photons
Definition at line 159 of file LaserBeamsBarrel.cc.
References funct::cos(), funct::sin(), mathSSE::sqrt(), and theParticleGun.
Referenced by GeneratePrimaries(), and LaserBeamsBarrel().
|
private |
Definition at line 45 of file LaserBeamsBarrel.h.
Referenced by GeneratePrimaries(), LaserBeamsBarrel(), and ~LaserBeamsBarrel().
|
private |
Definition at line 38 of file LaserBeamsBarrel.h.
Referenced by GeneratePrimaries(), and LaserBeamsBarrel().
|
private |
Definition at line 37 of file LaserBeamsBarrel.h.
Referenced by LaserBeamsBarrel().
|
private |
Definition at line 42 of file LaserBeamsBarrel.h.
Referenced by GeneratePrimaries(), LaserBeamsBarrel(), setOptPhotonPolar(), and ~LaserBeamsBarrel().
|
private |
Definition at line 39 of file LaserBeamsBarrel.h.
Referenced by GeneratePrimaries(), and LaserBeamsBarrel().