Import Geant4 3.0.0 source tree
This commit is contained in:
@@ -7,8 +7,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4NeutronHPInelasticBaseFS.hh,v 1.3 1999/07/02 09:59:11 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-02-00 $
|
||||
// $Id: G4NeutronHPInelasticBaseFS.hh,v 1.4 2000/11/09 16:13:38 hpw Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
#ifndef G4NeutronHPInelasticBaseFS_h
|
||||
#define G4NeutronHPInelasticBaseFS_h 1
|
||||
@@ -54,7 +54,7 @@ class G4NeutronHPInelasticBaseFS : public G4NeutronHPFinalState
|
||||
|
||||
virtual G4double GetXsec(G4double anEnergy)
|
||||
{
|
||||
return theXsection->GetY(anEnergy);
|
||||
return G4std::max(0., theXsection->GetY(anEnergy));
|
||||
}
|
||||
virtual G4NeutronHPVector * GetXsec() { return theXsection; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user