Import Geant4 10.3.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-12-09 12:35:28 +01:00
parent 4ec577e5c4
commit a3452e42ac
3514 changed files with 210500 additions and 89628 deletions
@@ -26,7 +26,7 @@
/// \file electromagnetic/TestEm16/src/PhysicsList.cc
/// \brief Implementation of the PhysicsList class
//
// $Id: PhysicsList.cc 84365 2014-10-14 12:43:52Z gcosmo $
// $Id: PhysicsList.cc 100276 2016-10-17 08:31:11Z gcosmo $
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -155,11 +155,12 @@ void PhysicsList::ConstructProcess()
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
void PhysicsList::ConstructEM()
{
theParticleIterator->reset();
auto particleIterator=GetParticleIterator();
particleIterator->reset();
G4SynchrotronRadiation* fSync = new G4SynchrotronRadiation();
G4AutoDelete::Register(fSync);
while( (*theParticleIterator)() ){
G4ParticleDefinition* particle = theParticleIterator->value();
while( (*particleIterator)() ){
G4ParticleDefinition* particle = particleIterator->value();
G4ProcessManager* pmanager = particle->GetProcessManager();
G4String particleName = particle->GetParticleName();
@@ -229,9 +230,10 @@ void PhysicsList::ConstructGeneral()
{
// Add Decay Process
G4Decay* theDecayProcess = new G4Decay();
theParticleIterator->reset();
while ((*theParticleIterator)()){
G4ParticleDefinition* particle = theParticleIterator->value();
auto particleIterator=GetParticleIterator();
particleIterator->reset();
while ((*particleIterator)()){
G4ParticleDefinition* particle = particleIterator->value();
G4ProcessManager* pmanager = particle->GetProcessManager();
if (theDecayProcess->IsApplicable(*particle)) {
pmanager ->AddProcess(theDecayProcess);
@@ -26,7 +26,7 @@
/// \file electromagnetic/TestEm16/src/PrimaryGeneratorAction.cc
/// \brief Implementation of the PrimaryGeneratorAction class
//
// $Id: PrimaryGeneratorAction.cc 68208 2013-03-18 18:17:16Z maire $
// $Id: PrimaryGeneratorAction.cc 98758 2016-08-09 13:59:31Z gcosmo $
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -51,6 +51,11 @@ PrimaryGeneratorAction::PrimaryGeneratorAction(DetectorConstruction* DC)
= G4ParticleTable::GetParticleTable()->FindParticle("e+");
fParticleGun->SetParticleDefinition(particle);
fParticleGun->SetParticleEnergy(10*GeV);
//set the initial gun position and direction.
G4double x0 = -0.5*(fDetector->GetSize());
G4double y0 = 0.*cm, z0 = 0.*cm;
fParticleGun->SetParticlePosition(G4ThreeVector(x0,y0,z0));
fParticleGun->SetParticleMomentumDirection(G4ThreeVector(1.,0.,0.));
}
@@ -65,12 +70,7 @@ PrimaryGeneratorAction::~PrimaryGeneratorAction()
void PrimaryGeneratorAction::GeneratePrimaries(G4Event* anEvent)
{
//this function is called at the begining of event
//
G4double x0 = -0.5*(fDetector->GetSize());
G4double y0 = 0.*cm, z0 = 0.*cm;
fParticleGun->SetParticlePosition(G4ThreeVector(x0,y0,z0));
//this function is called at the beginning of event
fParticleGun->GeneratePrimaryVertex(anEvent);
}
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file electromagnetic/TestEm11/src/Run.cc
/// \file electromagnetic/TestEm16/src/Run.cc
/// \brief Implementation of the Run class
//
// $Id: Run.cc 71376 2013-06-14 07:44:50Z maire $
@@ -23,11 +23,11 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file radioactivedecay/rdecay01/src/SteppingVerbose.cc
/// \file electromagnetic/TestEm16/src/SteppingVerbose.cc
/// \brief Implementation of the SteppingVerbose class
//
//
// $Id: SteppingVerbose.cc 71789 2013-06-24 12:24:25Z gcosmo $
// $Id: SteppingVerbose.cc 98282 2016-07-04 18:05:26Z gcosmo $
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......