Import Geant4 7.0.0 source tree
This commit is contained in:
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4Track.cc,v 1.21 2004/06/11 14:28:14 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-06-02 $
|
||||
// $Id: G4Track.cc,v 1.22 2004/12/02 06:38:17 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-03 $
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
@@ -180,7 +180,7 @@ G4double G4Track::GetVelocity() const
|
||||
}
|
||||
} else {
|
||||
G4double T = fpDynamicParticle->GetKineticEnergy();
|
||||
velocity = c_light*sqrt(T*(T+2.*mass))/(T+mass) ;
|
||||
velocity = c_light*std::sqrt(T*(T+2.*mass))/(T+mass) ;
|
||||
}
|
||||
|
||||
return velocity ;
|
||||
|
||||
Reference in New Issue
Block a user