73 fNeutronPhysical(NULL),
100 randomLocation.
y() + sourceCenter.
y(),
101 randomLocation.
z() + sourceCenter.
z());
103 G4cout <<
"Emission Location: r: " << location <<
G4endl;
112 G4cout <<
"Emission Direction: r: " << direction <<
G4endl;
123 GetNeutronSourceCenter(
void)
126 if(fNeutronSolid == NULL)
135 if(fNeutronSolid == NULL)
138 "GeneratePrimaries(G4Event*)",
139 "Neutron source solid volume not found",
141 "This run will be aborted");
146 if(fNeutronPhysical == NULL)
152 if(fNeutronPhysical == NULL)
154 G4Exception(
"FFPrimaryGeneratorAction::GetNeutronSourceCenter(void)",
155 "Neutron source physical volume not found",
157 "This run will be aborted");
161 if(fH2OPhysical == NULL)
166 if(fH2OPhysical == NULL)
169 "GetNeutronSourceCenter(void)",
170 "Tank H2O physical volume not found",
172 "This run will be aborted");
177 if(fTankPhysical == NULL)
182 if(fTankPhysical == NULL)
185 "GetNeutronSourceCenter(void)",
186 "Tank physical volume not found",
188 "This run will be aborted");
FFPrimaryGeneratorAction()
G4VSolid * GetSolid() const
void SetParticleMomentumDirection(G4ParticleMomentum aMomentumDirection)
virtual void GeneratePrimaryVertex(G4Event *evt)
virtual ~FFPrimaryGeneratorAction()
G4LogicalVolume * GetVolume(const G4String &name, G4bool verbose=true) const
static G4PhysicalVolumeStore * GetInstance()
void SetParticlePosition(G4ThreeVector aPosition)
G4GLOB_DLL std::ostream G4cout
static G4LogicalVolumeStore * GetInstance()
void setRThetaPhi(double r, double theta, double phi)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
virtual void GeneratePrimaries(G4Event *event)
const G4ThreeVector & GetTranslation() const
void SetParticleEnergy(G4double aKineticEnergy)
static G4Neutron * Definition()
G4double GetZHalfLength() const
static constexpr double MeV
Definition of the FFPrimaryGeneratorAction class.
static constexpr double deg
G4VPhysicalVolume * GetVolume(const G4String &name, G4bool verbose=true) const
void SetParticleDefinition(G4ParticleDefinition *aParticleDefinition)
G4double GetOuterRadius() const