Import Geant4 6.2.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 10:56:29 +02:00
parent 1d812b78b1
commit e083ffb441
1415 changed files with 111223 additions and 21207 deletions
@@ -49,6 +49,7 @@
#include "G4Delete.hh"
#include "G4CrossSectionDataStore.hh"
#include "G4HadronicException.hh"
#include "G4Fuzzy.hh"
class G4Track;
class G4Step;
@@ -97,6 +98,15 @@ class G4ParticleChange;
return anIsoResult;
}
// use this with bool only
static G4bool AlwaysKillLeadingHadron(G4Fuzzy aB=G4Fuzzy())
{
static G4Fuzzy state = G4Fuzzy();
if(getenv("AlwaysKillLeadingHadron")) return true;
if (!aB.first) state = aB;
return state.second;
}
void BiasCrossSectionByFactor(G4double aScale)
{
xBiasOn = true;