47 if(!getenv(
"G4NEUTRONHPDATA"))
48 throw G4HadronicException(__FILE__, __LINE__,
"Please setenv G4NEUTRONHPDATA to point to the neutron cross-section files.");
49 dirName = getenv(
"G4NEUTRONHPDATA");
51 dirName = dirName + tString;
64 for (
G4int i = 0 ; i < numEle ; i++ )
68 (*theCapture[i]).Register(theFS);
79 for ( std::vector<G4NeutronHPChannel*>::iterator
80 ite = theCapture.begin() ; ite != theCapture.end() ; ite++ )
94 if(getenv(
"NeutronHPCapture"))
G4cout <<
" ####### G4NeutronHPCapture called"<<
G4endl;
109 rWeight = NumAtomsPerVolume[i];
124 if( sum == 0 || random <= running/sum )
break;
126 if(i==n) i=std::max(0, n-1);
141 return std::pair<G4double, G4double>(10*perCent,
DBL_MAX);
144void G4NeutronHPCapture::addChannelForNewElement()
152 (*theCapture[i]).Register(theFS);
G4DLLIMPORT std::ostream G4cout
static size_t GetNumberOfElements()
static const G4ElementTable * GetElementTable()
const G4Material * GetMaterial() const
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)
G4double GetTemperature() const
const G4Element * GetElement(G4int iel) const
size_t GetNumberOfElements() const
const G4double * GetVecNbOfAtomsPerVolume() const
virtual const std::pair< G4double, G4double > GetFatalEnergyCheckLevels() const
G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack, G4Nucleus &aTargetNucleus)
static G4NeutronHPManager * GetInstance()
void OpenReactionWhiteBoard()
void CloseReactionWhiteBoard()
G4NeutronHPReactionWhiteBoard * GetReactionWhiteBoard()
G4double GetThermalEnergy(const G4HadProjectile &aP, const G4Element *anE, G4double aT)
void SetParameters(const G4double A, const G4double Z)