Alignment
LaserAlignmentSimulation
interface
LaserPrimaryGeneratorAction.h
Go to the documentation of this file.
1
#ifndef LaserAlignmentSimulation_LaserPrimaryGeneratorAction_h
2
#define LaserAlignmentSimulation_LaserPrimaryGeneratorAction_h
3
12
#include "
Alignment/LaserAlignmentSimulation/interface/LaserBeamsBarrel.h
"
13
#include "
Alignment/LaserAlignmentSimulation/interface/LaserBeamsTEC1.h
"
14
#include "
Alignment/LaserAlignmentSimulation/interface/LaserBeamsTEC2.h
"
15
16
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
17
18
// G4 includes
19
#include "G4Event.hh"
20
#include "G4VUserPrimaryGeneratorAction.hh"
21
#include "Randomize.hh"
22
23
class
G4Event;
24
class
LaserPrimaryGeneratorMessenger;
25
26
class
LaserPrimaryGeneratorAction
:
public
G4VUserPrimaryGeneratorAction {
27
public
:
29
LaserPrimaryGeneratorAction
(
edm::ParameterSet
const
&theConf);
31
~LaserPrimaryGeneratorAction
()
override
;
32
33
public
:
36
void
GeneratePrimaries
(G4Event *
myEvent
)
override
;
38
void
setGeneratorId
(G4PrimaryParticle *aParticle,
int
ID
)
const
;
39
40
private
:
41
G4double
thePhotonEnergy
;
42
G4int
thenParticleInGun
;
43
G4int
thenParticle
;
44
45
private
:
46
LaserBeamsTEC1
*
theLaserBeamsInTEC1
;
47
LaserBeamsTEC2
*
theLaserBeamsInTEC2
;
48
LaserBeamsBarrel
*
theLaserBeamsInTECTIBTOBTEC
;
49
};
50
#endif
LaserBeamsTEC2
Definition:
LaserBeamsTEC2.h:21
LaserPrimaryGeneratorAction::~LaserPrimaryGeneratorAction
~LaserPrimaryGeneratorAction() override
destructor
Definition:
LaserPrimaryGeneratorAction.cc:51
LaserBeamsTEC1
Definition:
LaserBeamsTEC1.h:21
LaserBeamsBarrel
Definition:
LaserBeamsBarrel.h:21
LaserPrimaryGeneratorAction::thenParticle
G4int thenParticle
Definition:
LaserPrimaryGeneratorAction.h:43
ecalTB2006H4_GenSimDigiReco_cfg.myEvent
myEvent
Definition:
ecalTB2006H4_GenSimDigiReco_cfg.py:7
edm::ParameterSet
Definition:
ParameterSet.h:47
align::ID
uint32_t ID
Definition:
Definitions.h:24
LaserBeamsTEC2.h
LaserBeamsBarrel.h
LaserPrimaryGeneratorAction::setGeneratorId
void setGeneratorId(G4PrimaryParticle *aParticle, int ID) const
set Id of the optical photons
Definition:
LaserPrimaryGeneratorAction.cc:100
LaserPrimaryGeneratorAction::LaserPrimaryGeneratorAction
LaserPrimaryGeneratorAction(edm::ParameterSet const &theConf)
constructor
Definition:
LaserPrimaryGeneratorAction.cc:16
LaserPrimaryGeneratorAction::theLaserBeamsInTEC1
LaserBeamsTEC1 * theLaserBeamsInTEC1
Definition:
LaserPrimaryGeneratorAction.h:46
LaserPrimaryGeneratorAction::theLaserBeamsInTECTIBTOBTEC
LaserBeamsBarrel * theLaserBeamsInTECTIBTOBTEC
Definition:
LaserPrimaryGeneratorAction.h:48
LaserPrimaryGeneratorAction::thePhotonEnergy
G4double thePhotonEnergy
Definition:
LaserPrimaryGeneratorAction.h:41
LaserPrimaryGeneratorAction::thenParticleInGun
G4int thenParticleInGun
Definition:
LaserPrimaryGeneratorAction.h:42
LaserBeamsTEC1.h
ParameterSet.h
LaserPrimaryGeneratorAction::theLaserBeamsInTEC2
LaserBeamsTEC2 * theLaserBeamsInTEC2
Definition:
LaserPrimaryGeneratorAction.h:47
LaserPrimaryGeneratorAction::GeneratePrimaries
void GeneratePrimaries(G4Event *myEvent) override
Definition:
LaserPrimaryGeneratorAction.cc:66
LaserPrimaryGeneratorAction
Definition:
LaserPrimaryGeneratorAction.h:26
Generated for CMSSW Reference Manual by
1.8.16