Import Geant4 11.4.0 source tree
This commit is contained in:
@@ -114,6 +114,8 @@ private:
|
||||
|
||||
inline const G4PhysicsVector* GetPhysicsVector(G4int Z);
|
||||
|
||||
inline const G4PhysicsVector* GetPhysicsVectorR(G4int Z);
|
||||
|
||||
G4PhysicsVector* RetrieveVector(std::ostringstream& in, G4bool warn);
|
||||
|
||||
G4double emax;
|
||||
@@ -123,8 +125,10 @@ private:
|
||||
std::vector<G4double> temp;
|
||||
|
||||
G4bool isInitializer{false};
|
||||
G4bool fRfilesEnabled{false};
|
||||
|
||||
static G4ElementData* data;
|
||||
static G4ElementData* dataR;
|
||||
static G4String gDataDirectory;
|
||||
};
|
||||
|
||||
@@ -132,11 +136,22 @@ inline
|
||||
const G4PhysicsVector* G4NeutronCaptureXS::GetPhysicsVector(G4int Z)
|
||||
{
|
||||
const G4PhysicsVector* pv = data->GetElementData(Z);
|
||||
if(pv == nullptr) {
|
||||
if (pv == nullptr) {
|
||||
InitialiseOnFly(Z);
|
||||
pv = data->GetElementData(Z);
|
||||
}
|
||||
return pv;
|
||||
}
|
||||
|
||||
inline
|
||||
const G4PhysicsVector* G4NeutronCaptureXS::GetPhysicsVectorR(G4int Z)
|
||||
{
|
||||
const G4PhysicsVector* pv = dataR->GetElementData(Z);
|
||||
if (pv == nullptr) {
|
||||
InitialiseOnFly(Z);
|
||||
pv = dataR->GetElementData(Z);
|
||||
}
|
||||
return pv;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user