CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
uint32_t ID
Definition: Definitions.h:24
LaserPrimaryGeneratorAction(edm::ParameterSet const &theConf)
constructor
void GeneratePrimaries(G4Event *myEvent) override
void setGeneratorId(G4PrimaryParticle *aParticle, int ID) const
set Id of the optical photons
~LaserPrimaryGeneratorAction() override
destructor