Import Geant4 8.3.0 source tree
This commit is contained in:
@@ -23,8 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: PhysicsList.cc,v 1.17 2006/12/13 15:42:28 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// $Id: PhysicsList.cc,v 1.18 2007/03/20 18:50:53 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
@@ -36,9 +36,12 @@
|
||||
#include "PhysListEmStandardSS.hh"
|
||||
#include "PhysListEmLivermore.hh"
|
||||
#include "PhysListEmPenelope.hh"
|
||||
#include "PhysListHadronElastic.hh"
|
||||
#include "PhysListBinaryCascade.hh"
|
||||
#include "PhysListIonBinaryCascade.hh"
|
||||
|
||||
#include "G4HadronElasticPhysics.hh"
|
||||
#include "G4HadronHElasticPhysics.hh"
|
||||
#include "G4HadronQElasticPhysics.hh"
|
||||
#include "G4HadronInelasticQBBC.hh"
|
||||
#include "G4IonBinaryCascadePhysics.hh"
|
||||
|
||||
#include "G4LossTableManager.hh"
|
||||
#include "G4UnitsTable.hh"
|
||||
@@ -80,6 +83,10 @@ PhysicsList::PhysicsList() : G4VModularPhysicsList()
|
||||
// EM physics
|
||||
emName = G4String("standard");
|
||||
emPhysicsList = new PhysListEmStandard(emName);
|
||||
|
||||
helIsRegisted = false;
|
||||
bicIsRegisted = false;
|
||||
biciIsRegisted = false;
|
||||
|
||||
stepMaxProcess = 0;
|
||||
|
||||
@@ -226,19 +233,27 @@ void PhysicsList::AddPhysicsList(const G4String& name)
|
||||
emName = name;
|
||||
delete emPhysicsList;
|
||||
emPhysicsList = new PhysListEmPenelope(name);
|
||||
|
||||
} else if (name == "elastic" && !helIsRegisted) {
|
||||
hadronPhys.push_back( new G4HadronElasticPhysics(name));
|
||||
helIsRegisted = true;
|
||||
|
||||
} else if (name == "HElastic" && !helIsRegisted) {
|
||||
hadronPhys.push_back( new G4HadronHElasticPhysics(name));
|
||||
helIsRegisted = true;
|
||||
|
||||
} else if (name == "QElastic" && !helIsRegisted) {
|
||||
hadronPhys.push_back( new G4HadronQElasticPhysics(name));
|
||||
helIsRegisted = true;
|
||||
|
||||
} else if (name == "binary" && !bicIsRegisted) {
|
||||
hadronPhys.push_back(new G4HadronInelasticQBBC());
|
||||
bicIsRegisted = true;
|
||||
|
||||
} else if (name == "binary_ion" && !biciIsRegisted) {
|
||||
hadronPhys.push_back(new G4IonBinaryCascadePhysics());
|
||||
biciIsRegisted = true;
|
||||
|
||||
} else if (name == "elastic") {
|
||||
|
||||
hadronPhys.push_back( new PhysListHadronElastic(name));
|
||||
|
||||
} else if (name == "binary") {
|
||||
|
||||
hadronPhys.push_back( new PhysListBinaryCascade(name));
|
||||
|
||||
} else if (name == "binary_ion") {
|
||||
|
||||
hadronPhys.push_back( new PhysListIonBinaryCascade(name));
|
||||
|
||||
} else {
|
||||
|
||||
G4cout << "PhysicsList::AddPhysicsList: <" << name << ">"
|
||||
|
||||
Reference in New Issue
Block a user