Import Geant4 10.5.0 source tree
This commit is contained in:
@@ -23,7 +23,6 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4PhysListFactory.cc 107319 2017-11-08 16:29:22Z gcosmo $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
@@ -70,6 +69,8 @@
|
||||
#include "G4EmStandardPhysics_option4.hh"
|
||||
#include "G4EmStandardPhysicsGS.hh"
|
||||
#include "G4EmStandardPhysicsSS.hh"
|
||||
#include "G4EmStandardPhysicsWVI.hh"
|
||||
#include "G4EmLowEPPhysics.hh"
|
||||
#include "G4EmLivermorePhysics.hh"
|
||||
#include "G4EmPenelopePhysics.hh"
|
||||
#include "G4PhysListFactoryMessenger.hh"
|
||||
@@ -89,8 +90,9 @@ G4PhysListFactory::G4PhysListFactory()
|
||||
listnames_hadr.push_back(ss[i]);
|
||||
}
|
||||
|
||||
nlists_em = 9;
|
||||
G4String s1[9] = {"","_EMV","_EMX","_EMY","_EMZ","_LIV","_PEN","__GS","__SS"};
|
||||
nlists_em = 12;
|
||||
G4String s1[12] = {"","_EMV","_EMX","_EMY","_EMZ","_LIV","_PEN",
|
||||
"__GS","__SS","_EM0","_WVI","__LE"};
|
||||
for(size_t i=0; i<nlists_em; ++i) {
|
||||
listnames_em.push_back(s1[i]);
|
||||
}
|
||||
@@ -202,6 +204,12 @@ G4PhysListFactory::GetReferencePhysList(const G4String& name)
|
||||
p->ReplacePhysics(new G4EmStandardPhysicsGS(verbose));
|
||||
} else if(8 == em_opt) {
|
||||
p->ReplacePhysics(new G4EmStandardPhysicsSS(verbose));
|
||||
} else if(9 == em_opt) {
|
||||
p->ReplacePhysics(new G4EmStandardPhysics(verbose));
|
||||
} else if(10 == em_opt) {
|
||||
p->ReplacePhysics(new G4EmStandardPhysicsWVI(verbose));
|
||||
} else if(11 == em_opt) {
|
||||
p->ReplacePhysics(new G4EmLowEPPhysics(verbose));
|
||||
}
|
||||
}
|
||||
p->SetVerboseLevel(ver);
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4PhysListFactoryAlt.cc 83151 2014-08-06 16:22:30Z klg $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4PhysListFactoryMessenger.cc 66704 2013-01-10 18:20:17Z gunter $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id:
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
@@ -72,6 +71,7 @@ G4PhysListRegistry* G4PhysListRegistry::Instance()
|
||||
}
|
||||
|
||||
// common EM overrides
|
||||
theInstance->AddPhysicsExtension("EM0","G4EmStandardPhysics");
|
||||
theInstance->AddPhysicsExtension("EMV","G4EmStandardPhysics_option1");
|
||||
theInstance->AddPhysicsExtension("EMX","G4EmStandardPhysics_option2");
|
||||
theInstance->AddPhysicsExtension("EMY","G4EmStandardPhysics_option3");
|
||||
@@ -80,7 +80,7 @@ G4PhysListRegistry* G4PhysListRegistry::Instance()
|
||||
theInstance->AddPhysicsExtension("PEN","G4EmPenelopePhysics");
|
||||
// the GS EM extension originally required double underscores
|
||||
// support either one or two as __GS is confusing to users
|
||||
// same for __SS
|
||||
// same for __SS
|
||||
theInstance->AddPhysicsExtension("GS","G4EmStandardPhysicsGS");
|
||||
theInstance->AddPhysicsExtension("_GS","G4EmStandardPhysicsGS");
|
||||
theInstance->AddPhysicsExtension("SS","G4EmStandardPhysicsSS");
|
||||
@@ -436,4 +436,3 @@ void G4PhysListRegistry::PrintAvailablePhysLists() const
|
||||
<< " to use ReplacePhysics() (\"_\") or RegisterPhysics() (\"+\")."
|
||||
<< G4endl;
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: QBBC.cc 66892 2013-01-17 10:57:59Z gunter $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
@@ -49,7 +48,7 @@
|
||||
|
||||
#include "G4DecayPhysics.hh"
|
||||
#include "G4EmStandardPhysics.hh"
|
||||
#include "G4EmStandardPhysics_option2.hh"
|
||||
#include "G4EmStandardPhysics_option4.hh"
|
||||
#include "G4EmExtraPhysics.hh"
|
||||
#include "G4StoppingPhysics.hh"
|
||||
|
||||
@@ -59,14 +58,14 @@
|
||||
#include "G4HadronElasticPhysicsXS.hh"
|
||||
#include "G4HadronElasticPhysicsHP.hh"
|
||||
#include "G4ChargeExchangePhysics.hh"
|
||||
#include "G4IonPhysics.hh"
|
||||
#include "G4IonPhysicsXS.hh"
|
||||
#include "G4IonElasticPhysics.hh"
|
||||
#include "G4NeutronTrackingCut.hh"
|
||||
|
||||
QBBC::QBBC( G4int ver, const G4String&)
|
||||
{
|
||||
G4DataQuestionaire it(photon, neutronxs);
|
||||
G4cout << "<<< Reference Physics List QBBC "
|
||||
<<G4endl;
|
||||
G4cout << "<<< Reference Physics List QBBC " <<G4endl;
|
||||
|
||||
defaultCutValue = 0.7*mm;
|
||||
SetVerboseLevel(ver);
|
||||
@@ -85,7 +84,9 @@ QBBC::QBBC( G4int ver, const G4String&)
|
||||
|
||||
RegisterPhysics( new G4StoppingPhysics(ver) );
|
||||
|
||||
RegisterPhysics( new G4IonPhysics(ver) );
|
||||
RegisterPhysics( new G4IonPhysicsXS(ver) );
|
||||
|
||||
RegisterPhysics( new G4IonElasticPhysics(ver) );
|
||||
|
||||
RegisterPhysics( new G4HadronInelasticQBBC(ver));
|
||||
|
||||
@@ -96,8 +97,3 @@ QBBC::QBBC( G4int ver, const G4String&)
|
||||
QBBC::~QBBC()
|
||||
{}
|
||||
|
||||
void QBBC::SetCuts()
|
||||
{
|
||||
SetCutsWithDefault();
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,103 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
// ClassName: QGSP_BIC
|
||||
//
|
||||
// Author: 2002 J.P. Wellisch
|
||||
//
|
||||
// Modified:
|
||||
// 23.11.2005 G.Folger: migration to non static particles
|
||||
// 30.11.2005 G.Folger: Register EmStandard first, split Em Standard and Extra
|
||||
// 02.12.2005 V.Ivanchenko: rename components
|
||||
// 08.06.2006 V.Ivanchenko: migration to CHIPS stopping
|
||||
// 15.06.2006 G.Folger: Migrate to HadronElasticPhysics using improved elastic
|
||||
// 20.06.2006 V.Ivanchenko: add ion Binary Cascade
|
||||
// 20.11.2006 G.Folger: add Tracking Cut for neutrons
|
||||
// 26.04.2007 G.Folger: Enable quasielastic for QGS string model
|
||||
// 16.05.2007 V.Ivanchenko: rename EM builders
|
||||
// 16.08.2010 H.Kurashige: Remove inclusion of G4ParticleWithCuts
|
||||
// 16.10.2012 A.Ribon: Use new default stopping and ion physics.
|
||||
// 15.10.2018 V.Ivanchenko: update and move to src
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
#include "QGSP_BIC.hh"
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "G4DecayPhysics.hh"
|
||||
#include "G4EmStandardPhysics.hh"
|
||||
#include "G4EmExtraPhysics.hh"
|
||||
#include "G4IonPhysics.hh"
|
||||
#include "G4IonElasticPhysics.hh"
|
||||
#include "G4StoppingPhysics.hh"
|
||||
#include "G4HadronElasticPhysics.hh"
|
||||
#include "G4NeutronTrackingCut.hh"
|
||||
|
||||
#include "G4DataQuestionaire.hh"
|
||||
#include "G4HadronPhysicsQGSP_BIC.hh"
|
||||
|
||||
QGSP_BIC::QGSP_BIC(G4int ver)
|
||||
{
|
||||
G4DataQuestionaire it(photon);
|
||||
G4cout << "<<< Geant4 Physics List simulation engine: QGSP_BIC"<<G4endl;
|
||||
G4cout <<G4endl;
|
||||
|
||||
this->defaultCutValue = 0.7*CLHEP::mm;
|
||||
this->SetVerboseLevel(ver);
|
||||
|
||||
// EM Physics
|
||||
this->RegisterPhysics( new G4EmStandardPhysics(ver) );
|
||||
|
||||
// Synchroton Radiation & GN Physics
|
||||
this->RegisterPhysics( new G4EmExtraPhysics(ver) );
|
||||
|
||||
// Decays
|
||||
this->RegisterPhysics( new G4DecayPhysics(ver) );
|
||||
|
||||
// Hadron Elastic scattering
|
||||
this->RegisterPhysics( new G4HadronElasticPhysics(ver) );
|
||||
|
||||
// Hadron Physics
|
||||
this->RegisterPhysics( new G4HadronPhysicsQGSP_BIC(ver));
|
||||
|
||||
// Stopping Physics
|
||||
this->RegisterPhysics( new G4StoppingPhysics(ver) );
|
||||
|
||||
// Ion Physics
|
||||
this->RegisterPhysics( new G4IonElasticPhysics(ver) );
|
||||
this->RegisterPhysics( new G4IonPhysics(ver));
|
||||
|
||||
// Neutron tracking cut
|
||||
this->RegisterPhysics( new G4NeutronTrackingCut(ver));
|
||||
|
||||
}
|
||||
|
||||
QGSP_BIC::~QGSP_BIC()
|
||||
{}
|
||||
|
||||
@@ -0,0 +1,86 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
// ClassName: QGSP_BIC_AllHP
|
||||
//
|
||||
// Author: 2013 P. Arce
|
||||
//
|
||||
// based on QGSP_BIC_HP
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
#include "QGSP_BIC_AllHP.hh"
|
||||
#include <CLHEP/Units/SystemOfUnits.h>
|
||||
#include "G4DecayPhysics.hh"
|
||||
#include "G4RadioactiveDecayPhysics.hh"
|
||||
#include "G4EmStandardPhysics_option4.hh"
|
||||
#include "G4EmStandardPhysics.hh"
|
||||
#include "G4EmExtraPhysics.hh"
|
||||
#include "G4IonPhysicsPHP.hh"
|
||||
#include "G4IonElasticPhysics.hh"
|
||||
#include "G4StoppingPhysics.hh"
|
||||
#include "G4HadronElasticPhysicsPHP.hh"
|
||||
|
||||
#include "G4DataQuestionaire.hh"
|
||||
#include "G4HadronPhysicsQGSP_BIC_AllHP.hh"
|
||||
|
||||
QGSP_BIC_AllHP::QGSP_BIC_AllHP(G4int ver)
|
||||
{
|
||||
G4DataQuestionaire it(photon);
|
||||
G4cout << "<<< Geant4 Physics List simulation engine: QGSP_BIC_AllHP"<<G4endl;
|
||||
G4cout <<G4endl;
|
||||
|
||||
this->defaultCutValue = 0.7*CLHEP::mm;
|
||||
this->SetVerboseLevel(ver);
|
||||
|
||||
// EM Physics
|
||||
this->RegisterPhysics( new G4EmStandardPhysics_option4(ver) );
|
||||
|
||||
// Synchroton Radiation & GN Physics
|
||||
this->RegisterPhysics( new G4EmExtraPhysics(ver) );
|
||||
|
||||
// Decays
|
||||
this->RegisterPhysics( new G4DecayPhysics(ver) );
|
||||
this->RegisterPhysics( new G4RadioactiveDecayPhysics(ver) );
|
||||
|
||||
// Hadron Elastic scattering
|
||||
this->RegisterPhysics( new G4HadronElasticPhysicsPHP(ver) );
|
||||
|
||||
// Hadron Physics
|
||||
this->RegisterPhysics( new G4HadronPhysicsQGSP_BIC_AllHP(ver));
|
||||
|
||||
// Stopping Physics
|
||||
this->RegisterPhysics( new G4StoppingPhysics(ver) );
|
||||
|
||||
// Ion Physics
|
||||
this->RegisterPhysics( new G4IonElasticPhysics(ver) );
|
||||
this->RegisterPhysics( new G4IonPhysicsPHP(ver));
|
||||
|
||||
}
|
||||
|
||||
QGSP_BIC_AllHP::~QGSP_BIC_AllHP()
|
||||
{}
|
||||
@@ -0,0 +1,93 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
// ClassName: QGSP_BIC_HP
|
||||
//
|
||||
// Author: 2006 G.Folger
|
||||
//
|
||||
// based on QGSP_BIC
|
||||
// Modified:
|
||||
// 26.04.2007 G.Folger: Enable quasielastic for QGS string model
|
||||
// 16.05.2007 V.Ivanchenko: rename EM builders
|
||||
// 04.06.2010 G.Folger: Use new ctor for builders
|
||||
// 16.08.2010 H.Kurashige: Remove inclusion of G4ParticleWithCuts
|
||||
// 16.10.2012 A.Ribon: Use new default stopping and ion physics
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
#include "QGSP_BIC_HP.hh"
|
||||
|
||||
#include "G4DecayPhysics.hh"
|
||||
#include "G4RadioactiveDecayPhysics.hh"
|
||||
#include "G4EmStandardPhysics_option4.hh"
|
||||
#include "G4EmExtraPhysics.hh"
|
||||
#include "G4IonPhysics.hh"
|
||||
#include "G4IonElasticPhysics.hh"
|
||||
#include "G4StoppingPhysics.hh"
|
||||
#include "G4HadronElasticPhysicsHP.hh"
|
||||
|
||||
#include "G4DataQuestionaire.hh"
|
||||
#include "G4HadronPhysicsQGSP_BIC_HP.hh"
|
||||
|
||||
QGSP_BIC_HP::QGSP_BIC_HP(G4int ver)
|
||||
{
|
||||
G4DataQuestionaire it(photon, neutron);
|
||||
G4cout << "<<< Geant4 Physics List simulation engine: QGSP_BIC_HP"<<G4endl;
|
||||
G4cout <<G4endl;
|
||||
|
||||
this->defaultCutValue = 0.7*CLHEP::mm;
|
||||
this->SetVerboseLevel(ver);
|
||||
|
||||
// EM Physics
|
||||
this->RegisterPhysics( new G4EmStandardPhysics_option4(ver) );
|
||||
|
||||
// Synchroton Radiation & GN Physics
|
||||
this->RegisterPhysics( new G4EmExtraPhysics(ver) );
|
||||
|
||||
// Decays
|
||||
this->RegisterPhysics( new G4DecayPhysics(ver) );
|
||||
this->RegisterPhysics( new G4RadioactiveDecayPhysics(ver) );
|
||||
|
||||
// Hadron Elastic scattering
|
||||
this->RegisterPhysics( new G4HadronElasticPhysicsHP(ver) );
|
||||
|
||||
// Hadron Physics
|
||||
this->RegisterPhysics( new G4HadronPhysicsQGSP_BIC_HP(ver));
|
||||
|
||||
// Stopping Physics
|
||||
this->RegisterPhysics( new G4StoppingPhysics(ver) );
|
||||
|
||||
// Ion Physics
|
||||
this->RegisterPhysics( new G4IonElasticPhysics(ver) );
|
||||
this->RegisterPhysics( new G4IonPhysics(ver));
|
||||
|
||||
}
|
||||
|
||||
QGSP_BIC_HP::~QGSP_BIC_HP()
|
||||
{}
|
||||
|
||||
@@ -0,0 +1,169 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
// ClassName:
|
||||
//
|
||||
// Author: 2010 Tatsumi Koi, Gunter Folger
|
||||
//
|
||||
// created from FTFP_BERT
|
||||
//
|
||||
// Modified:
|
||||
// 05.08.2014 K.L.Genser: added provision for Hadronic Physics Variant M
|
||||
// 16.08.2010 H.Kurashige: Remove inclusion of G4ParticleWithCuts
|
||||
// 26.04.2011 T.Koi: Add G4RadioactiveDecayPhysics
|
||||
// 16.10.2012 A.Ribon: Use new default stopping
|
||||
// 07.11.2013 T.Koi: Add IonElasticPhysics, Set proton cut to 0 to generate
|
||||
// low energy recoils and activate production of fission
|
||||
// fragments
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
|
||||
#include "Shielding.hh"
|
||||
//#include <iomanip>
|
||||
|
||||
#include "globals.hh"
|
||||
//#include "G4ios.hh"
|
||||
|
||||
#include "G4DecayPhysics.hh"
|
||||
#include "G4RadioactiveDecayPhysics.hh"
|
||||
#include "G4EmParameters.hh"
|
||||
#include "G4EmStandardPhysics.hh"
|
||||
#include "G4EmStandardPhysics_option4.hh"
|
||||
#include "G4EmExtraPhysics.hh"
|
||||
#include "G4IonQMDPhysics.hh"
|
||||
#include "G4IonElasticPhysics.hh"
|
||||
#include "G4StoppingPhysics.hh"
|
||||
#include "G4HadronElasticPhysicsHP.hh"
|
||||
#include "G4HadronElasticPhysicsLEND.hh"
|
||||
#include "G4ParticleHPManager.hh"
|
||||
|
||||
#include "G4DataQuestionaire.hh"
|
||||
#include "G4HadronPhysicsShielding.hh"
|
||||
#include "G4HadronPhysicsShieldingLEND.hh"
|
||||
#include <CLHEP/Units/SystemOfUnits.h>
|
||||
|
||||
Shielding::Shielding(G4int verbose, const G4String& n_model,
|
||||
const G4String& HadrPhysVariant )
|
||||
{
|
||||
G4String LEN_model = n_model;
|
||||
size_t find = LEN_model.find("LEND__");
|
||||
G4String evaluation;
|
||||
if ( find != G4String::npos )
|
||||
{
|
||||
evaluation=LEN_model;
|
||||
evaluation.erase(0,find+6);
|
||||
LEN_model="LEND";
|
||||
}
|
||||
|
||||
G4DataQuestionaire it(photon, neutron, radioactive);
|
||||
G4cout << "<<< Geant4 Physics List simulation engine: Shielding"
|
||||
<< HadrPhysVariant << G4endl;
|
||||
if ( LEN_model=="LEND" ) G4cout <<
|
||||
"<<< LEND will be used for low energy neutron and gamma projectiles"
|
||||
<< G4endl;
|
||||
|
||||
this->defaultCutValue = 0.7*CLHEP::mm;
|
||||
this->SetVerboseLevel(verbose);
|
||||
|
||||
// EM Physics
|
||||
this->RegisterPhysics( new G4EmStandardPhysics(verbose));
|
||||
|
||||
// Synchroton Radiation & GN Physics
|
||||
G4EmExtraPhysics* emExtraPhysics = new G4EmExtraPhysics(verbose);
|
||||
if ( LEN_model == "LEND" ) {
|
||||
// Use LEND model for Gamma Nuclear
|
||||
emExtraPhysics->LENDGammaNuclear(true);
|
||||
}
|
||||
this->RegisterPhysics( emExtraPhysics );
|
||||
|
||||
// Decays
|
||||
this->RegisterPhysics( new G4DecayPhysics(verbose) );
|
||||
this->RegisterPhysics( new G4RadioactiveDecayPhysics(verbose) );
|
||||
|
||||
// Hadron Elastic scattering
|
||||
if ( LEN_model == "HP" )
|
||||
{
|
||||
this->RegisterPhysics( new G4HadronElasticPhysicsHP(verbose) );
|
||||
}
|
||||
else if ( LEN_model == "LEND" )
|
||||
{
|
||||
this->RegisterPhysics( new G4HadronElasticPhysicsLEND(verbose,evaluation));
|
||||
G4DataQuestionaire itt(lend);
|
||||
}
|
||||
else
|
||||
{
|
||||
G4cout << "Shielding Physics List: Warning!" <<G4endl;
|
||||
G4cout << "\"" << LEN_model
|
||||
<< "\" is not valid for the low energy neutorn model." <<G4endl;
|
||||
G4cout << "Neutron HP package will be used." <<G4endl;
|
||||
this->RegisterPhysics( new G4HadronElasticPhysicsHP(verbose) );
|
||||
}
|
||||
|
||||
G4VPhysicsConstructor* hpc;
|
||||
// Hadron Physics HP or LEND
|
||||
if (HadrPhysVariant == "M") {
|
||||
hpc = new G4HadronPhysicsShielding("hInelastic Shielding", verbose,
|
||||
9.5*CLHEP::GeV, 9.9*CLHEP::GeV);
|
||||
} else {
|
||||
hpc = new G4HadronPhysicsShielding("hInelastic Shielding", verbose,
|
||||
4.0*CLHEP::GeV, 5.0*CLHEP::GeV);
|
||||
}
|
||||
|
||||
if ( LEN_model == "LEND" ) {
|
||||
delete hpc;
|
||||
if (HadrPhysVariant == "M") {
|
||||
hpc = new G4HadronPhysicsShieldingLEND("hInelastic ShieldingLEND",
|
||||
verbose, 9.5*CLHEP::GeV, 9.9*CLHEP::GeV);
|
||||
} else {
|
||||
hpc = new G4HadronPhysicsShieldingLEND("hInelastic ShieldingLEND",
|
||||
verbose, 4.0*CLHEP::GeV, 5.0*CLHEP::GeV);
|
||||
}
|
||||
} else {
|
||||
//G4cout << "Shielding Physics List: Warning." <<G4endl;
|
||||
//G4cout << "Name of Low Energy Neutron model " << LEN_model
|
||||
// << " is invalid." <<G4endl;
|
||||
//G4cout << "Will use neutron HP package." <<G4endl;
|
||||
}
|
||||
this->RegisterPhysics( hpc );
|
||||
|
||||
if ( LEN_model == "HP" ) {
|
||||
//Activate prodcuton of fission fragments in neutronHP
|
||||
G4ParticleHPManager::GetInstance()->SetProduceFissionFragments( true );
|
||||
}
|
||||
|
||||
// Stopping Physics
|
||||
this->RegisterPhysics( new G4StoppingPhysics(verbose) );
|
||||
|
||||
// Ion Physics
|
||||
this->RegisterPhysics( new G4IonElasticPhysics(verbose));
|
||||
this->RegisterPhysics( new G4IonQMDPhysics(verbose));
|
||||
}
|
||||
|
||||
Shielding::~Shielding()
|
||||
{}
|
||||
Reference in New Issue
Block a user