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);
144 void G4NeutronHPCapture::addChannelForNewElement()
152 (*theCapture[i]).Register(theFS);