Go to the documentation of this file.
14 #include "G4SystemOfUnits.hh"
20 theLaserBeamsInTEC1(),
21 theLaserBeamsInTEC2(),
22 theLaserBeamsInTECTIBTOBTEC() {
71 LogDebug(
"LaserPrimaryGeneratorAction") <<
"<LaserPrimaryGeneratorAction::GeneratePrimaries(G4Event*)>: create a "
87 for (
int i = 1;
i <
myEvent->GetNumberOfPrimaryVertex();
i++) {
88 G4PrimaryVertex *theVertex =
myEvent->GetPrimaryVertex(
i);
90 for (
int j = 0;
j < theVertex->GetNumberOfParticle();
j++) {
91 G4PrimaryParticle *thePrimary = theVertex->GetPrimary(
j);
~LaserPrimaryGeneratorAction() override
destructor
T getUntrackedParameter(std::string const &, T const &) const
void GeneratePrimaries(G4Event *myEvent) override
shoot optical photons into the detector at the beginning of an event
void GeneratePrimaries(G4Event *myEvent) override
shoot optical photons into the detector at the beginning of an event
void setGeneratorId(G4PrimaryParticle *aParticle, int ID) const
set Id of the optical photons
LaserPrimaryGeneratorAction(edm::ParameterSet const &theConf)
constructor
LaserBeamsTEC1 * theLaserBeamsInTEC1
LaserBeamsBarrel * theLaserBeamsInTECTIBTOBTEC
void GeneratePrimaries(G4Event *myEvent) override
shoot optical photons into the detector at the beginning of an event
LaserBeamsTEC2 * theLaserBeamsInTEC2
void GeneratePrimaries(G4Event *myEvent) override