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)
CLHEP::Hep3Vector G4ThreeVector
static G4double angle[DIM]
void SetParticleMomentumDirection(G4ParticleMomentum aMomentumDirection)
virtual void GeneratePrimaryVertex(G4Event *evt)
const G4String & GetParticleName() const
virtual void GeneratePrimaries(G4Event *)
static double normal(HepRandomEngine *eptr)
G4ParticleMomentum GetParticleMomentumDirection() const
void SetParticlePolarization(G4ThreeVector aVal)
void SetParticlePosition(G4ThreeVector aPosition)
G4GLOB_DLL std::ostream G4cout
static constexpr double cm
OpNovicePrimaryGeneratorAction()
void SetParticleEnergy(G4double aKineticEnergy)
virtual ~OpNovicePrimaryGeneratorAction()
Definition of the OpNovicePrimaryGeneratorAction class.
static G4ParticleTable * GetParticleTable()
G4ParticleDefinition * GetParticleDefinition() const
Hep3Vector cross(const Hep3Vector &) const
static constexpr double deg
static constexpr double keV
void SetParticleDefinition(G4ParticleDefinition *aParticleDefinition)
Definition of the OpNovicePrimaryGeneratorMessenger class.
void SetParticleTime(G4double aTime)