CMS 3D CMS Logo

LaserPrimaryGeneratorAction.h
Go to the documentation of this file.
1 #ifndef LaserAlignmentSimulation_LaserPrimaryGeneratorAction_h
2 #define LaserAlignmentSimulation_LaserPrimaryGeneratorAction_h
3 
15 
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:
32 
33 public:
36  void GeneratePrimaries(G4Event *myEvent) override;
38  void setGeneratorId(G4PrimaryParticle *aParticle, int ID) const;
39 
40 private:
41  G4double thePhotonEnergy;
43  G4int thenParticle;
44 
45 private:
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:36
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