73 fNeutronPhysical(NULL),
95 randomLocation.setRThetaPhi(radius * std::sqrt(
G4UniformRand()),
100 randomLocation.y() + sourceCenter.y(),
101 randomLocation.z() + sourceCenter.z());
103 G4cout <<
"Emission Location: r: " << location <<
G4endl;
108 direction.setRThetaPhi(1.0,
112 G4cout <<
"Emission Direction: r: " << direction <<
G4endl;
138 "GeneratePrimaries(G4Event*)",
139 "Neutron source solid volume not found",
141 "This run will be aborted");
154 G4Exception(
"FFPrimaryGeneratorAction::GetNeutronSourceCenter(void)",
155 "Neutron source physical volume not found",
157 "This run will be aborted");
169 "GetNeutronSourceCenter(void)",
170 "Tank H2O physical volume not found",
172 "This run will be aborted");
185 "GetNeutronSourceCenter(void)",
186 "Tank physical volume not found",
188 "This run will be aborted");
const G4ThreeVector & GetTranslation() const
CLHEP::Hep3Vector G4ThreeVector
FFPrimaryGeneratorAction()
G4ThreeVector GetNeutronSourceCenter(void)
G4VPhysicalVolume * fTankPhysical
void SetParticleMomentumDirection(G4ParticleMomentum aMomentumDirection)
G4VPhysicalVolume * fH2OPhysical
virtual void GeneratePrimaryVertex(G4Event *evt)
virtual ~FFPrimaryGeneratorAction()
G4ParticleGun *const fParticleGun
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 G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
virtual void GeneratePrimaries(G4Event *event)
void SetParticleEnergy(G4double aKineticEnergy)
static G4Neutron * Definition()
G4double GetZHalfLength() const
Definition of the FFPrimaryGeneratorAction class.
G4VPhysicalVolume * fNeutronPhysical
G4VPhysicalVolume * GetVolume(const G4String &name, G4bool verbose=true) const
void SetParticleDefinition(G4ParticleDefinition *aParticleDefinition)
G4VSolid * GetSolid() const
G4double GetOuterRadius() const