122 G4cout <<
"G4RIsotopeTable::GetIsotope No. : ";
151 G4cout <<
"G4RIsotopeTable::GetIsotope create: ";
162 std::ostringstream os;
163 os.setf(std::ios::fixed);
164 os <<
"A"<< A <<
"Z" << Z <<
'[' << std::setprecision(1) << E/
keV <<
']';
167 G4cout <<
"G4RIsotopeTable::GetIsotope Name: ";
186 if (!getenv(
"G4RADIOACTIVEDATA")) {
187 G4cout <<
"Please setenv G4RADIOACTIVEDATA to point to the radioactive decay data files." <<
G4endl;
189 "Please setenv G4RADIOACTIVEDATA to point to the radioactive decay data files.");
191 G4String dirName = getenv(
"G4RADIOACTIVEDATA");
193 std::ostringstream os;
194 os <<dirName <<
"/z" <<Z <<
".a" <<
A ;
197 std::ifstream DecaySchemeFile(file);
199 G4bool found_in_raddecay_data(
false);
200 if (!DecaySchemeFile) {
202 G4cout <<
"G4RIsotopeTable::GetMeanLife() : "
203 <<
"cannot find ion radioactive decay file: "
207 char inputChars[100]={
' '};
213 while (!found_in_raddecay_data && !DecaySchemeFile.getline(inputChars, 100).eof()) {
214 inputLine = inputChars;
215 inputLine = inputLine.
strip(1);
217 if (inputChars[0] !=
'#' && inputLine.length() != 0) {
218 std::istringstream tmpstream(inputLine);
219 tmpstream >> recordType >> a >> b;
220 if (recordType ==
"P") {
222 found_in_raddecay_data =
true;
223 lifetime = b/0.693147*
s ;
228 DecaySchemeFile.close();
231 if (!found_in_raddecay_data && aE) {
233 lifetime = 1.0E-20*
s;
243 lifetime = half_life/0.693147;
247 G4cout <<
"G4RIsotopeTable::GetMeanLife() : ";
248 G4cout <<
"cannot find ion of required excitation E = " << aE <<
G4endl;
249 G4cout <<
"state in radioactive or photoevaporation data file " <<
G4endl;
250 G4cout <<
"The nucleus is assumed to be IT decayed with life = 1E-20 s" <<
G4endl;
251 G4cout <<
" -----------* THIS MAY CAUSE PROBLEM IN ITS DECAY-----------" <<
G4endl;
255 if (!found_in_raddecay_data && !aE) {
257 G4cout <<
"G4RIsotopeTable::GetMeanLife() : ";
258 G4cout <<
"cannot find ion of required excitation E = " << aE <<
G4endl;
259 G4cout <<
"state in radioactive or photoevaporation data file" <<
G4endl;
260 G4cout <<
"The nucleus is assumed to be stable" <<
G4endl;
266 G4cout <<
"G4RIsotopeTable::GetMeanLifeTime: ";
278 std::ifstream DecaySchemeFile(filename);
279 if (DecaySchemeFile){
280 G4int ID_ion=A*1000+Z;
284 G4cout<<
"The file "<<filename<<
" does not exist!"<<
G4endl;
void SetAtomicMass(G4int A)
virtual G4IsotopeProperty * GetIsotope(G4int Z, G4int A, G4double E)
virtual ~G4RIsotopeTable()
G4double HalfLife() const
G4String strip(G4int strip_Type=trailing, char c=' ')
void AddUserDecayDataFile(G4int Z, G4int A, G4String filename)
virtual G4bool FindIsotope(G4IsotopeProperty *property)
static G4NuclearLevelStore * GetInstance()
static const G4double levelTolerance
G4int GetVerboseLevel() const
void SetLifeTime(G4double T)
G4GLOB_DLL std::ostream G4cout
static const G4double A[nN]
G4NuclearLevelManager * GetManager(G4int Z, G4int A)
void SetEnergy(G4double E)
void SetDecayTable(G4DecayTable *table)
static G4ParticleTable * GetParticleTable()
G4double GetMeanLifeTime(G4int Z, G4int A, G4double &E)
G4IsotopeList fIsotopeList
const G4NuclearLevel * NearestLevel(G4double energy, G4double eDiffMax=9999.*CLHEP::GeV) const
std::map< G4int, G4String > theUserRadioactiveDataFiles
G4int GetVerboseLevel() const
void SetAtomicNumber(G4int Z)
G4String GetIsotopeName(G4int Z, G4int A, G4double E)
G4IsotopeNameList fIsotopeNameList