Import Geant4 9.3.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 16:15:05 +02:00
parent b79225fb37
commit 74cad5e589
3877 changed files with 234205 additions and 167127 deletions
@@ -84,7 +84,8 @@ class G4Fancy3DNucleus : public G4V3DNucleus
void CenterNucleons();
void DoTranslation(const G4ThreeVector & theShift);
const G4VNuclearDensity * GetNuclearDensity() const;
void SortNucleonsInZ();
void SortNucleonsIncZ(); // on increased Z-coordinates Uzhi 29.08.08
void SortNucleonsDecZ(); // on decreased Z-coordinates Uzhi 29.08.08
private:
@@ -55,7 +55,9 @@ class G4NuclearFermiDensity : public G4VNuclearDensity
G4double GetDeriv(const G4ThreeVector & aPosition) const
{
return -std::exp((aPosition.mag()-theR)/a) * sqr(GetDensity(aPosition)) / (a*Getrho0());
G4double currentR=aPosition.mag();
if (currentR > 40*theR ) {return 0;}
else return -std::exp((currentR-theR)/a) * sqr(GetDensity(aPosition)) / (a*Getrho0());
}
private:
@@ -79,21 +79,15 @@ class G4Nucleon : public G4VKineticNucleon
inline void Boost(const G4ThreeVector & beta){ theMomentum.boost(beta); }
void Boost(const G4LorentzVector & aMomentum);
inline void Hit(G4VSplitableHadron * aHit) { theSplitableHadron=aHit;}
inline void Hit(G4VSplitableHadron *aHit) { theSplitableHadron=aHit;}
// inline void Hit(G4int ) { isHit=true;}
inline void Hit(G4int )
{
theSplitableHadron=reinterpret_cast<G4VSplitableHadron *>(1111);
// G4cout << "$%$#%@%$#@%@%%% "<<theSplitableHadron<<G4endl;
}
inline G4VSplitableHadron * GetSplitableHadron() const { return theSplitableHadron;}
inline G4bool AreYouHit() const
{
G4bool result = true;
if (theSplitableHadron==NULL) result = false;
return result;
}
inline G4bool AreYouHit() const { return theSplitableHadron!=0;}
private:
G4ThreeVector thePosition;