CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 {
28  public:
33 
34  public:
36  void GeneratePrimaries(G4Event* myEvent);
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:26
LaserPrimaryGeneratorAction(edm::ParameterSet const &theConf)
constructor
void setGeneratorId(G4PrimaryParticle *aParticle, int ID) const
set Id of the optical photons
void GeneratePrimaries(G4Event *myEvent)
call the corresponding GeneratePrimaries routines for both TEC's and the Barrel