Import Geant4 4.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 16:39:52 +02:00
parent 921d3b1cda
commit 330b82b769
4524 changed files with 178689 additions and 43575 deletions
+6 -19
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4Element.hh,v 1.15 2001/10/17 14:02:15 gcosmo Exp $
// GEANT4 tag $Name: geant4-04-00 $
// $Id: G4Element.hh,v 1.16 2002/02/26 17:34:34 maire Exp $
// GEANT4 tag $Name: geant4-04-01 $
//
// class description
@@ -63,7 +63,8 @@
// 30-03-01, suppression of the warning message in GetElement
// 17-07-01, migration to STL, M. Verderi
// 13-09-01, stl migration. Suppression of the data member fIndexInTable
// 14-09-01, fCountUse: nb of materials which use this element
// 14-09-01, fCountUse: nb of materials which use this element
// 26-02-02, fIndexInTable renewed
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -151,7 +152,7 @@ public: // with description
//the index of this element in the Table:
//
size_t GetIndex() const;
size_t GetIndex() const {return fIndexInTable;};
//return pointer to an element, given its name:
//
@@ -222,6 +223,7 @@ private:
// Set up the static Table of Elements
static G4ElementTable theElementTable;
size_t fIndexInTable;
//
// Derived data members (computed from the basic data members)
@@ -233,19 +235,4 @@ private:
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
inline
size_t G4Element::GetIndex() const
{
// return the index of this Element in theElementTable
//
size_t J=0, Jmax=theElementTable.size();
while ((J<Jmax)&&(theElementTable[J] != this)) J++;
if (J==Jmax) G4Exception("G4Element::GetIndex() Element not in ElementTable");
return J;
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#endif