Import Geant4 2.0.0 source tree
This commit is contained in:
@@ -5,8 +5,6 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4HadronInelasticProcess.cc,v 1.1.8.1.2.1 1999/12/07 20:51:31 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
// Hadronic Inelastic Process Class
|
||||
// J.L. Chuma, TRIUMF, 24-Mar-1997
|
||||
@@ -21,6 +19,7 @@
|
||||
//
|
||||
|
||||
#include "G4HadronInelasticProcess.hh"
|
||||
#include "G4GenericIon.hh"
|
||||
|
||||
G4double G4HadronInelasticProcess::GetMeanFreePath(
|
||||
const G4Track &aTrack,
|
||||
@@ -28,7 +27,8 @@
|
||||
G4ForceCondition *condition )
|
||||
{
|
||||
const G4DynamicParticle *aParticle = aTrack.GetDynamicParticle();
|
||||
if( aParticle->GetDefinition() != theParticle )
|
||||
if( aParticle->GetDefinition() != theParticle &&
|
||||
theParticle != G4GenericIon::GenericIon())
|
||||
G4Exception( this->GetProcessName()+
|
||||
" called for "+
|
||||
aParticle->GetDefinition()->GetParticleName() );
|
||||
|
||||
Reference in New Issue
Block a user