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
+1 -1
View File
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G4AtomicShells.cc,v 1.1.10.1 1999/12/07 20:49:18 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// GEANT4 tag $Name: geant4-01-01 $
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... ....oooOO0OOooo....
+16 -16
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4Element.cc,v 1.2.8.1 1999/12/07 20:49:19 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4Element.cc,v 1.2.8.1.2.4 1999/12/14 07:07:59 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// ------------ class G4Element ------------
@@ -30,7 +30,7 @@
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... ....oooOO0OOooo....
#include "G4Element.hh"
#include <iomanip.h>
#include "g4std/iomanip"
G4ElementTable G4Element::theElementTable;
@@ -51,7 +51,7 @@ G4Element::G4Element(const G4String& name, const G4String& symbol,
if ((zeff-G4int(zeff)) > perMillion)
G4cerr << name <<
" : WARNING ! Trying to define an element as a mixture directly via effective Z."
<< endl;
<< G4endl;
InitializePointers();
@@ -266,30 +266,30 @@ G4double G4Element::GetAtomicShell(G4int i) const
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... ....oooOO0OOooo....
ostream& operator<<(ostream& flux, G4Element* element)
G4std::ostream& operator<<(G4std::ostream& flux, G4Element* element)
{
long mode = flux.setf(ios::fixed,ios::floatfield);
long mode = flux.setf(G4std::ios::fixed,G4std::ios::floatfield);
flux
<< " Element: " << setw(8) << element->fName << setw(3) << element->fSymbol
<< " Z = " << setw(4) << setprecision(1) << element->fZeff
<< " N = " << setw(5) << setprecision(1) << element->fNeff
<< " A = " << setw(6) << setprecision(2) << (element->fAeff)/(g/mole)
<< " Element: " << G4std::setw(8) << element->fName << G4std::setw(3) << element->fSymbol
<< " Z = " << G4std::setw(4) << G4std::setprecision(1) << element->fZeff
<< " N = " << G4std::setw(5) << G4std::setprecision(1) << element->fNeff
<< " A = " << G4std::setw(6) << G4std::setprecision(2) << (element->fAeff)/(g/mole)
<< " g/mole";
for (G4int i=0; i<element->fNumberOfIsotopes; i++)
flux
<< "\n ---> " << (*(element->theIsotopeVector))[i]
<< " abundance: " << setw(6) << setprecision(2)
<< " abundance: " << G4std::setw(6) << G4std::setprecision(2)
<< (element->fRelativeAbundanceVector[i])/perCent << " %";
flux.setf(mode,ios::floatfield);
flux.setf(mode,G4std::ios::floatfield);
return flux;
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... ....oooOO0OOooo....
ostream& operator<<(ostream& flux, G4Element& element)
G4std::ostream& operator<<(G4std::ostream& flux, G4Element& element)
{
flux << &element;
return flux;
@@ -297,14 +297,14 @@ ostream& operator<<(ostream& flux, G4Element* element)
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... ....oooOO0OOooo....
ostream& operator<<(ostream& flux, G4ElementTable ElementTable)
G4std::ostream& operator<<(G4std::ostream& flux, G4ElementTable ElementTable)
{
//Dump info for all known elements
flux << "\n***** Table : Nb of elements = " << ElementTable.length()
<< " *****\n" << endl;
<< " *****\n" << G4endl;
for (G4int i=0; i<ElementTable.length(); i++) flux << ElementTable[i]
<< endl << endl;
<< G4endl << G4endl;
return flux;
}
+1 -1
View File
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G4IonisParamElm.cc,v 1.2.8.1 1999/12/07 20:49:19 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// ------------ class G4IonisParamElm ------------
+1 -1
View File
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G4IonisParamMat.cc,v 1.2.8.1 1999/12/07 20:49:19 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// GEANT4 tag $Name: geant4-01-01 $
//
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... ....oooOO0OOooo....
+14 -14
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4Isotope.cc,v 1.1.10.1 1999/12/07 20:49:19 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4Isotope.cc,v 1.1.10.1.2.4 1999/12/14 07:07:59 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// --------------------------------------------------------------
@@ -27,7 +27,7 @@
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... ....oooOO0OOooo....
#include "G4Isotope.hh"
#include <iomanip.h>
#include "g4std/iomanip"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... ....oooOO0OOooo....
@@ -90,24 +90,24 @@ G4int G4Isotope::operator!=(const G4Isotope &right) const
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... ....oooOO0OOooo....
ostream& operator<<(ostream& flux, G4Isotope* isotope)
G4std::ostream& operator<<(G4std::ostream& flux, G4Isotope* isotope)
{
long mode = flux.setf(ios::fixed,ios::floatfield);
long mode = flux.setf(G4std::ios::fixed,G4std::ios::floatfield);
flux
<< " Isotope: " << setw(5) << isotope->fName
<< " Z = " << setw(2) << isotope->fZ
<< " N = " << setw(3) << isotope->fN
<< " A = " << setw(6) << setprecision(2)
<< " Isotope: " << G4std::setw(5) << isotope->fName
<< " Z = " << G4std::setw(2) << isotope->fZ
<< " N = " << G4std::setw(3) << isotope->fN
<< " A = " << G4std::setw(6) << G4std::setprecision(2)
<< (isotope->fA)/(g/mole) << " g/mole";
flux.setf(mode,ios::floatfield);
flux.setf(mode,G4std::ios::floatfield);
return flux;
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... ....oooOO0OOooo....
ostream& operator<<(ostream& flux, G4Isotope& isotope)
G4std::ostream& operator<<(G4std::ostream& flux, G4Isotope& isotope)
{
flux << &isotope;
return flux;
@@ -115,14 +115,14 @@ ostream& operator<<(ostream& flux, G4Isotope* isotope)
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... ....oooOO0OOooo....
ostream& operator<<(ostream& flux, G4IsotopeTable IsotopeTable)
G4std::ostream& operator<<(G4std::ostream& flux, G4IsotopeTable IsotopeTable)
{
//Dump info for all known isotopes
flux
<< "\n***** Table : Nb of isotopes = " << IsotopeTable.length()
<< " *****\n" << endl;
<< " *****\n" << G4endl;
for (G4int i=0; i<IsotopeTable.length(); i++) flux << IsotopeTable[i] << endl;
for (G4int i=0; i<IsotopeTable.length(); i++) flux << IsotopeTable[i] << G4endl;
return flux;
}
+3 -3
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4MPVEntry.cc,v 1.3.2.1 1999/11/11 14:30:15 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4MPVEntry.cc,v 1.3.2.1.4.1 1999/12/08 17:34:06 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
////////////////////////////////////////////////////////////////////////
@@ -104,5 +104,5 @@ void G4MPVEntry::DumpEntry()
<< ", "
<< theProperty
<< ")"
<< endl;
<< G4endl;
}
+25 -25
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4Material.cc,v 1.5.8.1 1999/12/07 20:49:20 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4Material.cc,v 1.5.8.1.2.4 1999/12/14 07:07:59 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// ---------- class G4Material ----------
@@ -40,7 +40,7 @@
#include "G4Material.hh"
#include "G4UnitsTable.hh"
#include <iomanip.h>
#include "g4std/iomanip"
G4MaterialTable G4Material::theMaterialTable;
@@ -61,7 +61,7 @@ G4Material::G4Material(const G4String& name, G4double z,
<< " define a material with density=0 is not allowed. \n"
<< " The material " << name << " will be constructed with the"
<< " default minimal density: " << universe_mean_density/(g/cm3)
<< "g/cm3" << endl;
<< "g/cm3" << G4endl;
density = universe_mean_density;
}
@@ -109,7 +109,7 @@ G4Material::G4Material(const G4String& name, G4double density, G4int nComponents
<< " define a material with density=0 is not allowed. \n"
<< " The material " << name << " will be constructed with the"
<< " default minimal density: " << universe_mean_density/(g/cm3)
<< "g/cm3" << endl;
<< "g/cm3" << G4endl;
density = universe_mean_density;
}
@@ -146,7 +146,7 @@ G4Material::G4Material(const G4String& name, const G4String& chFormula,
<< " define a material with density=0 is not allowed. \n"
<< " The material " << name << " will be constructed with the"
<< " default minimal density: " << universe_mean_density/(g/cm3)
<< "g/cm3" << endl;
<< "g/cm3" << G4endl;
density = universe_mean_density;
}
@@ -195,7 +195,7 @@ G4Material::G4Material(const G4String& name, const G4String& chFormula,
<< " define a material with density=0 is not allowed. \n"
<< " The material " << name << " will be constructed with the"
<< " default minimal density: " << universe_mean_density/(g/cm3)
<< "g/cm3" << endl;
<< "g/cm3" << G4endl;
density = universe_mean_density;
}
@@ -267,7 +267,7 @@ void G4Material::AddElement(G4Element* element, G4double fraction)
// if fAtomsVector is non-NULL, complain. Apples and oranges. $$$
if (fAtomsVector) {
G4cerr << "This material is already being defined via elements by"
<< "atoms." << endl;
<< "atoms." << G4endl;
G4Exception ("You are mixing apples and oranges ...");
}
@@ -302,7 +302,7 @@ void G4Material::AddElement(G4Element* element, G4double fraction)
if (abs(1.-wtSum) > perThousand) {
G4cerr << "WARNING !! - Fractional masses do not sum to 1 :the Delta is > 0.001"
<< "( the weights are NOT renormalized; the results may be wrong)"
<< endl;
<< G4endl;
}
ComputeDerivedQuantities();
@@ -322,7 +322,7 @@ void G4Material::AddMaterial(G4Material* material, G4double fraction)
// if fAtomsVector is non-NULL, complain. Apples and oranges. $$$
if (fAtomsVector) {
G4cerr << "This material is already being defined via elements by"
<< "atoms." << endl;
<< "atoms." << G4endl;
G4Exception ("You are mixing apples and oranges ...");
}
// initialization
@@ -360,7 +360,7 @@ void G4Material::AddMaterial(G4Material* material, G4double fraction)
if (abs(1.-wtSum) > perThousand) {
G4cerr << "WARNING !! - Fractional masses do not sum to 1 :the Delta is > 0.001"
<< "( the weights are NOT renormalized; the results may be wrong)"
<< endl;
<< G4endl;
}
ComputeDerivedQuantities();
@@ -503,40 +503,40 @@ G4int G4Material::operator!=(const G4Material& right) const
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... ....oooOO0OOooo....
ostream& operator<<(ostream& flux, G4Material* material)
G4std::ostream& operator<<(G4std::ostream& flux, G4Material* material)
{
long mode = flux.setf(ios::fixed,ios::floatfield);
long mode = flux.setf(G4std::ios::fixed,G4std::ios::floatfield);
flux
<< " Material: " << setw(8) << material->fName
<< " Material: " << G4std::setw(8) << material->fName
<< " " << material->fChemicalFormula << " "
<< " density: " << setw(6) << setprecision(3)
<< " density: " << G4std::setw(6) << G4std::setprecision(3)
<< G4BestUnit(material->fDensity,"Volumic Mass")
<< " temperature: " << setw(6) << setprecision(2)
<< " temperature: " << G4std::setw(6) << G4std::setprecision(2)
<< (material->fTemp)/kelvin << " K"
<< " pressure: " << setw(6) << setprecision(2)
<< " pressure: " << G4std::setw(6) << G4std::setprecision(2)
<< (material->fPressure)/atmosphere << " atm"
<< " RadLength: " << setw(7) << setprecision(3)
<< " RadLength: " << G4std::setw(7) << G4std::setprecision(3)
<< G4BestUnit(material->fRadlen,"Length");
for (G4int i=0; i<material->fNumberOfElements; i++)
flux
<< "\n ---> " << (*(material->theElementVector))[i]
<< " fractionMass: " << setw(6)<< setprecision(2)
<< " fractionMass: " << G4std::setw(6)<< G4std::setprecision(2)
<< (material->fMassFractionVector[i])/perCent << " %"
<< " Abundance " << setw(6)<< setprecision(2)
<< " Abundance " << G4std::setw(6)<< G4std::setprecision(2)
<< 100*(material->VecNbOfAtomsPerVolume[i])/
(material->TotNbOfAtomsPerVolume)
<< " %";
flux.setf(mode,ios::floatfield);
flux.setf(mode,G4std::ios::floatfield);
return flux;
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... ....oooOO0OOooo....
ostream& operator<<(ostream& flux, G4Material& material)
G4std::ostream& operator<<(G4std::ostream& flux, G4Material& material)
{
flux << &material;
return flux;
@@ -544,14 +544,14 @@ ostream& operator<<(ostream& flux, G4Material* material)
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... ....oooOO0OOooo....
ostream& operator<<(ostream& flux, G4MaterialTable MaterialTable)
G4std::ostream& operator<<(G4std::ostream& flux, G4MaterialTable MaterialTable)
{
//Dump info for all known materials
flux << "\n***** Table : Nb of materials = " << MaterialTable.length()
<< " *****\n" << endl;
<< " *****\n" << G4endl;
for (G4int i=0; i<MaterialTable.length(); i++) flux << MaterialTable[i]
<< endl << endl;
<< G4endl << G4endl;
return flux;
}
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4MaterialPropertiesTable.cc,v 1.5.2.1 1999/11/11 14:30:15 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4MaterialPropertiesTable.cc,v 1.5.2.1.4.1 1999/12/08 17:34:06 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
////////////////////////////////////////////////////////////////////////
@@ -171,7 +171,7 @@ void G4MaterialPropertiesTable::DumpTable()
{
MPTiterator i;
for (i = MPT.begin(); i != MPT.end(); ++i) {
G4cout << *(*i).first << endl;
G4cout << *(*i).first << G4endl;
(*i).second->DumpVector();
}
}
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4MaterialPropertyVector.cc,v 1.3.2.1 1999/11/11 14:30:16 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4MaterialPropertyVector.cc,v 1.3.2.1.4.1 1999/12/08 17:34:07 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
////////////////////////////////////////////////////////////////////////
@@ -173,7 +173,7 @@ G4MaterialPropertyVector::GetProperty(G4double aPhotonMomentum) const
{
G4cout << "\nWarning: G4MaterialPropertyVector::GetProperty";
G4cout << "\n==> attempt to Retrieve Property below range"
<< endl;
<< G4endl;
return minProp;
}
@@ -181,7 +181,7 @@ G4MaterialPropertyVector::GetProperty(G4double aPhotonMomentum) const
{
G4cout << "\nWarning: G4MaterialPropertyVector::GetProperty";
G4cout << "\n==> attempt to Retrieve Property above range"
<< endl;
<< G4endl;
return maxProp;
}
@@ -278,14 +278,14 @@ G4MaterialPropertyVector::GetPhotonMomentum(G4double aProperty) const
{
G4cout << "\nWarning: G4MaterialPropertyVector::GetPhotonMomentum";
G4cout << "\n==> attempt to Retrieve Photon Momentum out of range"
<< endl;
<< G4endl;
return PMmin;
}
if (aProperty > PropMax) {
G4cout << "\nWarning: G4MaterialPropertyVector::GetPhotonMomentum";
G4cout << "\n==> attempt to Retrieve Photon Momentum out of range"
<< endl;
<< G4endl;
return PMmax;
}
@@ -340,7 +340,7 @@ void G4MaterialPropertyVector::ResetIterator()
void G4MaterialPropertyVector::DumpVector()
{
if (MPV.isEmpty()) {
G4cerr << "nothing to dump" << endl;
G4cerr << "nothing to dump" << G4endl;
G4Exception("G4MaterialPropertyVector::DumpVector ==>"
"Nothing to dump! Vector is empty");
}
@@ -348,9 +348,9 @@ void G4MaterialPropertyVector::DumpVector()
for (G4int i = 0; i < NumEntries; i++) {
G4cout << "MPV["<< i << "]: ";
MPV[i]->DumpEntry();
G4cout << i << NumEntries << endl;
G4cout << i << NumEntries << G4endl;
}
G4cout << " Done DumpVector " << endl;
G4cout << " Done DumpVector " << G4endl;
}
+11 -11
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpticalSurface.cc,v 1.3 1999/11/05 21:13:56 gum Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpticalSurface.cc,v 1.3.6.1 1999/12/08 17:34:07 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
////////////////////////////////////////////////////////////////////////
@@ -105,19 +105,19 @@ void G4OpticalSurface::DumpInfo() const
// Dump info for surface
G4cout <<
" Surface type = " << theType << endl <<
" Surface finish = " << theFinish << endl <<
" Surface model = " << theModel << endl;
" Surface type = " << theType << G4endl <<
" Surface finish = " << theFinish << G4endl <<
" Surface model = " << theModel << G4endl;
G4cout << endl;
G4cout << G4endl;
G4cout << " Surface parameter " << endl;
G4cout << " ----------------- " << endl;
G4cout << " Surface parameter " << G4endl;
G4cout << " ----------------- " << G4endl;
if (theModel == glisur ){
G4cout << polish << endl;
G4cout << polish << G4endl;
}
else {
G4cout << sigma_alpha << endl;
G4cout << sigma_alpha << G4endl;
}
G4cout << endl;
G4cout << G4endl;
}
+3 -3
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4SandiaTable.cc,v 1.4.4.1 1999/12/07 20:49:20 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4SandiaTable.cc,v 1.4.4.1.2.1 1999/12/08 17:34:07 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... ....oooOO0OOooo....
//
@@ -178,7 +178,7 @@ G4SandiaTable::SandiaIntervals(G4int Z[],
}
fMaxInterval += 2 ;
// G4cout<<"fMaxInterval = "<<fMaxInterval<<endl ;
// G4cout<<"fMaxInterval = "<<fMaxInterval<<G4endl ;
fPhotoAbsorptionCof = new G4double* [fMaxInterval] ;