Alignment
LaserAlignmentSimulation
interface
LaserBeamsTEC2.h
Go to the documentation of this file.
1
#ifndef LaserAlignmentSimulation_LaserBeamsTEC2_h
2
#define LaserAlignmentSimulation_LaserBeamsTEC2_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
LaserBeamsTEC2
:
public
G4VUserPrimaryGeneratorAction {
22
public
:
24
LaserBeamsTEC2
();
26
LaserBeamsTEC2
(G4int nPhotonsInGun, G4int nPhotonsInBeam, G4double PhotonEnergy);
28
~LaserBeamsTEC2
()
override
;
29
30
public
:
32
void
GeneratePrimaries
(G4Event *
myEvent
)
override
;
34
void
setOptPhotonPolar
(G4double
Angle
);
35
36
private
:
37
G4int
thenParticleInGun
;
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
LaserBeamsTEC2
Definition:
LaserBeamsTEC2.h:21
LaserBeamsTEC2::theDRand48Engine
CLHEP::DRand48Engine * theDRand48Engine
Definition:
LaserBeamsTEC2.h:45
LaserBeamsTEC2::thenParticleInGun
G4int thenParticleInGun
Definition:
LaserBeamsTEC2.h:37
LaserBeamsTEC2::GeneratePrimaries
void GeneratePrimaries(G4Event *myEvent) override
shoot optical photons into the detector at the beginning of an event
Definition:
LaserBeamsTEC2.cc:74
LaserBeamsTEC2::thePhotonEnergy
G4double thePhotonEnergy
Definition:
LaserBeamsTEC2.h:39
LaserBeamsTEC2::thenParticle
G4int thenParticle
Definition:
LaserBeamsTEC2.h:38
ecalTB2006H4_GenSimDigiReco_cfg.myEvent
myEvent
Definition:
ecalTB2006H4_GenSimDigiReco_cfg.py:7
LaserBeamsTEC2::setOptPhotonPolar
void setOptPhotonPolar(G4double Angle)
set the polarisation of the photons
Definition:
LaserBeamsTEC2.cc:161
LaserBeamsTEC2::~LaserBeamsTEC2
~LaserBeamsTEC2() override
destructor
Definition:
LaserBeamsTEC2.cc:65
LaserBeamsTEC2::theParticleGun
G4ParticleGun * theParticleGun
Definition:
LaserBeamsTEC2.h:42
Angle
Definition:
Angle.h:17
LaserBeamsTEC2::LaserBeamsTEC2
LaserBeamsTEC2()
default constructor
Definition:
LaserBeamsTEC2.cc:21
Generated for CMSSW Reference Manual by
1.8.16