Import Geant4 11.0.2 source tree

This commit is contained in:
Gabriele Cosmo
2022-05-25 15:50:57 +02:00
parent de4f28d823
commit b3bf75a2a1
341 changed files with 93127 additions and 39343 deletions
@@ -216,7 +216,7 @@ void G4ANuElNucleusCcModel::InitialiseModel()
/////////////////////////////////////////////////////////
G4bool G4ANuElNucleusCcModel::IsApplicable(const G4HadProjectile & aPart,
G4Nucleus & targetNucleus)
G4Nucleus & )
{
G4bool result = false;
G4String pName = aPart.GetDefinition()->GetParticleName();
@@ -229,8 +229,6 @@ G4bool G4ANuElNucleusCcModel::IsApplicable(const G4HadProjectile & aPart,
{
result = true;
}
G4int Z = targetNucleus.GetZ_asInt();
Z *= 1;
return result;
}
@@ -196,7 +196,7 @@ void G4ANuElNucleusNcModel::InitialiseModel()
/////////////////////////////////////////////////////////
G4bool G4ANuElNucleusNcModel::IsApplicable(const G4HadProjectile & aPart,
G4Nucleus & targetNucleus)
G4Nucleus & )
{
G4bool result = false;
G4String pName = aPart.GetDefinition()->GetParticleName();
@@ -209,8 +209,6 @@ G4bool G4ANuElNucleusNcModel::IsApplicable(const G4HadProjectile & aPart,
{
result = true;
}
G4int Z = targetNucleus.GetZ_asInt();
Z *= 1;
return result;
}
@@ -214,7 +214,7 @@ void G4ANuMuNucleusCcModel::InitialiseModel()
/////////////////////////////////////////////////////////
G4bool G4ANuMuNucleusCcModel::IsApplicable(const G4HadProjectile & aPart,
G4Nucleus & targetNucleus)
G4Nucleus & )
{
G4bool result = false;
G4String pName = aPart.GetDefinition()->GetParticleName();
@@ -226,8 +226,6 @@ G4bool G4ANuMuNucleusCcModel::IsApplicable(const G4HadProjectile & aPart,
{
result = true;
}
G4int Z = targetNucleus.GetZ_asInt();
Z *= 1;
return result;
}
@@ -197,7 +197,7 @@ void G4ANuMuNucleusNcModel::InitialiseModel()
/////////////////////////////////////////////////////////
G4bool G4ANuMuNucleusNcModel::IsApplicable(const G4HadProjectile & aPart,
G4Nucleus & targetNucleus)
G4Nucleus & )
{
G4bool result = false;
G4String pName = aPart.GetDefinition()->GetParticleName();
@@ -209,8 +209,6 @@ G4bool G4ANuMuNucleusNcModel::IsApplicable(const G4HadProjectile & aPart,
{
result = true;
}
G4int Z = targetNucleus.GetZ_asInt();
Z *= 1;
return result;
}
@@ -223,8 +223,8 @@ G4MuonVDNuclearModel::CalculateEMVertex(const G4HadProjectile& aTrack,
G4double y2 = 0.5*yy*yy;
G4double y3 = y1+y2;
G4double t;
G4double rej;
G4double t = 0.0;
G4double rej = 0.0;
// Now sample t
G4int ntry = 0;
@@ -96,7 +96,7 @@ void G4NeutrinoElectronCcModel::ModelDescription(std::ostream& outFile) const
/////////////////////////////////////////////////////////
G4bool G4NeutrinoElectronCcModel::IsApplicable(const G4HadProjectile & aPart,
G4Nucleus & targetNucleus)
G4Nucleus & )
{
G4bool result = false;
G4String pName = aPart.GetDefinition()->GetParticleName();
@@ -115,8 +115,6 @@ G4bool G4NeutrinoElectronCcModel::IsApplicable(const G4HadProjectile & aPart,
{
result = true;
}
G4int Z = targetNucleus.GetZ_asInt();
Z *= 1;
return result;
}
@@ -126,7 +124,7 @@ G4bool G4NeutrinoElectronCcModel::IsApplicable(const G4HadProjectile & aPart,
//
G4HadFinalState* G4NeutrinoElectronCcModel::ApplyYourself(
const G4HadProjectile& aTrack, G4Nucleus& targetNucleus)
const G4HadProjectile& aTrack, G4Nucleus& )
{
theParticleChange.Clear();
@@ -197,9 +195,6 @@ G4HadFinalState* G4NeutrinoElectronCcModel::ApplyYourself(
}
if(aNu) { theParticleChange.AddSecondary( aNu, secID ); }
if(aLept) { theParticleChange.AddSecondary( aLept, secID ); }
G4int Z = targetNucleus.GetZ_asInt();
Z *= 1;
return &theParticleChange;
}
@@ -67,7 +67,6 @@
// #include "G4QGSMFragmentation.hh"
// #include "G4QGSParticipants.hh"
#include "G4MuonMinus.hh"
#include "G4MuonPlus.hh"
#include "G4Nucleus.hh"
@@ -205,7 +204,7 @@ void G4NeutrinoNucleusModel::ModelDescription(std::ostream& outFile) const
/////////////////////////////////////////////////////////
G4bool G4NeutrinoNucleusModel::IsApplicable(const G4HadProjectile & aPart,
G4Nucleus & targetNucleus)
G4Nucleus & )
{
G4bool result = false;
G4String pName = aPart.GetDefinition()->GetParticleName();
@@ -217,8 +216,6 @@ G4bool G4NeutrinoNucleusModel::IsApplicable(const G4HadProjectile & aPart,
{
result = true;
}
G4int Z = targetNucleus.GetZ_asInt();
Z *= 1;
return result;
}
@@ -580,21 +577,17 @@ void G4NeutrinoNucleusModel::RecoilDeexcitation( G4Fragment& fragment)
if( products != nullptr )
{
for( auto iter = products->cbegin(); iter != products->cend(); ++iter )
// for( auto & prod : products ) // prod = (*iter) is the pointer to final hadronic particle
for( auto & prod : *products ) // prod is the pointer to final hadronic particle
{
theParticleChange.AddSecondary(new G4DynamicParticle( (*iter)->GetDefinition(),
(*iter)->GetTotalEnergy(),
(*iter)->GetMomentum() ), fSecID );
// delete prod;
theParticleChange.AddSecondary(new G4DynamicParticle( prod->GetDefinition(),
prod->GetTotalEnergy(),
prod->GetMomentum() ), fSecID );
delete prod;
}
// delete products;
products->clear();
delete products;
}
return;
}
///////////////////////////////////////////
//
// Fragmentation of lvX directly to pion and recoil nucleus (A,Z): fLVh + fLVt -> pi + A*
@@ -216,7 +216,7 @@ void G4NuElNucleusCcModel::InitialiseModel()
/////////////////////////////////////////////////////////
G4bool G4NuElNucleusCcModel::IsApplicable(const G4HadProjectile & aPart,
G4Nucleus & targetNucleus)
G4Nucleus & )
{
G4bool result = false;
G4String pName = aPart.GetDefinition()->GetParticleName();
@@ -229,8 +229,6 @@ G4bool G4NuElNucleusCcModel::IsApplicable(const G4HadProjectile & aPart,
{
result = true;
}
G4int Z = targetNucleus.GetZ_asInt();
Z *= 1;
return result;
}
@@ -196,7 +196,7 @@ void G4NuElNucleusNcModel::InitialiseModel()
/////////////////////////////////////////////////////////
G4bool G4NuElNucleusNcModel::IsApplicable(const G4HadProjectile & aPart,
G4Nucleus & targetNucleus)
G4Nucleus & )
{
G4bool result = false;
G4String pName = aPart.GetDefinition()->GetParticleName();
@@ -209,8 +209,6 @@ G4bool G4NuElNucleusNcModel::IsApplicable(const G4HadProjectile & aPart,
{
result = true;
}
G4int Z = targetNucleus.GetZ_asInt();
Z *= 1;
return result;
}
@@ -215,7 +215,7 @@ void G4NuMuNucleusCcModel::InitialiseModel()
/////////////////////////////////////////////////////////
G4bool G4NuMuNucleusCcModel::IsApplicable(const G4HadProjectile & aPart,
G4Nucleus & targetNucleus)
G4Nucleus & )
{
G4bool result = false;
G4String pName = aPart.GetDefinition()->GetParticleName();
@@ -227,8 +227,6 @@ G4bool G4NuMuNucleusCcModel::IsApplicable(const G4HadProjectile & aPart,
{
result = true;
}
G4int Z = targetNucleus.GetZ_asInt();
Z *= 1;
return result;
}
@@ -197,7 +197,7 @@ void G4NuMuNucleusNcModel::InitialiseModel()
/////////////////////////////////////////////////////////
G4bool G4NuMuNucleusNcModel::IsApplicable(const G4HadProjectile & aPart,
G4Nucleus & targetNucleus)
G4Nucleus & )
{
G4bool result = false;
G4String pName = aPart.GetDefinition()->GetParticleName();
@@ -209,8 +209,6 @@ G4bool G4NuMuNucleusNcModel::IsApplicable(const G4HadProjectile & aPart,
{
result = true;
}
G4int Z = targetNucleus.GetZ_asInt();
Z *= 1;
return result;
}