53 "-",
"+X",
"+Y",
"+Z",
"+U",
"+V",
"+W",
"+R",
"+S",
"+T",
"+A",
"+B",
"+C"};
56 : fData(ptr),fVerbose(1),fLevelMax(632),fTransMax(145)
61 char* directory = std::getenv(
"G4LEVELGAMMADATA");
66 "Environment variable G4LEVELGAMMADATA is not defined");
70 for(
G4int i=0; i<10; ++i) {
fICC[i] = 0.0f; }
96 return stream.fail() ?
false :
true;
105 if(dataFile.fail()) { okay =
false; }
106 else { x = strtod(buffer, 0); }
117 if(dataFile.fail()) { okay =
false; }
118 else { x = atof(buff1); }
129 if(dataFile.fail()) { okay =
false; }
130 else { ix = atoi(buff2); }
140 if(dataFile.fail()) { okay =
false; }
148 std::vector<G4float>* vec =
nullptr;
172 if(LL < 3) {
for(
G4int i=LL+1; i<=4; ++i) {
fICC[i] = 0.0f; } }
173 if(M < 5) {
for(
G4int i=M+4; i<=8; ++i) {
fICC[i] = 0.0f; } }
174 if(N < 1) {
fICC[9] = 0.0f; }
177 for(
G4int i=0; i<10; ++i) {
182 fICC[0] = norm = 1.0f;
186 vec =
new std::vector<G4float>;
188 for(
G4int i=0; i<10; ++i) {
190 if(x > 0.995
f || 9 == i) {
191 vec->push_back(1.0
f);
198 G4cout <<
"# InternalConv: ";
211 std::ostringstream ss;
222 if (!infile.is_open()) {
224 ed <<
"User file for Z= " << Z <<
" A= " << A
225 <<
" is not opened!";
226 G4Exception(
"G4LevelReader::MakeLevelManager(..)",
"had014",
235 std::ifstream& infile)
238 if (!infile.is_open()) {
241 ed <<
" for Z= " << Z <<
" A= " << A
242 <<
" is not opened!";
243 G4Exception(
"G4LevelReader::LevelManager(..)",
"had014",
249 G4cout <<
"G4LevelReader: open file for Z= "
250 << Z <<
" A= " << A <<
G4endl;
257 G4cout <<
"## New isotope Z= " << Z <<
" A= " <<
A;
273 for(i=0; i<nlevels; ++i) {
278 G4cout <<
"### End of file Z= " << Z <<
" A= " << A
279 <<
" Nlevels= " << i <<
G4endl;
285 ed <<
" G4LevelReader: wrong data file for Z= " << Z <<
" A= " << A
286 <<
" level #" << i <<
" has index " <<
i1 <<
G4endl;
287 G4Exception(
"G4LevelReader::LevelManager(..)",
"had014",
297 G4cout <<
"### End of file Z= " << Z <<
" A= " << A
298 <<
" Nlevels= " << i <<
G4endl;
312 G4cout <<
"### G4LevelReader: broken level " << i
314 <<
" for isotope Z= " << Z <<
" A= "
315 << A <<
" level energy increased" <<
G4endl;
325 <<
" LTime(s)= " <<
fTime <<
" 2S= " <<
vSpin[i]
326 <<
" meta= " <<
vSpin[i]/100000 <<
" idx= " << i
360 G4cout <<
"### Fail to read transition j= " << j
361 <<
" Z= " << Z <<
" A= " << A <<
G4endl;
366 G4cout <<
"### G4LevelReader: broken transition " << j
367 <<
" from level " << i <<
" to " <<
i2
368 <<
" for isotope Z= " << Z <<
" A= "
369 << A <<
" - use ground level" <<
G4endl;
381 G4cout <<
"### Transition #" << j <<
" to level " <<
i2
383 <<
" fProb= " << fProb <<
" MultiP= " << tnum
389 for(
k=0;
k<10; ++
k) {
394 G4cout <<
"### Fail to read convertion coeff k= " << k
395 <<
" for transition j= " << j
396 <<
" Z= " << Z <<
" A= " << A <<
G4endl;
409 G4int nt = ntrans - 1;
410 for(
k=0;
k<nt; ++
k) {
413 G4cout <<
"Probabilities[" <<
k
416 <<
" idxTrans= " <<
vTrans[
k]/10000
422 G4cout <<
"Probabilities[" << nt <<
"]= "
425 <<
" IdxTrans= " <<
vTrans[nt]/10000
429 G4cout <<
" New G4NucLevel: Ntrans= " << ntrans
444 G4cout <<
"=== Reader: new manager for Z= " << Z <<
" A= " << A
445 <<
" Nlevels= " << i <<
" E[0]= "