Import Geant4 9.2.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 15:58:43 +02:00
parent 96c8bcd0af
commit b79225fb37
7544 changed files with 245407 additions and 91099 deletions
@@ -25,7 +25,7 @@
//
//
// $Id: Em8CalorHit.cc,v 1.5 2006/06/29 17:00:03 gunter Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
//
@@ -25,7 +25,7 @@
//
//
// $Id: Em8CalorimeterSD.cc,v 1.7 2006/06/29 17:00:05 gunter Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
//
@@ -25,7 +25,7 @@
//
//
// $Id: Em8DetectorConstruction.cc,v 1.21 2007/10/02 10:12:47 vnivanch Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
//
@@ -25,7 +25,7 @@
//
//
// $Id: Em8DetectorMessenger.cc,v 1.8 2007/10/02 10:12:47 vnivanch Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
//
@@ -25,7 +25,7 @@
//
//
// $Id: Em8EventAction.cc,v 1.10 2007/11/12 10:54:49 vnivanch Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
//
@@ -25,7 +25,7 @@
//
//
// $Id: Em8EventActionMessenger.cc,v 1.5 2006/06/29 17:00:15 gunter Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
//
@@ -25,7 +25,7 @@
//
//
// $Id: Em8PrimaryGeneratorAction.cc,v 1.7 2006/06/29 17:00:18 gunter Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
//
@@ -25,7 +25,7 @@
//
//
// $Id: Em8PrimaryGeneratorMessenger.cc,v 1.5 2006/06/29 17:00:21 gunter Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
//
@@ -25,7 +25,7 @@
//
//
// $Id: Em8RunAction.cc,v 1.15 2007/11/12 10:54:49 vnivanch Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
//
@@ -25,7 +25,7 @@
//
//
// $Id: Em8RunMessenger.cc,v 1.7 2006/06/29 17:00:25 gunter Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
//
@@ -25,7 +25,7 @@
//
//
// $Id: Em8SteppingAction.cc,v 1.10 2007/11/12 10:54:49 vnivanch Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
//
@@ -25,7 +25,7 @@
//
//
// $Id: Em8SteppingVerbose.cc,v 1.8 2006/06/29 17:00:29 gunter Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
//
//---------------------------------------------------------------
@@ -1,156 +0,0 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
// $Id: PhysListEmModelPai.cc,v 1.5 2007/08/02 12:01:53 vnivanch Exp $
// GEANT4 tag $Name: geant4-09-01 $
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#include "PhysListEmModelPai.hh"
#include "G4ParticleDefinition.hh"
#include "G4ProcessManager.hh"
#include "G4ComptonScattering.hh"
#include "G4GammaConversion.hh"
#include "G4PhotoElectricEffect.hh"
#include "G4MultipleScattering.hh"
#include "G4eIonisation.hh"
#include "G4PAIModel.hh"
#include "G4eBremsstrahlung.hh"
#include "G4eplusAnnihilation.hh"
#include "G4MuIonisation.hh"
#include "G4MuBremsstrahlung.hh"
#include "G4MuPairProduction.hh"
#include "G4hIonisation.hh"
#include "G4ionIonisation.hh"
#include "G4Region.hh"
#include "G4RegionStore.hh"
#include "G4Proton.hh"
#include "G4Electron.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
PhysListEmModelPai::PhysListEmModelPai(const G4String& name)
: G4VPhysicsConstructor(name)
{}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
PhysListEmModelPai::~PhysListEmModelPai()
{}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
void PhysListEmModelPai::ConstructProcess()
{
// Add standard EM Processes
const G4RegionStore* theRegionStore = G4RegionStore::GetInstance();
G4Region* gas = theRegionStore->GetRegion("VertexDetector");
theParticleIterator->reset();
while( (*theParticleIterator)() )
{
G4ParticleDefinition* particle = theParticleIterator->value();
G4ProcessManager* pmanager = particle->GetProcessManager();
G4String particleName = particle->GetParticleName();
if (particleName == "gamma")
{
pmanager->AddDiscreteProcess(new G4PhotoElectricEffect);
pmanager->AddDiscreteProcess(new G4ComptonScattering);
pmanager->AddDiscreteProcess(new G4GammaConversion);
}
else if (particleName == "e-")
{
pmanager->AddProcess(new G4MultipleScattering, -1, 1,1);
G4eIonisation* eion = new G4eIonisation();
G4PAIModel* pai = new G4PAIModel(particle,"PAIModel");
eion->AddEmModel(0,pai,pai,gas);
pmanager->AddProcess(eion,-1, 2, 2);
pmanager->AddProcess(new G4eBremsstrahlung,-1,-1,3);
}
else if (particleName == "e+")
{
pmanager->AddProcess(new G4MultipleScattering, -1, 1,1);
G4eIonisation* epion = new G4eIonisation();
G4PAIModel* pai = new G4PAIModel(particle,"PAIModel");
epion->AddEmModel(0,pai,pai,gas);
pmanager->AddProcess(epion, -1, 2,2);
pmanager->AddProcess(new G4eBremsstrahlung, -1,-1,3);
pmanager->AddProcess(new G4eplusAnnihilation, 0,-1,4);
} else if( particleName == "mu+" ||
particleName == "mu-" )
{
pmanager->AddProcess(new G4MultipleScattering,-1, 1,1);
G4MuIonisation* muion = new G4MuIonisation();
G4PAIModel* pai = new G4PAIModel(particle,"PAIModel");
muion->AddEmModel(0,pai,pai,gas);
pmanager->AddProcess(muion, -1, 2, 2);
pmanager->AddProcess(new G4MuBremsstrahlung, -1,-1,3);
pmanager->AddProcess(new G4MuPairProduction, -1,-1,4);
}
else if (particleName == "GenericIon")
{
pmanager->AddProcess(new G4MultipleScattering, -1, 1,1);
pmanager->AddProcess(new G4ionIonisation, -1, 2,2);
} else if ( ( !particle->IsShortLived() ) &&
( particle->GetPDGCharge() != 0.0 ) &&
( particle->GetParticleName() != "chargedgeantino") )
{
pmanager->AddProcess(new G4MultipleScattering,-1,1,1);
G4hIonisation* hion = new G4hIonisation();
G4PAIModel* pai = new G4PAIModel(particle,"PAIModel");
hion->AddEmModel(0,pai,pai,gas);
pmanager->AddProcess(hion, -1,2,2);
}
}
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -1,154 +0,0 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
// $Id: PhysListEmPAI.cc,v 1.3 2007/09/26 10:23:17 vnivanch Exp $
// GEANT4 tag $Name: geant4-09-01 $
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#include "PhysListEmPAI.hh"
#include "G4ParticleDefinition.hh"
#include "G4ProcessManager.hh"
#include "G4ComptonScattering.hh"
#include "G4GammaConversion.hh"
#include "G4PhotoElectricEffect.hh"
#include "G4MultipleScattering.hh"
#include "G4eIonisation.hh"
#include "G4PAIModel.hh"
#include "G4eBremsstrahlung.hh"
#include "G4eplusAnnihilation.hh"
#include "G4MuIonisation.hh"
#include "G4MuBremsstrahlung.hh"
#include "G4MuPairProduction.hh"
#include "G4hIonisation.hh"
#include "G4ionIonisation.hh"
#include "G4Region.hh"
#include "G4RegionStore.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
PhysListEmPAI::PhysListEmPAI(const G4String& name)
: G4VPhysicsConstructor(name)
{}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
PhysListEmPAI::~PhysListEmPAI()
{}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
void PhysListEmPAI::ConstructProcess()
{
// Add standard EM Processes
const G4RegionStore* theRegionStore = G4RegionStore::GetInstance();
G4Region* gas = theRegionStore->GetRegion("VertexDetector");
theParticleIterator->reset();
while( (*theParticleIterator)() )
{
G4ParticleDefinition* particle = theParticleIterator->value();
G4ProcessManager* pmanager = particle->GetProcessManager();
G4String particleName = particle->GetParticleName();
if (particleName == "gamma")
{
pmanager->AddDiscreteProcess(new G4PhotoElectricEffect);
pmanager->AddDiscreteProcess(new G4ComptonScattering);
pmanager->AddDiscreteProcess(new G4GammaConversion);
}
else if (particleName == "e-")
{
pmanager->AddProcess(new G4MultipleScattering, -1, 1,1);
G4eIonisation* eion = new G4eIonisation();
G4PAIModel* pai = new G4PAIModel(particle,"PAIModel");
eion->AddEmModel(0,pai,pai,gas);
pmanager->AddProcess(eion,-1, 2,2);
pmanager->AddProcess(new G4eBremsstrahlung,-1,3,3);
}
else if (particleName == "e+")
{
pmanager->AddProcess(new G4MultipleScattering, -1, 1,1);
G4eIonisation* eion = new G4eIonisation();
G4PAIModel* pai = new G4PAIModel(particle,"PAIModel");
eion->AddEmModel(0,pai,pai,gas);
pmanager->AddProcess(eion,-1, 2,2);
pmanager->AddProcess(new G4eBremsstrahlung, -1, 3,3);
pmanager->AddProcess(new G4eplusAnnihilation, 0,-1,4);
} else if( particleName == "mu+" ||
particleName == "mu-" )
{
pmanager->AddProcess(new G4MultipleScattering,-1, 1,1);
G4MuIonisation* muion = new G4MuIonisation();
G4PAIModel* pai = new G4PAIModel(particle,"PAIModel");
muion->AddEmModel(0,pai,pai,gas);
pmanager->AddProcess(muion, -1, 2, 2);
pmanager->AddProcess(new G4MuBremsstrahlung, -1, 3,3);
pmanager->AddProcess(new G4MuPairProduction, -1, 3,4);
}
else if (particleName == "GenericIon")
{
pmanager->AddProcess(new G4MultipleScattering, -1, 1,1);
pmanager->AddProcess(new G4ionIonisation, -1, 2,2);
}
else if ( ( !particle->IsShortLived() ) &&
( particle->GetPDGCharge() != 0.0 ) &&
( particle->GetParticleName() != "chargedgeantino") )
{
pmanager->AddProcess(new G4MultipleScattering,-1,1,1);
G4hIonisation* hion = new G4hIonisation();
G4PAIModel* pai = new G4PAIModel(particle,"PAIModel");
hion->AddEmModel(0,pai,pai,gas);
pmanager->AddProcess(hion, -1,2,2);
}
}
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -1,157 +0,0 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
// $Id: PhysListEmPaiPhoton.cc,v 1.5 2007/09/26 10:23:17 vnivanch Exp $
// GEANT4 tag $Name: geant4-09-01 $
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#include "PhysListEmPaiPhoton.hh"
#include "G4ParticleDefinition.hh"
#include "G4ProcessManager.hh"
#include "G4ComptonScattering.hh"
#include "G4GammaConversion.hh"
#include "G4PhotoElectricEffect.hh"
#include "G4MultipleScattering.hh"
#include "G4eIonisation.hh"
#include "G4PAIPhotonModel.hh"
#include "G4eBremsstrahlung.hh"
#include "G4eplusAnnihilation.hh"
#include "G4MuIonisation.hh"
#include "G4MuBremsstrahlung.hh"
#include "G4MuPairProduction.hh"
#include "G4hIonisation.hh"
#include "G4ionIonisation.hh"
#include "G4Region.hh"
#include "G4RegionStore.hh"
#include "G4Proton.hh"
#include "G4Electron.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
PhysListEmPaiPhoton::PhysListEmPaiPhoton(const G4String& name)
: G4VPhysicsConstructor(name)
{}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
PhysListEmPaiPhoton::~PhysListEmPaiPhoton()
{}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
void PhysListEmPaiPhoton::ConstructProcess()
{
// Add standard EM Processes
const G4RegionStore* theRegionStore = G4RegionStore::GetInstance();
G4Region* gas = theRegionStore->GetRegion("VertexDetector");
theParticleIterator->reset();
while( (*theParticleIterator)() )
{
G4ParticleDefinition* particle = theParticleIterator->value();
G4ProcessManager* pmanager = particle->GetProcessManager();
G4String particleName = particle->GetParticleName();
if (particleName == "gamma")
{
pmanager->AddDiscreteProcess(new G4PhotoElectricEffect);
pmanager->AddDiscreteProcess(new G4ComptonScattering);
pmanager->AddDiscreteProcess(new G4GammaConversion);
}
else if (particleName == "e-")
{
pmanager->AddProcess(new G4MultipleScattering, -1, 1,1);
G4eIonisation* eion = new G4eIonisation();
G4PAIPhotonModel* pai = new G4PAIPhotonModel(particle,"PAIModel");
eion->AddEmModel(0,pai,pai,gas);
pmanager->AddProcess(eion,-1, 2, 2);
pmanager->AddProcess(new G4eBremsstrahlung,-1,-1,3);
}
else if (particleName == "e+")
{
pmanager->AddProcess(new G4MultipleScattering, -1, 1,1);
G4eIonisation* eion = new G4eIonisation();
G4PAIPhotonModel* pai = new G4PAIPhotonModel(particle,"PAIModel");
eion->AddEmModel(0,pai,pai,gas);
pmanager->AddProcess(eion, -1, 2,2);
pmanager->AddProcess(new G4eBremsstrahlung, -1,-1,3);
pmanager->AddProcess(new G4eplusAnnihilation, 0,-1,4);
} else if( particleName == "mu+" ||
particleName == "mu-" )
{
pmanager->AddProcess(new G4MultipleScattering,-1, 1,1);
G4MuIonisation* muion = new G4MuIonisation();
G4PAIPhotonModel* pai = new G4PAIPhotonModel(particle,"PAIModel");
muion->AddEmModel(0,pai,pai,gas);
pmanager->AddProcess(muion, -1, 2, 2);
pmanager->AddProcess(new G4MuBremsstrahlung, -1,-1,3);
pmanager->AddProcess(new G4MuPairProduction, -1,-1,4);
}
else if (particleName == "GenericIon")
{
pmanager->AddProcess(new G4MultipleScattering, -1, 1,1);
pmanager->AddProcess(new G4ionIonisation, -1, 2,2);
}
else if ( ( !particle->IsShortLived() ) &&
( particle->GetPDGCharge() != 0.0 ) &&
( particle->GetParticleName() != "chargedgeantino") )
{
pmanager->AddProcess(new G4MultipleScattering,-1,1,1);
G4hIonisation* hion = new G4hIonisation();
G4PAIPhotonModel* pai = new G4PAIPhotonModel(particle,"PAIModel");
hion->AddEmModel(0,pai,pai,gas);
pmanager->AddProcess(hion, -1,2,2);
}
}
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: PhysicsList.cc,v 1.14 2007/09/26 10:23:17 vnivanch Exp $
// GEANT4 tag $Name: geant4-09-01 $
// $Id: PhysicsList.cc,v 1.16 2008/12/05 17:46:12 vnivanch Exp $
// GEANT4 tag $Name: geant4-09-02 $
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -35,11 +35,13 @@
#include "PhysicsListMessenger.hh"
#include "G4EmStandardPhysics.hh"
#include "G4EmStandardPhysics_option1.hh"
#include "G4EmStandardPhysics_option2.hh"
#include "G4EmStandardPhysics_option3.hh"
#include "G4DecayPhysics.hh"
#include "PhysListEmModelPai.hh"
#include "PhysListEmPaiPhoton.hh"
#include "PhysListEmPAI.hh"
#include "G4PAIModel.hh"
#include "G4PAIPhotonModel.hh"
#include "G4Gamma.hh"
#include "G4Electron.hh"
@@ -68,15 +70,14 @@ PhysicsList::PhysicsList() : G4VModularPhysicsList()
pMessenger = new PhysicsListMessenger(this);
SetVerboseLevel(1);
// Decay Physics is always defined
generalPhysicsList = new G4DecayPhysics();
// EM physics
emName = G4String("emstandard");
emPhysicsList = new G4EmStandardPhysics();
emPhysicsList = new G4EmStandardPhysics(1);
SetVerboseLevel(1);
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -103,6 +104,7 @@ void PhysicsList::ConstructProcess()
{
AddTransportation();
emPhysicsList->ConstructProcess();
em_config.AddModels();
generalPhysicsList->ConstructProcess();
for(size_t i=0; i<hadronPhys.size(); i++) hadronPhys[i]->ConstructProcess();
AddStepMax();
@@ -112,35 +114,43 @@ void PhysicsList::ConstructProcess()
void PhysicsList::AddPhysicsList(const G4String& name)
{
if (verboseLevel>-1) {
if (verboseLevel>1) {
G4cout << "PhysicsList::AddPhysicsList: <" << name << ">" << G4endl;
}
if (name == emName) return;
if (name == emName) {
return;
} else if (name == "emstandard_opt1") {
if (name == "pai")
{
emName = name;
delete emPhysicsList;
emPhysicsList = new PhysListEmModelPai(name);
G4cout<<"PhysListEmModelPai is called"<<G4endl;
}
else if (name == "pai_photon")
{
emPhysicsList = new G4EmStandardPhysics_option1();
} else if (name == "emstandard_opt2") {
emName = name;
delete emPhysicsList;
emPhysicsList = new PhysListEmPaiPhoton(name);
G4cout<<"PhysListEmModelPaiPhoton is called"<<G4endl;
}
else if (name == "pai_brem")
{
emPhysicsList = new G4EmStandardPhysics_option2();
} else if (name == "emstandard_opt3") {
emName = name;
delete emPhysicsList;
emPhysicsList = new PhysListEmPAI(name);
G4cout<<"PhysListEmPAI is called (bremsstrahlung dedx added)"<<G4endl;
}
else
{
emPhysicsList = new G4EmStandardPhysics_option3();
} else if (name == "pai") {
emName = name;
AddPAIModel(name);
} else if (name == "pai_photon") {
emName = name;
AddPAIModel(name);
} else {
G4cout << "PhysicsList::AddPhysicsList: <" << name << ">"
<< " is not defined"
<< G4endl;
@@ -155,7 +165,6 @@ void PhysicsList::AddStepMax()
stepMaxProcess = new StepMax();
theParticleIterator->reset();
while ((*theParticleIterator)())
{
G4ParticleDefinition* particle = theParticleIterator->value();
@@ -215,3 +224,45 @@ void PhysicsList::SetCutForPositron(G4double cut)
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
void PhysicsList::AddPAIModel(const G4String& modname)
{
theParticleIterator->reset();
while ((*theParticleIterator)())
{
G4ParticleDefinition* particle = theParticleIterator->value();
G4String partname = particle->GetParticleName();
if(partname == "e-" || partname == "e+") {
NewPAIModel(particle, modname, "eIoni");
} else if(partname == "mu-" || partname == "mu+") {
NewPAIModel(particle, modname, "muIoni");
} else if(partname == "proton" ||
partname == "pi+" ||
partname == "pi-"
) {
NewPAIModel(particle, modname, "hIoni");
}
}
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
void PhysicsList::NewPAIModel(const G4ParticleDefinition* part,
const G4String& modname,
const G4String& procname)
{
G4String partname = part->GetParticleName();
if(modname == "pai") {
G4PAIModel* pai = new G4PAIModel(part,"PAIModel");
em_config.SetExtraEmModel(partname,procname,pai,"VertexDetector",
0.0,100.*TeV,pai);
} else if(modname == "pai_photon") {
G4PAIPhotonModel* pai = new G4PAIPhotonModel(part,"PAIPhotModel");
em_config.SetExtraEmModel(partname,procname,pai,"VertexDetector",
0.0,100.*TeV,pai);
}
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -25,7 +25,7 @@
//
//
// $Id: PhysicsListMessenger.cc,v 1.2 2006/06/29 17:00:47 gunter Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
//
@@ -24,7 +24,7 @@
// ********************************************************************
//
// $Id: StepMax.cc,v 1.3 2006/06/29 17:00:49 gunter Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -24,7 +24,7 @@
// ********************************************************************
//
// $Id: StepMaxMessenger.cc,v 1.2 2006/06/29 17:00:52 gunter Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......