Import Geant4 8.0.0 source tree
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
-------------------------------------------------------------------
|
||||
|
||||
==========================================================
|
||||
Geant4 - an Object-Oriented Toolkit for Physics Simulation
|
||||
==========================================================
|
||||
|
||||
History file for hadronic/models/util directory
|
||||
-----------------------------------------------
|
||||
|
||||
This file should be used to summarize modifications introduced in the
|
||||
code and to keep track of all tags.
|
||||
|
||||
---------------------------------------------------------------
|
||||
* Please list in reverse chronological order (last date on top)
|
||||
---------------------------------------------------------------
|
||||
|
||||
30 Nov 2005 Gabriele Cosmo (hadr-modutl-V07-01-01)
|
||||
--------------------------------------------------
|
||||
- Trivial fix in G4Fancy3DNucleus for support of CLHEP-2.0.X series.
|
||||
|
||||
23 Nov 2005 Dennis Wright (hadr-modutl-V07-01-00)
|
||||
-------------------------------------------------
|
||||
- include change of G4KineticTrack::GetActualMass() which uses
|
||||
the4Momentum.mag2() to get mass
|
||||
- D. Wright created History file for models/util directory
|
||||
@@ -328,11 +328,7 @@ inline void G4KineticTrack::UpdateTrackingMomentum(const G4ThreeVector & aMoment
|
||||
|
||||
inline G4double G4KineticTrack::GetActualMass() const
|
||||
{
|
||||
G4ThreeVector theMomentum = the4Momentum.vect();
|
||||
G4double theMomentum2 = theMomentum.mag2();
|
||||
G4double theTotalEnergy = the4Momentum.e();
|
||||
G4double theMass = std::sqrt(std::abs(theTotalEnergy * theTotalEnergy - theMomentum2));
|
||||
return theMass;
|
||||
return std::sqrt(std::abs(the4Momentum.mag2()));
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -272,7 +272,7 @@ void G4Fancy3DNucleus::ChoosePositions()
|
||||
if ( jr < 3 )
|
||||
{
|
||||
jr=std::min(600,9*(myA - i));
|
||||
HepRandom::getTheEngine()->flatArray(jr, prand );
|
||||
CLHEP::RandFlat::shootArray(jr, prand );
|
||||
}
|
||||
jx=--jr;
|
||||
jy=--jr;
|
||||
|
||||
Reference in New Issue
Block a user