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
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4ParticleChangeForLoss.hh,v 1.20 2008/01/11 19:57:12 vnivanch Exp $
// GEANT4 tag $Name: geant4-09-02 $
// $Id: G4ParticleChangeForLoss.hh,v 1.22 2009/06/17 17:25:57 vnivanch Exp $
// GEANT4 tag $Name: geant4-09-03 $
//
//
// ------------------------------------------------------------
@@ -41,7 +41,8 @@
// 30.01.06 V.Ivanchenko add ProposedMomentumDirection for AlongStep
// and ProposeWeight for PostStep
// 07.06.06 V.Ivanchenko RemoveProposedMomentumDirection from AlongStep
// 28.08.06 V.Ivanchenko Add access to current track and polarizaion
// 28.08.06 V.Ivanchenko Added access to current track and polarizaion
// 17.06.09 V.Ivanchenko Added SetLowEnergyLimit method
//
// ------------------------------------------------------------
//
@@ -107,6 +108,8 @@ public:
const G4Track* GetCurrentTrack() const;
void SetLowEnergyLimit(G4double elimit);
virtual void DumpInfo() const;
// for Debug
@@ -125,6 +128,9 @@ private:
G4double proposedKinEnergy;
// The final kinetic energy of the current particle.
G4double lowEnergyLimit;
// The limit kinetic energy below which particle is stopped
G4double currentCharge;
// The final charge of the current particle.
@@ -262,7 +268,7 @@ inline G4Step* G4ParticleChangeForLoss::UpdateStepForAlongStep(G4Step* pStep)
(proposedKinEnergy - pStep->GetPreStepPoint()->GetKineticEnergy());
// update kinetic energy and charge
if (kinEnergy < DBL_MIN) {
if (kinEnergy < lowEnergyLimit) {
theLocalEnergyDeposit += kinEnergy;
kinEnergy = 0.0;
} else {
@@ -310,5 +316,10 @@ inline void G4ParticleChangeForLoss::AddSecondary(G4DynamicParticle* aParticle)
G4VParticleChange::AddSecondary(aTrack);
}
inline void G4ParticleChangeForLoss::SetLowEnergyLimit(G4double elimit)
{
lowEnergyLimit = elimit;
}
#endif
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4VUserTrackInformation.hh,v 1.6 2006/06/29 21:14:59 gunter Exp $
// GEANT4 tag $Name: geant4-09-02 $
// $Id: G4VUserTrackInformation.hh,v 1.8 2009/10/19 17:11:43 kurasige Exp $
// GEANT4 tag $Name: geant4-09-03 $
//
//
//---------------------------------------------------------------
@@ -56,15 +56,32 @@
#ifndef G4VUserTrackInformation_H
#define G4VUserTrackInformation_H 1
#include "globals.hh"
class G4VUserTrackInformation
{
public:
{
public: // With Description
G4VUserTrackInformation();
G4VUserTrackInformation(const G4String& infoType);
// String is provided to indicate Type of UserTrackInfo class
// User is recommended to set the type of his/her class
virtual ~G4VUserTrackInformation();
public:
virtual void Print() const = 0;
const G4String& GetType() const;
// get Type of this UserTrackInfo
protected:
G4String fType;
};
inline
const G4String& G4VUserTrackInformation::GetType() const
{
return fType;
}
#endif