98 G4cout <<
"--> warning from PrimaryGeneratorAction::SetOptPhotonPolar() :"
99 "the particleGun is not an opticalphoton" <<
G4endl;
109 if (modul2 > 0.) e_perpend = (1./std::sqrt(modul2))*product;
112 G4ThreeVector polar = std::cos(angle)*e_paralle + std::sin(angle)*e_perpend;
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
void SetParticleTime(G4double aTime)
CLHEP::Hep3Vector G4ThreeVector
static G4ParticleTable * GetParticleTable()
static constexpr double keV
const G4String & GetParticleName() const
static double normal(HepRandomEngine *eptr)
void SetParticlePosition(G4ThreeVector aPosition)
Definition of the OpNovicePrimaryGeneratorMessenger class.
void SetParticleDefinition(G4ParticleDefinition *aParticleDefinition)
static constexpr double deg
G4ParticleGun * fParticleGun
OpNovicePrimaryGeneratorAction()
void SetParticlePolarization(G4ThreeVector aVal)
virtual void GeneratePrimaries(G4Event *)
Hep3Vector cross(const Hep3Vector &) const
virtual void GeneratePrimaryVertex(G4Event *evt)
G4GLOB_DLL std::ostream G4cout
static constexpr double cm
void SetParticleEnergy(G4double aKineticEnergy)
virtual ~OpNovicePrimaryGeneratorAction()
G4ParticleDefinition * GetParticleDefinition() const
G4ParticleMomentum GetParticleMomentumDirection() const
void SetParticleMomentumDirection(G4ParticleMomentum aMomentumDirection)
OpNovicePrimaryGeneratorMessenger * fGunMessenger
Definition of the OpNovicePrimaryGeneratorAction class.