Import Geant4 10.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-10 11:51:14 +02:00
parent e2d2f9810a
commit 286caacf06
12421 changed files with 730077 additions and 502383 deletions
+16 -2
View File
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id$
// $Id: G4ElementData.hh 72057 2013-07-04 13:07:29Z gcosmo $
//
//---------------------------------------------------------------------------
//
@@ -48,6 +48,7 @@
#include "globals.hh"
#include "G4NistElementBuilder.hh"
#include "G4PhysicsVector.hh"
#include "G4Physics2DVector.hh"
#include <vector>
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -63,6 +64,9 @@ public:
// add cross section for the element
void InitialiseForElement(G4int Z, G4PhysicsVector* v);
// add 2D cross section for the element
void InitialiseForElement(G4int Z, G4Physics2DVector* v);
// reserve vector of components
void InitialiseForComponent(G4int Z, G4int nComponents=0);
@@ -75,6 +79,9 @@ public:
// get vector for the element
inline G4PhysicsVector* GetElementData(G4int Z);
// get 2-D vector for the element
inline G4Physics2DVector* GetElement2DData(G4int Z);
// get number of components for the element
inline size_t GetNumberOfComponents(G4int Z);
@@ -102,7 +109,8 @@ private:
G4ElementData & operator=(const G4ElementData &right);
G4ElementData(const G4ElementData&);
G4PhysicsVector* elmData[maxNumElements];
G4PhysicsVector* elmData[maxNumElements];
G4Physics2DVector* elm2Data[maxNumElements];
std::vector<G4PhysicsVector*> compData[maxNumElements];
std::vector<G4int> compID[maxNumElements];
size_t compLength[maxNumElements];
@@ -120,6 +128,12 @@ G4PhysicsVector* G4ElementData::GetElementData(G4int Z)
return elmData[Z];
}
inline
G4Physics2DVector* G4ElementData::GetElement2DData(G4int Z)
{
return elm2Data[Z];
}
inline
size_t G4ElementData::GetNumberOfComponents(G4int Z)
{