Import Geant4 11.2.0 source tree

This commit is contained in:
Gabriele Cosmo
2023-12-08 10:43:34 +01:00
parent dd1f179cda
commit 860a2b92bf
3962 changed files with 139318 additions and 164259 deletions
@@ -186,7 +186,7 @@ void G4HadProcesses::BuildNeutronInelasticAndCapture(G4HadronicProcess* nInel)
G4HadronicProcess* nCap = new G4NeutronCaptureProcess("nCapture");
nCap->RegisterMe(new G4NeutronRadCapture());
if(useNeutronGeneral) {
if ( useNeutronGeneral ) {
auto nGen = G4PhysListUtil::FindNeutronGeneralProcess();
nGen->SetInelasticProcess(nInel);
nGen->SetCaptureProcess(nCap);
@@ -196,9 +196,9 @@ void G4HadProcesses::BuildNeutronInelasticAndCapture(G4HadronicProcess* nInel)
nInel->AddDataSet(new G4NeutronInelasticXS());
ph->RegisterProcess(nInel, neutron);
ph->RegisterProcess(nCap, neutron);
if( param->ApplyFactorXS() ) {
nInel->MultiplyCrossSectionBy( param->XSFactorNucleonInelastic() );
}
}
if ( param->ApplyFactorXS() ) {
nInel->MultiplyCrossSectionBy( param->XSFactorNucleonInelastic() );
}
}
@@ -207,7 +207,7 @@ void G4HadProcesses::BuildNeutronElastic(G4HadronicProcess* nEl)
G4HadronicParameters* param = G4HadronicParameters::Instance();
G4bool useNeutronGeneral = param->EnableNeutronGeneralProcess();
if(useNeutronGeneral) {
if ( useNeutronGeneral ) {
auto nGen = G4PhysListUtil::FindNeutronGeneralProcess();
nGen->SetElasticProcess(nEl);
} else {
@@ -215,8 +215,8 @@ void G4HadProcesses::BuildNeutronElastic(G4HadronicProcess* nEl)
nEl->AddDataSet(new G4NeutronElasticXS());
G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
ph->RegisterProcess(nEl, neutron);
if( param->ApplyFactorXS() ) {
nEl->MultiplyCrossSectionBy( param->XSFactorNucleonElastic() );
}
}
if ( param->ApplyFactorXS() ) {
nEl->MultiplyCrossSectionBy( param->XSFactorNucleonElastic() );
}
}