107 G4String baseName = getenv(
"G4NEUTRONHPDATA" );
108 G4String dirName = baseName+
"/JENDL_HE/"+particleName+
"/"+reactionName ;
109 G4String aFSType =
"/CrossSection/";
124 vElement.resize( numberOfElements );
125 for (
size_t i = 0; i < numberOfElements; ++i )
128 G4Element* theElement = (*theElementTable)[i];
132 G4int nIso = (*theElementTable)[i]->GetNumberOfIsotopes();
133 G4int Z =
static_cast<G4int> ((*theElementTable)[i]->GetZ());
136 G4bool found_at_least_one =
false;
141 if ( isThisNewIsotope( Z , A ) )
144 std::stringstream ss;
145 ss << dirName << aFSType << Z <<
"_" << A <<
"_" << theNames.
GetName( Z-1 );
148 file.open ( filename , std::fstream::in );
155 found_at_least_one =
true;
162 registAPhysicsVector( Z , A , aPhysVec );
175 found_at_least_one =
TRUE;
179 if ( found_at_least_one ) vElement[i] =
true;
191 if ( isThisNewIsotope( Z , A ) )
194 std::stringstream ss;
195 ss << dirName << aFSType << Z <<
"_" << A <<
"_" << theNames.
GetName( Z-1 );
199 file.open ( filename , std::fstream::in );
205 found_at_least_one =
TRUE;
211 registAPhysicsVector( Z , A , aPhysVec );
223 found_at_least_one =
TRUE;
227 if ( found_at_least_one ) vElement[i] =
true;
G4int GetFirstIsotope(G4int Z)
const G4String & GetParticleName() const
double A(double temperature)
static size_t GetNumberOfElements()
G4int GetNumberOfIsotopes(G4int Z)
G4int GetIsotopeNucleonCount(G4int number)
const G4Isotope * GetIsotope(G4int iso) const
G4ParticleHPDataUsed GetName(G4int A, G4int Z, G4String base, G4String rest, G4bool &active)
std::vector< G4Element * > G4ElementTable
static G4ElementTable * GetElementTable()