MURE
|
Extract all parameters from an XSDIR line. More...
#include <XSDIRLine.hxx>
Public Member Functions | |
XSDIRLine (string *line, int n) | |
XSDIRLine (string line) | |
double | GetMass () |
double | GetTemperature () |
double | GetTemperatureInMeV () |
int | GetDataType () |
int | GetStartRecord () |
int | GetTableLength () |
int | GetRecordLength () |
int | GetEntriesPerRecord () |
int | GetZA () |
int | Z () |
int | A () |
int | I () |
void | SetZ (int aZ) |
void | SetA (int aA) |
void | SetI (int aI) |
string | GetPtable () |
string | GetExtension () |
char | GetExtensionType () |
string | GetXSFileName () |
string | GetIsotopeName () |
string | GetDirLine () |
string | GetPath () |
void | PrintFormatted (string BaseName, string BaseVersion, string Builder, ostream &Out=cout) |
Print XSDIRLine in a special format for BaseSummary.dat file. | |
void | AddNewPathInDirLine (string path) |
modify rhe path in the xsdir line (for futher building of xsdir) | |
Private Member Functions | |
void | ClearDoubleSpace (string &Line) |
clear double space in a line | |
void | ReadLine () |
extracts data from the xsdir line | |
void | SpecialMTCase () |
special MT code of ENDB6 | |
void | ContinuationSymbol (string *Line, int N) |
find the continuation symbol ("+" or "&") and its position | |
Private Attributes | |
char | fContinuationSymbol |
Continuation symbol in xsdir (a "+" or "&") | |
int | fContinuationPosition |
Position of Continuation symbol in the Current fLine. | |
double | fMass |
Mass of an isotope in neutron mass unit (MCNP convention) | |
double | fTemperature |
Temperature of the Cross-section. | |
int | fDataType |
Data Type (1=ascii, 2=binary) | |
string | fXSFileName |
File Name of the Original ENDF Library. | |
string | fIsotopeName |
Isotope Name of the Original ENDF Library. | |
string | fExtension |
Isotope extension (e.g. ".60c") | |
int | fStartRecord |
First Start Record for the Isotope. | |
int | fTableLength |
Length of the second block (XS table) | |
int | fRecordLength |
Length of a record. | |
int | fEntriesPerRecord |
Number of entries per record. | |
string | fPath |
the path where to find library if given else 0 | |
string | fPtable |
ptable card (if exists) | |
string | fDirLine |
the whole Line | |
int | fZ |
number of protons | |
int | fA |
number of nucleons (A=0 means natural isotopes) | |
int | fI |
Isomeric state (Ground State, ith excited) | |
Additional Inherited Members | |
Static Public Member Functions inherited from StringLine | |
static string | NextWord (string Line, int &start, char sep=' ', char alt_sep='\0') |
Find the next word in a line. | |
static string | PreviousWord (string Line, int &start, char sep=' ', char alt_sep='\0') |
Find the previous word in a line. | |
static int | GetStartWord (string Line, int CurrentPosition, char sep=' ') |
Find the start of a word in a line. | |
static int | GetEndWord (string Line, int CurrentPosition, char sep=' ') |
Find the end of a word in a line. | |
static string | ReplaceAll (string InLine, string ToReplace, string By) |
Replace a sub-string by an other in a string. | |
static void | ltrim (std::string &s) |
Remove starting spaces (trim) a string. | |
static void | rtrim (std::string &s) |
Remove ending spaces (trim) of a string. | |
static void | trim (std::string &s) |
Remove spaces (trim) of the begining and the end of a string. | |
static int | Find (const char *search, string Line) |
Find search in Line from the begining. | |
static int | rFind (const char *search, string Line) |
Find search in Line from the end. | |
static void | ToLower (string &Line) |
convert a string to Lower case | |
static void | ToUpper (string &Line) |
convert a string to Upper case | |
template<class out_T , class in_T > | |
static out_T | convert (const in_T &t) |
convert a input type (in_T ) to another (out_T ). | |
template<class T > | |
static bool | ToNumber (T &t, const std::string &s, std::ios_base &(*f)(std::ios_base &)) |
try to convert a string to a number. | |
static bool | IsDouble (const std::string &s) |
Extract all parameters from an XSDIR line.
XSDIRLine::XSDIRLine | ( | string * | line, |
int | n | ||
) |
XSDIRLine::XSDIRLine | ( | string | line | ) |
|
inline |
< returns nucleon number
void XSDIRLine::AddNewPathInDirLine | ( | string | path | ) |
modify rhe path in the xsdir line (for futher building of xsdir)
|
private |
clear double space in a line
|
private |
find the continuation symbol ("+" or "&") and its position
|
inline |
< returns data type storage (1=ascii, 2=binary)
|
inline |
< returns the xsdir line
|
inline |
< returns entries per record
|
inline |
< returns in ZA.id name, the ".id" string
|
inline |
< returns the extension type (e.g. in 92238.60c returns "c")
|
inline |
< returns Isotope name (e.g. in 92238.60c returns "92238")
|
inline |
< returns the nucleide weight in Atomic Mass Unit
|
inline |
< returns the path if exist else 0
|
inline |
< returns the "ptable" string when exists in xsdir line
|
inline |
< returns the record length
|
inline |
< returns the starting record of data
|
inline |
< returns the length of the 2nd block
|
inline |
< returns the temperature at which XS are processed
|
inline |
< returns the temperature at which XS are processed
|
inline |
< returns the XS file name (path/filename)
|
inline |
< returns the ZA=Z*1000+A
|
inline |
< returns isomeric state (0=ground state, 1= 1st excited, ...)
void XSDIRLine::PrintFormatted | ( | string | BaseName, |
string | BaseVersion, | ||
string | Builder, | ||
ostream & | Out = cout |
||
) |
Print XSDIRLine in a special format for BaseSummary.dat file.
BaseName | : the name of the base (e.g. ENDFB, JEFF, ...) |
BaseVersion | : the version of the base (e.g. 6.1, 3.2, ...) |
Builder | : the base builder (one of STD, JOY, MOD) |
Out | : Output stream |
|
private |
extracts data from the xsdir line
|
inline |
< set nucleon number
|
inline |
< Set isomeric state to I
|
inline |
< set proton number
|
private |
special MT code of ENDB6
|
inline |
< returns proton number
|
private |
number of nucleons (A=0 means natural isotopes)
|
private |
Position of Continuation symbol in the Current fLine.
|
private |
Continuation symbol in xsdir (a "+" or "&")
|
private |
Data Type (1=ascii, 2=binary)
|
private |
the whole Line
|
private |
Number of entries per record.
|
private |
Isotope extension (e.g. ".60c")
|
private |
Isomeric state (Ground State, ith excited)
|
private |
Isotope Name of the Original ENDF Library.
|
private |
Mass of an isotope in neutron mass unit (MCNP convention)
|
private |
the path where to find library if given else 0
|
private |
ptable card (if exists)
|
private |
Length of a record.
|
private |
First Start Record for the Isotope.
|
private |
Length of the second block (XS table)
|
private |
Temperature of the Cross-section.
|
private |
File Name of the Original ENDF Library.
|
private |
number of protons