Import Geant4 1.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 15:34:16 +02:00
parent ca1c8cb059
commit 103bda00c8
2654 changed files with 29719 additions and 20203 deletions
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4IMuBremsstrahlung.cc,v 1.2.8.1 1999/12/07 20:50:44 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4IMuBremsstrahlung.cc,v 1.2.8.1.2.2 1999/12/09 16:18:02 gcosmo Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// --------------------------------------------------------------
@@ -115,21 +115,21 @@ void G4IMuBremsstrahlung::TestOfInversion(
G4Material::GetMaterialTable();
G4int numOfMaterials = theMaterialTable->length() ;
G4cout.setf(ios::scientific, ios::floatfield) ;
G4cout.setf(G4std::ios::scientific, G4std::ios::floatfield) ;
if(printflag>1)
{
G4cout << endl;
G4cout << " particle=" << aParticleType.GetParticleName() << endl;
G4cout << "----------------------" << endl;
G4cout << G4endl;
G4cout << " particle=" << aParticleType.GetParticleName() << G4endl;
G4cout << "----------------------" << G4endl;
}
for (G4int J=0; J<numOfMaterials; J++)
{
if(printflag>1)
{
G4cout << endl;
G4cout << " material = " << (*theMaterialTable)[J]->GetName() << endl;
G4cout << G4endl;
G4cout << " material = " << (*theMaterialTable)[J]->GetName() << G4endl;
G4cout << " mat.ind.=" << J << " T Nlambda Tprime"
<< " (Tprime-T)/T(%)" << endl ;
<< " (Tprime-T)/T(%)" << G4endl ;
}
G4PhysicsLogVector* aVector ;
@@ -163,28 +163,28 @@ void G4IMuBremsstrahlung::TestOfInversion(
}
if(printflag>1)
{
G4cout << setw(18) << setprecision(6) << T << " " <<
setw(14)<< setprecision(6) << Nlambda << " " <<
setw(14) << setprecision(6) << Tprime << " " <<
setw(12) << setprecision(3) << del << endl;
G4cout << G4std::setw(18) << G4std::setprecision(6) << T << " " <<
G4std::setw(14)<< G4std::setprecision(6) << Nlambda << " " <<
G4std::setw(14) << G4std::setprecision(6) << Tprime << " " <<
G4std::setw(12) << G4std::setprecision(3) << del << G4endl;
}
}
}
if(printflag>0)
{
G4cout << endl;
G4cout << "G4IMuBremsstrahlung::TestOfInversion (T->Nlambda->Tprime) " << endl ;
G4cout << G4endl;
G4cout << "G4IMuBremsstrahlung::TestOfInversion (T->Nlambda->Tprime) " << G4endl ;
G4cout << "particle= " << aParticleType.GetParticleName() <<
" material= " << (*theMaterialTable)[J]->GetName() << endl ;
G4cout << "max (Tprime-T)/T in % =" << setw(10) << setprecision(3) << delta
" material= " << (*theMaterialTable)[J]->GetName() << G4endl ;
G4cout << "max (Tprime-T)/T in % =" << G4std::setw(10) << G4std::setprecision(3) << delta
;
G4cout << " at a kinetic energy " << setw(10) << setprecision(3) <<
Tdelta/MeV << " MeV" << endl;
G4cout << " at a kinetic energy " << G4std::setw(10) << G4std::setprecision(3) <<
Tdelta/MeV << " MeV" << G4endl;
delmean /= sum ;
G4cout << "mean rel.diff. (Tprime-T)/T=" << setw(10) <<
setprecision(3) << delmean <<
" % (mean is calculated in abs. value)" << endl;
G4cout << endl;
G4cout << "mean rel.diff. (Tprime-T)/T=" << G4std::setw(10) <<
G4std::setprecision(3) << delmean <<
" % (mean is calculated in abs. value)" << G4endl;
G4cout << G4endl;
}
}
@@ -537,7 +537,7 @@ void G4IMuBremsstrahlung::BuildInverseNlambdaTable(
// inverse can be built for "meaningful" cut value only!
if(Smallest >= Biggest)
{
G4cout << endl ;
G4cout << G4endl ;
G4Exception(
"Cut value is too big , smaller value should be used !");
}
@@ -1185,6 +1185,6 @@ G4Element* G4IMuBremsstrahlung::SelectRandomAtom(G4Material* aMaterial) const
for ( G4int i=0; i < NumberOfElements; i++ )
if (rval <= (*PartialSumSigma(Index))(i)) return ((*theElementVector)(i));
G4cout << " WARNING !!! - The Material '"<< aMaterial->GetName()
<< "' has no elements, NULL pointer returned." << endl;
<< "' has no elements, NULL pointer returned." << G4endl;
return NULL;
}
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G4IMuEnergyLoss.cc,v 1.3.6.1 1999/12/07 20:50:44 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// GEANT4 tag $Name: geant4-01-01 $
//
// $Id:
// --------------------------------------------------------------
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4IMuIonisation.cc,v 1.2.8.1 1999/12/07 20:50:44 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4IMuIonisation.cc,v 1.2.8.1.2.2 1999/12/09 16:18:02 gcosmo Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// --------------------------------------------------------------
@@ -121,21 +121,21 @@ void G4IMuIonisation::TestOfInversion(
G4Material::GetMaterialTable();
G4int numOfMaterials = theMaterialTable->length() ;
G4cout.setf(ios::scientific, ios::floatfield) ;
G4cout.setf(G4std::ios::scientific, G4std::ios::floatfield) ;
if(printflag>1)
{
G4cout << endl;
G4cout << " particle=" << aParticleType.GetParticleName() << endl;
G4cout << "----------------------" << endl;
G4cout << G4endl;
G4cout << " particle=" << aParticleType.GetParticleName() << G4endl;
G4cout << "----------------------" << G4endl;
}
for (G4int J=0; J<numOfMaterials; J++)
{
if(printflag>1)
{
G4cout << endl;
G4cout << " material = " << (*theMaterialTable)[J]->GetName() << endl;
G4cout << G4endl;
G4cout << " material = " << (*theMaterialTable)[J]->GetName() << G4endl;
G4cout << " mat.ind.=" << J << " T Nlambda Tprime"
<< " (Tprime-T)/T(%)" << endl ;
<< " (Tprime-T)/T(%)" << G4endl ;
}
G4PhysicsLogVector* aVector ;
@@ -169,28 +169,28 @@ void G4IMuIonisation::TestOfInversion(
}
if(printflag>1)
{
G4cout << setw(18) << setprecision(6) << T << " " <<
setw(14)<< setprecision(6) << Nlambda << " " <<
setw(14) << setprecision(6) << Tprime << " " <<
setw(12) << setprecision(3) << del << endl;
G4cout << G4std::setw(18) << G4std::setprecision(6) << T << " " <<
G4std::setw(14)<< G4std::setprecision(6) << Nlambda << " " <<
G4std::setw(14) << G4std::setprecision(6) << Tprime << " " <<
G4std::setw(12) << G4std::setprecision(3) << del << G4endl;
}
}
}
if(printflag>0)
{
G4cout << endl;
G4cout << "G4IMuIonisation::TestOfInversion (T->Nlambda->Tprime) " << endl ;
G4cout << G4endl;
G4cout << "G4IMuIonisation::TestOfInversion (T->Nlambda->Tprime) " << G4endl ;
G4cout << "particle= " << aParticleType.GetParticleName() <<
" material= " << (*theMaterialTable)[J]->GetName() << endl ;
G4cout << "max (Tprime-T)/T in % =" << setw(10) << setprecision(3) << delta
" material= " << (*theMaterialTable)[J]->GetName() << G4endl ;
G4cout << "max (Tprime-T)/T in % =" << G4std::setw(10) << G4std::setprecision(3) << delta
;
G4cout << " at a kinetic energy " << setw(10) << setprecision(3) <<
Tdelta/MeV << " MeV" << endl;
G4cout << " at a kinetic energy " << G4std::setw(10) << G4std::setprecision(3) <<
Tdelta/MeV << " MeV" << G4endl;
delmean /= sum ;
G4cout << "mean rel.diff. (Tprime-T)/T=" << setw(10) <<
setprecision(3) << delmean <<
" % (mean is calculated in abs. value)" << endl;
G4cout << endl;
G4cout << "mean rel.diff. (Tprime-T)/T=" << G4std::setw(10) <<
G4std::setprecision(3) << delmean <<
" % (mean is calculated in abs. value)" << G4endl;
G4cout << G4endl;
}
}
@@ -542,7 +542,7 @@ void G4IMuIonisation::BuildInverseNlambdaTable(
// inverse can be built for "meaningful" cut value only!
if(Smallest >= Biggest)
{
G4cout << endl ;
G4cout << G4endl ;
G4Exception(
"Cut value is too big , smaller value should be used !");
}
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4IMuPairProduction.cc,v 1.2.8.1 1999/12/07 20:50:45 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4IMuPairProduction.cc,v 1.2.8.1.2.4 1999/12/12 12:31:20 gracia Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
// $Id:
// --------------------------------------------------------------
@@ -53,22 +53,22 @@ G4IMuPairProduction::G4IMuPairProduction(const G4String& processName)
theMuonPlus ( G4MuonPlus::MuonPlus() )
{
theMeanFreePathTable = NULL ;
theMeanFreePathTable = NULL ;
cout << endl ;
cout << "****************************************************************" << endl;
cout << "****************************************************************" << endl;
cout << "** **" << endl;
cout << "** G4IMuPairProduction : **" << endl;
cout << "** cross section/energy loss is calculated using **" << endl;
cout << "** the accurate cross section formula of R.Kokoulin, **" << endl;
cout << "** ( building the tables takes a lot of time, **" << endl;
cout << "** PLEASE BE PATIENT ! ) **" << endl;
cout << "** sampling of the energy of the pair is generated **" << endl;
cout << "** according to the sampling tables. **" << endl;
cout << "** **" << endl;
cout << "****************************************************************" << endl;
cout << "****************************************************************" << endl;
G4cout << G4endl ;
G4cout << "****************************************************************" << G4endl;
G4cout << "****************************************************************" << G4endl;
G4cout << "** **" << G4endl;
G4cout << "** G4IMuPairProduction : **" << G4endl;
G4cout << "** cross section/energy loss is calculated using **" << G4endl;
G4cout << "** the accurate cross section formula of R.Kokoulin, **" << G4endl;
G4cout << "** ( building the tables takes a lot of time, **" << G4endl;
G4cout << "** PLEASE BE PATIENT ! ) **" << G4endl;
G4cout << "** sampling of the energy of the pair is generated **" << G4endl;
G4cout << "** according to the sampling tables. **" << G4endl;
G4cout << "** **" << G4endl;
G4cout << "****************************************************************" << G4endl;
G4cout << "****************************************************************" << G4endl;
}
// destructor
@@ -148,21 +148,21 @@ void G4IMuPairProduction::TestOfInversion(
G4Material::GetMaterialTable();
G4int numOfMaterials = theMaterialTable->length() ;
G4cout.setf(ios::scientific, ios::floatfield) ;
G4cout.setf(G4std::ios::scientific, G4std::ios::floatfield) ;
if(printflag>1)
{
G4cout << endl;
G4cout << " particle=" << aParticleType.GetParticleName() << endl;
G4cout << "----------------------" << endl;
G4cout << G4endl;
G4cout << " particle=" << aParticleType.GetParticleName() << G4endl;
G4cout << "----------------------" << G4endl;
}
for (G4int J=0; J<numOfMaterials; J++)
{
if(printflag>1)
{
G4cout << endl;
G4cout << " material = " << (*theMaterialTable)[J]->GetName() << endl;
G4cout << G4endl;
G4cout << " material = " << (*theMaterialTable)[J]->GetName() << G4endl;
G4cout << " mat.ind.=" << J << " T Nlambda Tprime"
<< " (Tprime-T)/T(%)" << endl ;
<< " (Tprime-T)/T(%)" << G4endl ;
}
G4PhysicsLogVector* aVector ;
@@ -196,28 +196,28 @@ void G4IMuPairProduction::TestOfInversion(
}
if(printflag>1)
{
G4cout << setw(18) << setprecision(6) << T << " " <<
setw(14)<< setprecision(6) << Nlambda << " " <<
setw(14) << setprecision(6) << Tprime << " " <<
setw(12) << setprecision(3) << del << endl;
G4cout << G4std::setw(18) << G4std::setprecision(6) << T << " " <<
G4std::setw(14)<< G4std::setprecision(6) << Nlambda << " " <<
G4std::setw(14) << G4std::setprecision(6) << Tprime << " " <<
G4std::setw(12) << G4std::setprecision(3) << del << G4endl;
}
}
}
if(printflag>0)
{
G4cout << endl;
G4cout << "G4IMuPairProduction::TestOfInversion (T->Nlambda->Tprime) " << endl ;
G4cout << G4endl;
G4cout << "G4IMuPairProduction::TestOfInversion (T->Nlambda->Tprime) " << G4endl ;
G4cout << "particle= " << aParticleType.GetParticleName() <<
" material= " << (*theMaterialTable)[J]->GetName() << endl ;
G4cout << "max (Tprime-T)/T in % =" << setw(10) << setprecision(3) << delta
" material= " << (*theMaterialTable)[J]->GetName() << G4endl ;
G4cout << "max (Tprime-T)/T in % =" << G4std::setw(10) << G4std::setprecision(3) << delta
;
G4cout << " at a kinetic energy " << setw(10) << setprecision(3) <<
Tdelta/MeV << " MeV" << endl;
G4cout << " at a kinetic energy " << G4std::setw(10) << G4std::setprecision(3) <<
Tdelta/MeV << " MeV" << G4endl;
delmean /= sum ;
G4cout << "mean rel.diff. (Tprime-T)/T=" << setw(10) <<
setprecision(3) << delmean <<
" % (mean is calculated in abs. value)" << endl;
G4cout << endl;
G4cout << "mean rel.diff. (Tprime-T)/T=" << G4std::setw(10) <<
G4std::setprecision(3) << delmean <<
" % (mean is calculated in abs. value)" << G4endl;
G4cout << G4endl;
}
}
@@ -570,7 +570,7 @@ void G4IMuPairProduction::BuildInverseNlambdaTable(
// inverse can be built for "meaningful" cut value only!
if(Smallest >= Biggest)
{
G4cout << endl ;
G4cout << G4endl ;
G4Exception(
"Cut value is too big , smaller value should be used !");
}
@@ -1329,7 +1329,7 @@ G4VParticleChange* G4IMuPairProduction::PostStepDoIt(const G4Track& trackData,
G4double ElectKineEnergy = ElectronEnergy - electron_mass_c2 ;
if (G4EnergyLossTables::GetRange(G4Electron::Electron(),ElectKineEnergy,aMaterial)
>= min(G4Electron::GetCuts(),stepData.GetPostStepPoint()->GetSafety()) )
>= G4std::min(G4Electron::GetCuts(),stepData.GetPostStepPoint()->GetSafety()) )
{
numberofsecondaries += 1 ;
flagelectron = 1 ;
@@ -1350,7 +1350,7 @@ G4VParticleChange* G4IMuPairProduction::PostStepDoIt(const G4Track& trackData,
PositronMomentum = sqrt(PositKineEnergy*(PositronEnergy+electron_mass_c2));
if (G4EnergyLossTables::GetRange(G4Positron::Positron(),PositKineEnergy,aMaterial)
< min(G4Positron::GetCuts(),stepData.GetPostStepPoint()->GetSafety()) )
< G4std::min(G4Positron::GetCuts(),stepData.GetPostStepPoint()->GetSafety()) )
{
LocalEnerDeposit += PositKineEnergy ;
PositKineEnergy = 0. ;
@@ -1410,7 +1410,7 @@ G4Element* G4IMuPairProduction::SelectRandomAtom(G4Material* aMaterial) const
if (rval <= (*PartialSumSigma(Index))(i)) return ((*theElementVector)(i));
}
cout << " WARNING !!! - The Material '"<< aMaterial->GetName()
<< "' has no elements, NULL pointer returned." << endl;
G4cout << " WARNING !!! - The Material '"<< aMaterial->GetName()
<< "' has no elements, NULL pointer returned." << G4endl;
return NULL;
}
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4MuBremsstrahlung.cc,v 1.5.8.1 1999/12/07 20:50:45 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4MuBremsstrahlung.cc,v 1.5.8.1.2.1 1999/12/08 17:34:19 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// --------------------------------------------------------------
@@ -568,7 +568,7 @@ G4Element* G4MuBremsstrahlung::SelectRandomAtom(G4Material* aMaterial) const
for ( G4int i=0; i < NumberOfElements; i++ )
if (rval <= (*PartialSumSigma(Index))(i)) return ((*theElementVector)(i));
G4cout << " WARNING !!! - The Material " << aMaterial->GetName()
<< " has no elements, NULL pointer returned." << endl;
<< " has no elements, NULL pointer returned." << G4endl;
return NULL;
}
@@ -577,7 +577,7 @@ void G4MuBremsstrahlung::PrintInfoDefinition()
G4String comments = "theoretical cross section \n ";
comments += " Good description up to 1000 TeV.";
G4cout << endl << GetProcessName() << ": " << comments
G4cout << G4endl << GetProcessName() << ": " << comments
<< "\n PhysicsTables from " << G4BestUnit(LowestKineticEnergy,
"Energy")
<< " to " << G4BestUnit(HighestKineticEnergy,"Energy")
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G4MuEnergyLoss.cc,v 1.8.6.1 1999/12/07 20:50:45 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// GEANT4 tag $Name: geant4-01-01 $
//
// $Id:
// --------------------------------------------------------------
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4MuIonisation.cc,v 1.4.8.1 1999/12/07 20:50:46 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4MuIonisation.cc,v 1.4.8.1.2.1 1999/12/08 17:34:19 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// --------------------------------------------------------------
@@ -509,7 +509,7 @@ void G4MuIonisation::PrintInfoDefinition()
comments += " Good description above the mean excitation energy.\n";
comments += " delta ray energy sampled from differential Xsection." ;
G4cout << endl << GetProcessName() << ": " << comments
G4cout << G4endl << GetProcessName() << ": " << comments
<< "\n PhysicsTables from " << G4BestUnit(LowestKineticEnergy,
"Energy")
<< " to " << G4BestUnit(HighestKineticEnergy,"Energy")
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4MuPairProduction.cc,v 1.6.8.1 1999/12/07 20:50:46 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4MuPairProduction.cc,v 1.6.8.1.2.2 1999/12/09 16:18:03 gcosmo Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
// --------------------------------------------------------------
// GEANT 4 class implementation file
@@ -786,8 +786,8 @@ G4Element* G4MuPairProduction::SelectRandomAtom(G4Material* aMaterial) const
{
if (rval <= (*PartialSumSigma(Index))(i)) return ((*theElementVector)(i));
}
cout << " WARNING !!! - The Material '"<< aMaterial->GetName()
<< "' has no elements, NULL pointer returned." << endl;
G4cout << " WARNING !!! - The Material '"<< aMaterial->GetName()
<< "' has no elements, NULL pointer returned." << G4endl;
return NULL;
}
void G4MuPairProduction::PrintInfoDefinition()
@@ -795,7 +795,7 @@ void G4MuPairProduction::PrintInfoDefinition()
G4String comments = "theoretical cross sections \n ";
comments += " Good description up to 1000 TeV.";
G4cout << endl << GetProcessName() << ": " << comments
G4cout << G4endl << GetProcessName() << ": " << comments
<< "\n PhysicsTables from " << G4BestUnit(LowestKineticEnergy,
"Energy")
<< " to " << G4BestUnit(HighestKineticEnergy,"Energy")