47 "Lithium",
"Berylium",
"Boron",
"Carbon",
"Nitrogen",
"Oxygen",
"Fluorine",
48 "Neon",
"Sodium",
"Magnesium",
"Aluminum",
"Silicon",
"Phosphorous",
49 "Sulfur",
"Chlorine",
"Argon",
"Potassium",
"Calcium",
"Scandium",
50 "Titanium",
"Vanadium",
"Chromium",
"Manganese",
"Iron",
"Cobalt",
"Nickel",
51 "Copper",
"Zinc",
"Gallium",
"Germanium",
"Arsenic",
"Selenium",
"Bromine",
52 "Krypton",
"Rubidium",
"Strontium",
"Yttrium",
"Zirconium",
"Niobium",
53 "Molybdenum",
"Technetium",
"Ruthenium",
"Rhodium",
"Palladium",
"Silver",
54 "Cadmium",
"Indium",
"Tin",
"Antimony",
"Tellurium",
"Iodine",
"Xenon",
55 "Cesium",
"Barium",
"Lanthanum",
"Cerium",
"Praseodymium",
"Neodymium",
56 "Promethium",
"Samarium",
"Europium",
"Gadolinium",
"Terbium",
"Dysprosium",
57 "Holmium",
"Erbium",
"Thulium",
"Ytterbium",
"Lutetium",
"Hafnium",
58 "Tantalum",
"Tungsten",
"Rhenium",
"Osmium",
"Iridium",
"Platinium",
"Gold",
59 "Mercury",
"Thallium",
"Lead",
"Bismuth",
"Polonium",
"Astatine",
"Radon",
60 "Francium",
"Radium",
"Actinium",
"Thorium",
"Protactinium",
"Uranium",
61 "Neptunium",
"Plutonium",
"Americium",
"Curium",
"Berkelium",
"Californium",
62 "Einsteinium",
"Fermium"};
88 if(getenv(
"NeutronHPNames"))
G4cout <<
"Names::GetName entered for Z = " << Z <<
", A = " << A <<
G4endl;
93 if(Z>92.5&&!getenv(
"AllowForHeavyElements") )
96 G4cerr <<
"Please contact Geant4 Hadron Group Coordinator"<<
G4endl;
97 throw G4HadronicException(__FILE__, __LINE__,
"G4ParticleHPNames::GetName - data with Z>92 are not provided");
112 std::istringstream* check = NULL;
114 if(getenv(
"NeutronHPNames"))
G4cout <<
"entered GetName!!!"<<
G4endl;
121 if(theName!=0)
delete theName;
127 if(getenv(
"NeutronHPNames"))
G4cout <<
"HPWD 1 "<<*theName<<
G4endl;
130 if ( check != NULL ) {
149 *biff = base+
"/CrossSection/"+
itoa(myZ)+
"_"+
"nat"+
"_"+theString[myZ-1];
152 if(getenv(
"NeutronHPNames"))
G4cout <<
"HPWD 2 "<<*theName<<
G4endl;
171 *biff = base+
"/"+rest+
"/"+
itoa(myZ)+
"_"+
"nat"+
"_"+theString[myZ-1];
172 if ( rest==
"/CrossSection" ) *biff = base+rest+
"/"+
itoa(myZ)+
"_"+
"nat"+
"_"+theString[myZ-1];
175 if(getenv(
"NeutronHPNames"))
G4cout <<
"HPWD 3 "<<*theName<<
G4endl;
201 std::istringstream*
file = NULL;
204 if ( rest ==
"/CrossSection" )
208 fileName = base+rest+
"/"+
itoa(myZ)+
"_"+
itoa(myA)+sM+
"_"+theString[myZ-1];
209 if(getenv(
"NeutronHPNames"))
G4cout <<
"HPWD 4a "<<*theName<<
G4endl;
216 fileName = base+
"/"+rest+
"/"+
itoa(myZ)+
"_"+
itoa(myA)+sM+
"_"+theString[myZ-1];
225 if(getenv(
"NeutronHPNames"))
G4cout <<
"HPWD 4b1 "<<*theName<<
G4endl;
231 fileName = base+
"/"+rest+
"/"+
itoa(myZ)+
"_"+
"nat"+
"_"+theString[myZ-1];
241 if(getenv(
"NeutronHPNames"))
G4cout <<
"HPWD 4b2a "<<*theName<<
G4endl;
247 if(getenv(
"NeutronHPNames"))
G4cout <<
"HPWD 4b2c "<<*theName<<
G4endl;
276 G4cout <<
"G4ParticleHPNames: Sorry, this material does not come near to any data."<<
G4endl;
277 G4cout <<
"G4ParticleHPNames: Please make sure G4NEUTRONHPDATA points to the" <<
G4endl;
278 G4cout <<
" directory, the neutron scattering data are located in." <<
G4endl;
279 G4cout <<
"G4ParticleHPNames: The material was: A="<<A<<
", Z="<<Z<<
G4endl;
281 throw G4HadronicException(__FILE__, __LINE__,
"In case the data sets are at present not available in the neutron data library, please contact Hadron Group Coordinator");
303 myZ = Z + flip_Z * delta_Z;
324 myA = A + flip_A * delta_A;
336 while( myZ == 0 || myA == 0 );
339 while((!check) || (!(*check)));
341 if(getenv(
"NeutronHPNamesLogging") || getenv(
"NeutronHPNames"))
343 G4cout <<
"Names::GetName: last theName proposal = "<<
G4endl;
348 if ( Z != result.
GetZ() || A != result.
GetA() )
350 if ( rest ==
"/CrossSection" )
354 reac.erase ( 0 , dir.length() );
357 if ( verboseLevel > 0 ) {
358 G4cout <<
"NeutronHP: " << reac <<
" file for Z = " << Z <<
", A = " << A <<
" is not found and CrossSection set to 0." <<
G4endl;
360 G4String new_name = base+
"/"+rest+
"/"+
"0_0_Zero";
367 if ( ( reac.find(
"Inelastic") != reac.size() && ( (Z == 1 && A == 1) || (Z == 1 && A == 2) || (Z == 1 && A == 3) || (Z == 2 && A == 3) || (Z == 2 && A == 4) ) )
368 || ( reac.find(
"Capture") != reac.size() && ( (Z == 1 && A == 3) || (Z == 2 && A == 4) ) )
369 || ( reac.find(
"Fission") != reac.size() && ( (Z == 88 && A == 224) || (Z == 88 && A == 225) || (Z == 89 && A == 225) || (Z == 88 && A == 226) ) ) )
372 G4String new_name = base+
"/"+rest+
"/"+
"0_0_Zero";
377 if ( verboseLevel > 0 ) {
378 G4cout <<
"NeutronHP: " << reac <<
" file for Z = " << Z <<
", A = " << A <<
" is not found and NeutronHP will use " << result.
GetName() <<
G4endl;
static G4ParticleHPManager * GetInstance()
static const G4String theString[100]
const XML_Char int const XML_Char int const XML_Char * base
static G4double GetZtoA(G4int Z)
double A(double temperature)
G4ParticleHPDataUsed GetName(G4int A, G4int Z, G4String base, G4String rest, G4bool &active)
G4GLOB_DLL std::ostream G4cerr
G4double G4ParticleHPJENDLHEData::G4double result
void SetName(G4String aName)
G4GLOB_DLL std::ostream G4cout
G4bool IsThisNaturalAbundance()
void SetNaturalAbundanceFlag()
G4String itoa(int current)
G4bool GetSkipMissingIsotopes()
void GetDataStream2(G4String, std::istringstream &iss)