Import Geant4 11.1.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2022-07-01 10:44:02 +02:00
parent b3bf75a2a1
commit c07cea1fe0
2172 changed files with 183300 additions and 123938 deletions
@@ -293,7 +293,7 @@ G4double G4AdjointBremsstrahlungModel::DiffCrossSectionPerVolumePrimToSecond(
{
if(!fIsDirectModelInitialised)
{
fEmModelManagerForFwdModels->Initialise(fElectron, fGamma, 1., 0);
fEmModelManagerForFwdModels->Initialise(fElectron, fGamma, 0);
fIsDirectModelInitialised = true;
}
return G4VEmAdjointModel::DiffCrossSectionPerVolumePrimToSecond(
@@ -309,7 +309,7 @@ G4double G4AdjointBremsstrahlungModel::AdjointCrossSection(
// 2.78.. == std::exp(1.)
if(!fIsDirectModelInitialised)
{
fEmModelManagerForFwdModels->Initialise(fElectron, fGamma, 1., 0);
fEmModelManagerForFwdModels->Initialise(fElectron, fGamma, 0);
fIsDirectModelInitialised = true;
}
if(fUseMatrix)
@@ -363,7 +363,7 @@ void G4AdjointCSManager::BuildTotalSigmaTables()
G4double e = aVector->Energy(l);
for(size_t k = 0; k < fForwardProcesses[i]->size(); ++k)
{
totCS += (*fForwardProcesses[i])[k]->GetLambda(e, couple);
totCS += (*fForwardProcesses[i])[k]->GetCrossSection(e, couple);
}
for(size_t k = 0; k < fForwardLossProcesses[i]->size(); ++k)
{
@@ -196,7 +196,7 @@ void G4AdjointComptonModel::RapidSampleSecondaries(
if(diffCS > 0.)
diffCS /= fDirectCS; // here we have the normalised diffCS
// And we remultiply by the lambda of the forward process
diffCS *= fDirectProcess->GetLambda(gammaE1, fCurrentCouple);
diffCS *= fDirectProcess->GetCrossSection(gammaE1, fCurrentCouple);
w_corr *= diffCS / diffCSUsed;