Import Geant4 10.3.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2016-06-30 14:12:05 +02:00
parent a654a7ab1f
commit 4ec577e5c4
2021 changed files with 100995 additions and 78277 deletions
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: G4Fragment.hh 92198 2015-08-21 10:00:50Z gcosmo $
// $Id: G4Fragment.hh 96383 2016-04-11 09:06:57Z gcosmo $
//
//---------------------------------------------------------------------
//
@@ -116,6 +116,10 @@ public:
// computation of mass for any Z and A
inline G4double ComputeGroundStateMass(G4int Z, G4int A) const;
// extra methods
inline G4double GetSpin() const;
inline void SetSpin(G4double value);
inline G4int GetCreatorModelType() const;
inline void SetCreatorModelType(G4int value);
@@ -200,6 +204,7 @@ private:
const G4ParticleDefinition* theParticleDefinition;
G4double spin;
G4double theCreationTime;
};
@@ -227,7 +232,7 @@ inline void * G4Fragment::operator new(size_t)
inline void G4Fragment::operator delete(void * aFragment)
{
((G4Fragment *)aFragment)->SetNuclearPolarization(0);
((G4Fragment *)aFragment)->SetNuclearPolarization(nullptr);
pFragmentAllocator->FreeSingle((G4Fragment *) aFragment);
}
@@ -391,6 +396,16 @@ inline void G4Fragment::SetCreatorModelType(G4int value)
creatorModel = value;
}
inline G4double G4Fragment::GetSpin() const
{
return spin;
}
inline void G4Fragment::SetSpin(G4double value)
{
spin = value;
}
inline
const G4ParticleDefinition* G4Fragment::GetParticleDefinition(void) const
{