#include <G4RayShooter.hh>
Definition at line 47 of file G4RayShooter.hh.
◆ G4RayShooter()
G4RayShooter::G4RayShooter |
( |
| ) |
|
◆ ~G4RayShooter()
G4RayShooter::~G4RayShooter |
( |
| ) |
|
|
virtual |
◆ Shoot()
Definition at line 57 of file G4RayShooter.cc.
58{
59 if(particle_definition == nullptr)
60 {
63 particle_definition = particleTable->
FindParticle(particleName=
"geantino");
64 if(particle_definition == nullptr)
65 {
67 msg = "G4RayTracer uses geantino to trace the ray, but your physics list does not\n";
68 msg += "define G4Geantino. Please add G4Geantino in your physics list.";
70 }
71 }
72
73
74
76
77
78
85 particle_polarization.
y(),
86 particle_polarization.
z());
88
90}
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
void AddPrimaryVertex(G4PrimaryVertex *aPrimaryVertex)
G4double GetPDGMass() const
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
static G4ParticleTable * GetParticleTable()
void SetPolarization(const G4ThreeVector &pol)
void SetKineticEnergy(G4double eKin)
void SetMomentumDirection(const G4ThreeVector &p)
void SetMass(G4double mas)
void SetPrimary(G4PrimaryParticle *pp)
Referenced by G4TheRayTracer::CreateBitMap().
The documentation for this class was generated from the following files: