Import Geant4 11.4.0 source tree

This commit is contained in:
Gabriele Cosmo
2025-12-05 08:54:02 +01:00
parent a499fb82e9
commit b4a16de652
6484 changed files with 232674 additions and 221097 deletions
@@ -110,15 +110,19 @@ private:
inline const G4PhysicsVector* GetPhysicsVector(G4int Z);
inline const G4PhysicsVector* GetPhysicsVectorR(G4int Z);
G4PhysicsVector* RetrieveVector(std::ostringstream& in, G4bool warn);
G4VComponentCrossSection* ggXsection{nullptr};
const G4ParticleDefinition* neutron;
G4bool isInitializer{false};
G4bool fRfilesEnabled{false};
static const G4int MAXZEL = 93;
static G4ElementData* data;
static G4ElementData* dataR;
static G4double coeff[MAXZEL];
static G4String gDataDirectory;
};
@@ -134,4 +138,15 @@ G4PhysicsVector* G4NeutronElasticXS::GetPhysicsVector(G4int Z)
return pv;
}
inline
const G4PhysicsVector* G4NeutronElasticXS::GetPhysicsVectorR(G4int Z)
{
const G4PhysicsVector* pv = dataR->GetElementData(Z);
if (pv == nullptr) {
InitialiseOnFly(Z);
pv = dataR->GetElementData(Z);
}
return pv;
}
#endif