MURE
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
XSDIRLine.hxx
Go to the documentation of this file.
1 #ifndef _XSDIRLine_
2 #define _XSDIRLine_
3 
9 #include <string>
10 #include "StringLine.hxx"
11 using namespace std;
12 
13 const double kTperK=8.617e-11;
14 
16 
20 class XSDIRLine: public StringLine
21 {
22 
23  public:
30  XSDIRLine(string *line, int n);
36  XSDIRLine(string line);
37  double GetMass(){return fMass;}
38  double GetTemperature(){return fTemperature;}
39  double GetTemperatureInMeV(){return fTemperature;}
40  int GetDataType(){return fDataType;}
41  int GetStartRecord(){return fStartRecord;}
42  int GetTableLength(){return fTableLength;}
43  int GetRecordLength(){return fRecordLength;}
44  int GetEntriesPerRecord(){return fEntriesPerRecord;}
45  int GetZA(){return atoi(fIsotopeName.c_str());}
46  int Z(){return fZ;}
47  int A(){return fA;}
48  int I(){return fI;}
49  void SetZ(int Z){fZ=Z;}
50  void SetA(int A){fA=A;}
51  void SetI(int I){fI=I;}
52  string GetPtable(){return fPtable;}
53  string GetExtension(){return fExtension;}
54  char GetExtensionType(){return fExtension[3];}
55  string GetXSFileName(){return fXSFileName;}
56  string GetIsotopeName(){return fIsotopeName;}
57  string GetDirLine(){return fDirLine;}
58  string GetPath(){return fPath;}
59 
61 
67  void PrintFormatted(string BaseName,string BaseVersion,string Builder,ostream &Out=cout);
68  void AddNewPathInDirLine(string path);
69 
70  private:
71 
72  void ClearDoubleSpace(string &Line);
73  void ReadLine();
74  void SpecialMTCase();
75  void ContinuationSymbol(string *Line,int N);
76 
79 
80  double fMass;
81  double fTemperature;
82  int fDataType;
83  string fXSFileName;
84  string fIsotopeName;
85  string fExtension;
90  string fPath;
91  string fPtable;
92  string fDirLine;
93  int fZ;
94  int fA;
95  int fI;
96 };
97 
98 #endif
int A()
returns nucleon number
Definition: XSDIRLine.hxx:47
int GetEntriesPerRecord()
returns entries per record
Definition: XSDIRLine.hxx:44
string fPtable
ptable card (if exists)
Definition: XSDIRLine.hxx:91
string GetXSFileName()
returns the XS file name (path/filename)
Definition: XSDIRLine.hxx:55
string GetExtension()
returns in ZA.id name, the &quot;.id&quot; string
Definition: XSDIRLine.hxx:53
int fDataType
Data Type (1=ascii, 2=binary)
Definition: XSDIRLine.hxx:82
double GetTemperature()
returns the temperature at which XS are processed
Definition: XSDIRLine.hxx:38
string fXSFileName
File Name of the Original ENDF Library.
Definition: XSDIRLine.hxx:83
int GetTableLength()
returns the length of the 2nd block
Definition: XSDIRLine.hxx:42
string fExtension
Isotope extension (e.g. &quot;.60c&quot;)
Definition: XSDIRLine.hxx:85
Extract all parameters from an XSDIR line.
Definition: XSDIRLine.hxx:20
int fContinuationPosition
Position of Continuation symbol in the Current fLine.
Definition: XSDIRLine.hxx:78
int GetStartRecord()
returns the starting record of data
Definition: XSDIRLine.hxx:41
string GetDirLine()
returns the xsdir line
Definition: XSDIRLine.hxx:57
char fContinuationSymbol
Continuation symbol in xsdir (a &quot;+&quot; or &quot;&amp;&quot;)
Definition: XSDIRLine.hxx:77
void SetI(int I)
Set isomeric state to I.
Definition: XSDIRLine.hxx:51
int I()
returns isomeric state (0=ground state, 1= 1st excited,...)
Definition: XSDIRLine.hxx:48
double GetTemperatureInMeV()
returns the temperature at which XS are processed
Definition: XSDIRLine.hxx:39
int fZ
number of protons
Definition: XSDIRLine.hxx:93
string fPath
the path where to find library if given else 0
Definition: XSDIRLine.hxx:90
char GetExtensionType()
returns the extension type (e.g. in 92238.60c returns &quot;c&quot;)
Definition: XSDIRLine.hxx:54
int fStartRecord
First Start Record for the Isotope.
Definition: XSDIRLine.hxx:86
string fIsotopeName
Isotope Name of the Original ENDF Library.
Definition: XSDIRLine.hxx:84
string GetPtable()
returns the &quot;ptable&quot; string when exists in xsdir line
Definition: XSDIRLine.hxx:52
int fI
Isomeric state (Ground State, ith excited)
Definition: XSDIRLine.hxx:95
void SetA(int A)
set nucleon number
Definition: XSDIRLine.hxx:50
int GetDataType()
returns data type storage (1=ascii, 2=binary)
Definition: XSDIRLine.hxx:40
string GetIsotopeName()
returns Isotope name (e.g. in 92238.60c returns &quot;92238&quot;)
Definition: XSDIRLine.hxx:56
double fTemperature
Temperature of the Cross-section.
Definition: XSDIRLine.hxx:81
string fDirLine
the whole Line
Definition: XSDIRLine.hxx:92
const double kTperK
Value of kT per kelvin in MeV.
Definition: XSDIRLine.hxx:13
Class extracting fields from a string / line.
Definition: StringLine.hxx:49
int GetRecordLength()
returns the record length
Definition: XSDIRLine.hxx:43
int fTableLength
Length of the second block (XS table)
Definition: XSDIRLine.hxx:87
void SetZ(int Z)
set proton number
Definition: XSDIRLine.hxx:49
string GetPath()
returns the path if exist else 0
Definition: XSDIRLine.hxx:58
double fMass
Mass of an isotope in neutron mass unit (MCNP convention)
Definition: XSDIRLine.hxx:80
int fA
number of nucleons (A=0 means natural isotopes)
Definition: XSDIRLine.hxx:94
double GetMass()
returns the nucleide weight in Atomic Mass Unit
Definition: XSDIRLine.hxx:37
int Z()
returns proton number
Definition: XSDIRLine.hxx:46
int fRecordLength
Length of a record.
Definition: XSDIRLine.hxx:88
int fEntriesPerRecord
Number of entries per record.
Definition: XSDIRLine.hxx:89
Header file for StingLine class.
int GetZA()
returns the ZA=Z*1000+A
Definition: XSDIRLine.hxx:45

MURE Project, documentation generated by Doxygen 1.8.5 - Mon Nov 17 2014