29#include <libValErr/ValErr.hxx>
95 ReadXSFile(ifstream *inputfile,
int start_record,
int table_length,
int record_length,
int nrecord_per_entry,
string FN);
104 ReadXSFile(ifstream *inputfile,
int start_record,
int table_length,
string FN);
111 double SumXS(
int MT);
130 ValErr_t
SigmaPhi(
int N, vector < ValErr_t > &Phi,
float *Ephi,
int MT,
double emin = 0,
double emax = 1e40);
131 ValErr_t
NuSigmaFisPhi(
int N, vector < ValErr_t > &Phi,
float *Ephi);
ReactionId
Definition ReadXSFile.hxx:44
@ k_3NFission
Definition ReadXSFile.hxx:57
@ kN_N2p
Definition ReadXSFile.hxx:59
@ kN_d2alpha
Definition ReadXSFile.hxx:67
@ kN_pt
Definition ReadXSFile.hxx:67
@ kN_Nt
Definition ReadXSFile.hxx:55
@ kN_2Nalpha
Definition ReadXSFile.hxx:51
@ kN_Nd
Definition ReadXSFile.hxx:54
@ kN_2Np
Definition ReadXSFile.hxx:58
@ kN_alpha
Definition ReadXSFile.hxx:65
@ k_Elastic
Definition ReadXSFile.hxx:46
@ kN_2N
Definition ReadXSFile.hxx:49
@ kN_2Nd
Definition ReadXSFile.hxx:48
@ kN_N3alpha
Definition ReadXSFile.hxx:51
@ kN_Np
Definition ReadXSFile.hxx:52
@ kTotal
Definition ReadXSFile.hxx:45
@ kN_gamma
Definition ReadXSFile.hxx:63
@ kN_3alpha
Definition ReadXSFile.hxx:65
@ kN_NFission
Definition ReadXSFile.hxx:50
@ kN_N2alpha
Definition ReadXSFile.hxx:53
@ kN_pd
Definition ReadXSFile.hxx:67
@ kN_NHe3
Definition ReadXSFile.hxx:55
@ kN_Nt2alpha
Definition ReadXSFile.hxx:55
@ kN_2NFission
Definition ReadXSFile.hxx:50
@ kN_Np2continuum
Definition ReadXSFile.hxx:61
@ kN_3Np
Definition ReadXSFile.hxx:58
@ kN_Np2second
Definition ReadXSFile.hxx:60
@ kN_p
Definition ReadXSFile.hxx:64
@ kN_t
Definition ReadXSFile.hxx:64
@ k_Absorption
Definition ReadXSFile.hxx:62
@ kN_Np40
Definition ReadXSFile.hxx:61
@ kN_Fission
Definition ReadXSFile.hxx:50
@ kN_3N
Definition ReadXSFile.hxx:49
@ kTotalInelastic
Definition ReadXSFile.hxx:47
@ kN_Npalpha
Definition ReadXSFile.hxx:59
@ kN_3Nalpha
Definition ReadXSFile.hxx:51
@ kN_2N2alpha
Definition ReadXSFile.hxx:53
@ kN_t2alpha
Definition ReadXSFile.hxx:66
@ kN_palpha
Definition ReadXSFile.hxx:66
@ kN_d
Definition ReadXSFile.hxx:64
@ kN_Nd2alpha
Definition ReadXSFile.hxx:55
@ kN_Nalpha
Definition ReadXSFile.hxx:51
@ kN_2p
Definition ReadXSFile.hxx:66
@ kN_Np2first
Definition ReadXSFile.hxx:60
@ kN_dalpha
Definition ReadXSFile.hxx:67
@ kN_He3
Definition ReadXSFile.hxx:64
@ kN_4N
Definition ReadXSFile.hxx:56
@ kN_2alpha
Definition ReadXSFile.hxx:65
@ k_Fission
Definition ReadXSFile.hxx:50
float Real
in MCNP4 and under binary cross-section are stored in float
Definition ReadXSFile.hxx:36
Allows to read XS file in the MCNP ACE format.
Definition ReadXSFile.hxx:83
Real * fLocXS
Address number for some reaction cross-sections.
Definition ReadXSFile.hxx:162
int GetStartEndEnergyBin(int MT, int min)
helper funtion for GetXSMinMaxEnergyBin
Definition ReadXSFile.cxx:683
int fJXS[32]
Array of JXS (address of XS)
Definition ReadXSFile.hxx:151
void ReadNXS()
read the NXS array (Binary)
Definition ReadXSFile.cxx:271
ValErr_t NuSigmaFisPhi(int N, vector< ValErr_t > &Phi, float *Ephi)
return
Definition ReadXSFile.cxx:770
void AffectPointer()
decomposed all global arrays in user understandable one
Definition ReadXSFile.cxx:237
int GetXSMinEnergyBin(int MT)
returns the lower energy bin for the XS(MT)
Definition ReadXSFile.cxx:628
Real * fElasticXS
Elastic scattering cross-section [0..fNEnergy-1].
Definition ReadXSFile.hxx:158
Real GetTotalInterpolateNuBar(Real E)
returns the total mean nu at E (fission neutron yield)
Definition ReadXSFile.cxx:325
double SumXS(int MT)
returns
Definition ReadXSFile.cxx:562
Real GetXS(int MT, Real E)
returns XS for reaction MT at energy E
Definition ReadXSFile.cxx:471
int fNXXS
Size of this array.
Definition ReadXSFile.hxx:161
int fNEnergy
Number of Energy point.
Definition ReadXSFile.hxx:155
Real * GetTotalNuBar(int &NE, Real *&E, bool &Todelete)
returns the total mean nu (fission neutron yield)
Definition ReadXSFile.cxx:357
void ReadAsciiNXS()
read the NXS array (Ascii)
Definition ReadXSFile.cxx:279
int GetXSMaxEnergyBin(int MT)
returns the upper energy bin for the XS(MT)
Definition ReadXSFile.cxx:637
Real * fEnergy
Energy grid [0..fNEnergy-1].
Definition ReadXSFile.hxx:154
void ReadJXS()
read the JXS array (Binary)
Definition ReadXSFile.cxx:287
int FindEnergyBin(double E, int N, float *Ephi)
returns the bin for energy E in array Ephi
Definition ReadXSFile.cxx:876
void ReadAsciiJXS()
read the JXS array (Ascii)
Definition ReadXSFile.cxx:296
Real GetFissionXS(int binE)
returns total fission XS
Definition ReadXSFile.cxx:580
Real * fTotalXS
Total cross-section [0..fNEnergy-1].
Definition ReadXSFile.hxx:156
bool fXSFound
whether a XS is found or not
Definition ReadXSFile.hxx:163
int fNReaction
Number of reaction (ONLY neutrons)
Definition ReadXSFile.hxx:153
Real GetTotalFissionXS(Real E)
returns total fission XS (prefer GetFissionXS())
Definition ReadXSFile.cxx:606
~ReadXSFile()
destructor
Definition ReadXSFile.cxx:262
int GetNEnergy()
Definition ReadXSFile.hxx:114
Real * fReactionType
Array [fNReaction] of ENDF reaction type.
Definition ReadXSFile.hxx:152
Real * GetPromptNuBar(int &NE, Real *&E)
returns the prompt mean nu (fission neutron yield)
Definition ReadXSFile.cxx:417
int fNXS[16]
Array of NXS (size, ...)
Definition ReadXSFile.hxx:150
ifstream * OriginalFile
Original MCNP ENDF Data File.
Definition ReadXSFile.hxx:149
Real * fAbsorptionXS
Total Absorption cross-section [0..fNEnergy-1].
Definition ReadXSFile.hxx:157
void XSFound()
Definition ReadXSFile.hxx:142
int GetXSMinMaxEnergyBin(int MT, int min)
find the lower(min=0) or upper (min=1) Energy bin for reaction MT
Definition ReadXSFile.cxx:645
Real * XXS
XXS array (all the 2nd block of the Library)
Definition ReadXSFile.hxx:160
Real * GetEnergy()
returns the Energy array where XS are defined
Definition ReadXSFile.cxx:749
Real ** fXS
Cross-section array[fNReaction][...].
Definition ReadXSFile.hxx:159
ValErr_t SigmaPhi(int N, vector< ValErr_t > &Phi, float *Ephi, int MT, double emin=0, double emax=1e40)
return
Definition ReadXSFile.cxx:794
bool IsXSFound()
Definition ReadXSFile.hxx:123
Real GetInterpolXS(int MT, Real E)
returns linear in (log-log) interpol of XS for reaction MT at energy E
Definition ReadXSFile.cxx:482
the namespace of the Standard C++