Import Geant4 11.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2022-12-09 14:43:28 +01:00
parent c07cea1fe0
commit 9f34590941
3810 changed files with 200490 additions and 182326 deletions
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
/// \file GunPrimaryGeneratorAction.cc
/// \brief Implementation of the GunPrimaryGeneratorAction class
/// \file common/src/GunPrimaryGeneratorAction.cc
/// \brief Implementation of the Common::GunPrimaryGeneratorAction class
#include "GunPrimaryGeneratorAction.hh"
@@ -34,15 +34,16 @@
#include "G4ParticleTable.hh"
#include "G4ParticleDefinition.hh"
namespace Common
{
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
GunPrimaryGeneratorAction::GunPrimaryGeneratorAction(
const G4String& particleName,
GunPrimaryGeneratorAction::GunPrimaryGeneratorAction(
const G4String& particleName,
G4double energy,
G4ThreeVector position,
G4ThreeVector position,
G4ThreeVector momentumDirection)
: G4VUserPrimaryGeneratorAction(),
fParticleGun(nullptr)
{
G4int nofParticles = 1;
fParticleGun = new G4ParticleGun(nofParticles);
@@ -73,3 +74,7 @@ void GunPrimaryGeneratorAction::GeneratePrimaries(G4Event* anEvent)
fParticleGun->GeneratePrimaryVertex(anEvent);
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
}