45 lines
1.5 KiB
Plaintext
45 lines
1.5 KiB
Plaintext
// This code implementation is the intellectual property of
|
|
// the GEANT4 collaboration.
|
|
//
|
|
// By copying, distributing or modifying the Program (or any work
|
|
// based on the Program) you indicate your acceptance of this statement,
|
|
// and all its terms.
|
|
//
|
|
// $Id: G4ionIonisation.icc,v 1.2.8.1 1999/12/07 20:50:55 gunter Exp $
|
|
// GEANT4 tag $Name: geant4-01-00 $
|
|
//
|
|
//
|
|
// ---------------------------------------------------------------
|
|
// GEANT 4 class inlined methods file
|
|
//
|
|
// For information related to this code contact:
|
|
// CERN, IT Division, ASD group
|
|
// ------------ G4ionIonisation physics process ------------
|
|
// by Laszlo Urban, 08 Dec 1998
|
|
// ***************************************************************
|
|
// It is the first implementation of the ionisation for IONS
|
|
// ---------------------------------------------------------------
|
|
|
|
inline G4double G4ionIonisation::GetContinuousStepLimit(
|
|
const G4Track& track,
|
|
G4double,
|
|
G4double currentMinimumStep,
|
|
G4double&)
|
|
{
|
|
|
|
G4double Step =
|
|
GetConstraints(track.GetDynamicParticle(),track.GetMaterial()) ;
|
|
|
|
if((Step>0.0)&&(Step<currentMinimumStep))
|
|
currentMinimumStep = Step ;
|
|
|
|
return Step ;
|
|
}
|
|
|
|
inline G4bool G4ionIonisation::IsApplicable(
|
|
const G4ParticleDefinition& particle)
|
|
{
|
|
return(particle.GetPDGCharge() != 0.);
|
|
}
|
|
|