Import Geant4 10.6.2 source tree
This commit is contained in:
@@ -87,6 +87,8 @@ void B2PrimaryGeneratorAction::GeneratePrimaries(G4Event* anEvent)
|
||||
G4cerr << "The gun will be place in the center." << G4endl;
|
||||
}
|
||||
|
||||
// Note that this particular case of starting a primary particle on the world boundary
|
||||
// requires shooting in a direction towards inside the world.
|
||||
fParticleGun->SetParticlePosition(G4ThreeVector(0., 0., -worldZHalfLength));
|
||||
|
||||
fParticleGun->GeneratePrimaryVertex(anEvent);
|
||||
|
||||
Reference in New Issue
Block a user