CLASS  5.1
Fuel Cycle Simulator
XSM_SFR Class Reference

Defines a XSModel getting mean cross sections from neural network execution. More...

#include <XSM_SFR.hxx>

Inheritance diagram for XSM_SFR:
XSM_MLP XSModel CLASSObject

Public Member Functions

void FixTMVAVariable (string VariableName, double VariableValue)
 
void SetFixedVariablesValues (map< string, double > FixedParameters)
 
void BookTMVAReader ()
 
Constructor/Desctructor
 XSM_SFR (string TMVA_Weight_Directory, map< string, double > FixedParameters, string InformationFile="/Data_Base_Info.nfo")
 Normal Constructor. More...
 
 XSM_SFR (CLASSLogger *Log, string TMVA_Weight_Directory, map< string, double > FixedParameters, string InformationFile="/Data_Base_Info.nfo")
 CLASSLogger Constructor. More...
 
 ~XSM_SFR ()
 
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 ReadInputParameter (const string &line)
 ReadZAIName : read the zai name in the TMWA MLP model. More...
 
void ReadLine (string line)
 ReadLine : read a line. More...
 
- Public Member Functions inherited from XSM_MLP
void BookTMVAReader ()
 
EvolutionData GetCrossSections (IsotopicVector IV, double t=0)
 Return calculated cross section by the MLP regression. More...
 
 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 ()
 
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...
 
- Public Member Functions inherited from XSModel
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...
 
- Public Member Functions inherited from CLASSObject
 CLASSObject ()
 Normal Constructor. More...
 
 CLASSObject (CLASSLogger *log)
 Log Constructor. More...
 
virtual CLASSObjectClone ()
 Correct way to copy a CLASSObject in case of derivation. More...
 
void SetLog (CLASSLogger *log)
 Set the CLASSLogger. More...
 
CLASSLoggerGetLog ()
 Return the Pointer to the Log. More...
 

Additional Inherited Members

- Protected Member Functions inherited from XSM_MLP
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 inherited from XSM_MLP
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_DMthPtrfDKeyword
 
- Protected Attributes inherited from XSModel
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_MthPtrfKeyword
 
int fZAIThreshold
 Z threshold for handling nuclei mean cross section (take only ZAI reaction of Z>= fZAIThresold) More...
 
- Protected Attributes inherited from CLASSObject
CLASSLoggerfLog
 Pointer to the Log. More...
 

Detailed Description

Defines a XSModel getting mean cross sections from neural network execution.

Define a XSM_SFR. This is the class to predict cross sections with a set of Multi Layer Perceptrons (MLP)

Authors
Marc
Version
1.0

Constructor & Destructor Documentation

◆ XSM_SFR() [1/2]

XSM_SFR::XSM_SFR ( string  TMVA_Weight_Directory,
map< string, double >  FixedParameters,
string  InformationFile = "/Data_Base_Info.nfo" 
)

Normal Constructor.

Parameters
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)
IsTimeStep: if true , one TMVA weihgt per step time is requiered otherwise it assumes time is part of the MLP inputs

◆ XSM_SFR() [2/2]

XSM_SFR::XSM_SFR ( CLASSLogger Log,
string  TMVA_Weight_Directory,
map< string, double >  FixedParameters,
string  InformationFile = "/Data_Base_Info.nfo" 
)

CLASSLogger Constructor.

Parameters
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)
IsTimeStep: if true , one TMVA weihgt per step time is requiered otherwise it assumes time is part of the MLP inputs

◆ ~XSM_SFR()

XSM_SFR::~XSM_SFR ( )

Member Function Documentation

◆ BookTMVAReader()

void XSM_SFR::BookTMVAReader ( )

◆ FixTMVAVariable()

void XSM_SFR::FixTMVAVariable ( string  VariableName,
double  VariableValue 
)

◆ LoadKeyword()

void XSM_SFR::LoadKeyword ( )
virtual

LoadKeyword() : make the correspondance between keyword and reading method.

Reimplemented from XSM_MLP.

◆ ReadInputParameter()

void XSM_SFR::ReadInputParameter ( const string &  line)

ReadZAIName : read the zai name in the TMWA MLP model.

Parameters
line: line suppossed to contain the ZAI name starts with "k_zainame" keyword

◆ ReadLine()

void XSM_SFR::ReadLine ( string  line)
virtual

ReadLine : read a line.

Parameters
line: line to read

Reimplemented from XSM_MLP.

◆ ReadTimeSteps()

void XSM_SFR::ReadTimeSteps ( const string &  line)

ReadTimeSteps : read the time step of the model.

Parameters
line: line suppossed to contain the time step information starts with "k_timestep" keyword

◆ SetFixedVariablesValues()

void XSM_SFR::SetFixedVariablesValues ( map< string, double >  FixedParameters)

The documentation for this class was generated from the following files: