CLASS  5.1
Fuel Cycle Simulator
XSM_SFR.hxx
Go to the documentation of this file.
1 #ifndef _XSM_SFR_HXX
2 #define _XSM_SFR_HXX
3 
12 #include <string>
13 #include <fstream>
14 #include <iostream>
15 #include <map>
16 #include <vector>
17 
18 #include "TTree.h"
19 
20 #include "XSM_MLP.hxx"
21 
22 typedef long long int cSecond;
23 using namespace std;
24 
25 
26 class XSM_SFR;
27 #ifndef __CINT__
28 typedef void (XSM_SFR::*XS_SFR_DMthPtr)( const string & ) ;
29 #endif
30 //-----------------------------------------------------------------------------//
32 
41 //________________________________________________________________________
42 
43 
44 class XSM_SFR : public XSM_MLP
45 {
46  public :
47 
52 
53  //{
55 
61  XSM_SFR(string TMVA_Weight_Directory,map<string,double> FixedParameters,string InformationFile = "/Data_Base_Info.nfo");
62  //}
63 
64  //{
66 
73  XSM_SFR(CLASSLogger* Log,string TMVA_Weight_Directory,map<string,double> FixedParameters,string InformationFile = "/Data_Base_Info.nfo");
74  //}
75 
76  ~XSM_SFR();
78 
83 
84  //{
86  void LoadKeyword();
87  //}
88 
89  //{
91 
94  void ReadTimeSteps(const string &line);
95  //}
96 
97  //{
99 
102  void ReadInputParameter(const string &line);
103  //}
104  //{
106 
109  void ReadLine(string line);
110  //}
111 
113  void FixTMVAVariable(string VariableName,double VariableValue);
114 
115  void SetFixedVariablesValues(map<string,double> FixedParameters);
116  void BookTMVAReader();
117 
118  private :
119 
120  void GetMLPWeightFiles();
121  vector<float> CreateTMVAInput(IsotopicVector isotopicvector,int TimeStep = 0);
122 
123  vector<double> fMLP_Time;
124  vector<string> fWeightFiles;
125  string fTMVAWeightFolder;
126  bool fIsStepTime;
127  vector<string> fTMVAVariableNames;
128  vector<bool> fTMVAFixedVariable;
129  vector<double> fTMVAFixedVariableValues;
130 
131 #ifndef __CINT__
132  map<string, XS_SFR_DMthPtr> fDKeyword;
133 #endif
134 };
135 
136 #endif
137 
long long int cSecond
Definition: XSM_SFR.hxx:22
Defines a XSModel getting mean cross sections from neural network execution.
Definition: XSM_SFR.hxx:44
Allows to store & operate on radioactive sample.
Definition: IsotopicVector.hxx:37
Definition: CLASSBackEndDict.cxx:37
Defines a XSModel getting mean cross sections from neural network execution.
Definition: XSM_MLP.hxx:45
void(XSM_SFR::* XS_SFR_DMthPtr)(const string &)
Definition: XSM_SFR.hxx:28
Object to handle output messages.
Definition: CLASSLogger.hxx:144
Header file for XSM_MLP class.