CLASS
5.1
Fuel Cycle Simulator
|
Defines a XSModel getting mean cross sections from neural network execution. More...
#include <XSM_MLP.hxx>
Public Member Functions | |
void | BookTMVAReader () |
EvolutionData | GetCrossSections (IsotopicVector IV, double t=0) |
Return calculated cross section by the MLP regression. More... | |
Constructor/Desctructor | |
XSM_MLP (string TMVA_Weight_Directory, string InformationFile="/Data_Base_Info.nfo") | |
Normal Constructor. More... | |
XSM_MLP (CLASSLogger *Log, string TMVA_Weight_Directory, string InformationFile="/Data_Base_Info.nfo") | |
CLASSLogger Constructor. More... | |
~XSM_MLP () | |
Reading NFO related Method | |
void | LoadKeyword () |
LoadKeyword() : make the correspondance between keyword and reading method. More... | |
void | ReadTimeSteps (const string &line) |
ReadTimeSteps : read the time step of the model. More... | |
void | ReadZAIName (const string &line) |
ReadZAIName : read the zai name in the TMWA MLP model. More... | |
void | ReadLine (string line) |
ReadLine : read a line. More... | |
![]() | |
void | ReadNFO () |
void | ReadZAIlimits (const string &line) |
void | ReadType (const string &line) |
void | ReadRParam (const string &line) |
void | SetZAIThreshold (int Z_Threshold) |
Set the Z threshold : ZAI with Z < fZAIThreshold are not manage by CLASS. More... | |
int | GetZAIThreshold () |
Get the Z threshold. More... | |
XSModel () | |
Default constructor. More... | |
XSModel (CLASSLogger *log) | |
Logger constructor. More... | |
virtual | ~XSModel () |
Destructor. More... | |
virtual bool | isIVInDomain (IsotopicVector IV) |
Check either the IsotopicVector IV is in the validity domain of the models. More... | |
![]() | |
CLASSObject () | |
Normal Constructor. More... | |
CLASSObject (CLASSLogger *log) | |
Log Constructor. More... | |
virtual CLASSObject * | Clone () |
Correct way to copy a CLASSObject in case of derivation. More... | |
void | SetLog (CLASSLogger *log) |
Set the CLASSLogger. More... | |
CLASSLogger * | GetLog () |
Return the Pointer to the Log. More... | |
Protected Member Functions | |
void | GetMLPWeightFiles () |
Find all .xml file in TMVA_Weight_Directory. More... | |
void | ReadWeightFile (string Filename, int &Z, int &A, int &I, int &Reaction) |
Select the reaction according to the weight file name. More... | |
double | ExecuteTMVA (string WeightFile, TTree *InputTree) |
Execute the MLP according to the input tree created. More... | |
vector< float > | CreateTMVAInput (IsotopicVector isotopicvector, int t) |
Create input tmva tree to be read by ExecuteTMVA. More... | |
Protected Attributes | |
vector< CLASSReader * > | fReader |
vector< double > | fMLP_Time |
Time vector of the data base. More... | |
vector< string > | fWeightFiles |
All the weight file contains in fTMVAWeightFolder. More... | |
string | fTMVAWeightFolder |
folder containing all the weight file More... | |
bool | fIsStepTime |
true if one TMVA weihgt per step time is requiered otherwise it assumes time is part of the MLP inputs More... | |
map< ZAI, string > | fMapOfTMVAVariableNames |
List of TMVA input variable names (read from fMLPInformationFile ) , name depends on the training step. More... | |
map< string, XS_MLP_DMthPtr > | fDKeyword |
![]() | |
bool | freaded |
string | fInformationFile |
file containing Reactor Type, Fuel type, HM mass, Power, time vector, and TMVA input variables names (looks the manual for format details) More... | |
double | fDBPower |
Power of the data base (read from fMLPInformationFile ) More... | |
double | fDBHMMass |
Heavy metal mass of the data base (read from fMLPInformationFile ) More... | |
string | fDBFType |
Fuel Type (e.g MOX, UOX, ThU, ThPu ...) More... | |
string | fDBRType |
Reactor Type (e.g PWR, FBR-Na, ADS..) More... | |
map< ZAI, pair< double, double > > | fZAILimits |
Fresh fuel range : map<ZAI<min edge ,max edge >> More... | |
map< string, XSM_MthPtr > | fKeyword |
int | fZAIThreshold |
Z threshold for handling nuclei mean cross section (take only ZAI reaction of Z>= fZAIThresold) More... | |
![]() | |
CLASSLogger * | fLog |
Pointer to the Log. More... | |
Defines a XSModel getting mean cross sections from neural network execution.
Define a XSM_MLP. This is the class to predict cross sections with a set of Multi Layer Perceptrons (MLP)
XSM_MLP::XSM_MLP | ( | string | TMVA_Weight_Directory, |
string | InformationFile = "/Data_Base_Info.nfo" |
||
) |
Normal Constructor.
TMVA_Weight_Directory | : The directory where all the TMVA weight are located |
InformationFile | : Name of the information file located in TMVA_Weight_Directory (default : Data_Base_Info.nfo) |
XSM_MLP::XSM_MLP | ( | CLASSLogger * | Log, |
string | TMVA_Weight_Directory, | ||
string | InformationFile = "/Data_Base_Info.nfo" |
||
) |
CLASSLogger Constructor.
log | : The CLASSLogger |
TMVA_Weight_Directory | : The directory where all the TMVA weight are located |
InformationFile | : Name of the information file located in TMVA_Weight_Directory (default : Data_Base_Info.nfo) |
XSM_MLP::~XSM_MLP | ( | ) |
void XSM_MLP::BookTMVAReader | ( | ) |
|
protected |
Create input tmva tree to be read by ExecuteTMVA.
|
protected |
Execute the MLP according to the input tree created.
|
virtual |
Return calculated cross section by the MLP regression.
Implements XSModel.
|
protected |
Find all .xml file in TMVA_Weight_Directory.
Save file names of TMVA weights
|
virtual |
LoadKeyword() : make the correspondance between keyword and reading method.
Reimplemented from XSModel.
Reimplemented in XSM_SFR.
|
virtual |
void XSM_MLP::ReadTimeSteps | ( | const string & | line | ) |
ReadTimeSteps : read the time step of the model.
line | : line suppossed to contain the time step information starts with "k_timestep" keyword |
|
protected |
Select the reaction according to the weight file name.
void XSM_MLP::ReadZAIName | ( | const string & | line | ) |
ReadZAIName : read the zai name in the TMWA MLP model.
line | : line suppossed to contain the ZAI name starts with "k_zainame" keyword |
|
protected |
|
protected |
true if one TMVA weihgt per step time is requiered otherwise it assumes time is part of the MLP inputs
|
protected |
List of TMVA input variable names (read from fMLPInformationFile ) , name depends on the training step.
|
protected |
Time vector of the data base.
|
protected |
|
protected |
folder containing all the weight file
|
protected |
All the weight file contains in fTMVAWeightFolder.