Skip to content
Snippets Groups Projects
Commit f2969009 authored by BaM's avatar BaM
Browse files

XS_MLP : correction of a possible bug when reading input xml file

DecayDataBase, adding construction without specifying the logFile
IsotopicVector : Add *= operator
Pool bug correction on SetOutBackEnd facility method



git-svn-id: svn+ssh://svn.in2p3.fr/class@446 0e7d625b-0364-4367-a6be-d5be4a48d228
parent dbeb4d2a
No related branches found
No related tags found
No related merge requests found
......@@ -179,7 +179,7 @@ void XSM_MLP::GetMLPWeightFiles()
string FileName= fichierLu->d_name ;
if(FileName != "." && FileName != ".." )
{
if(FileName[FileName.size()-3]=='x' && FileName[FileName.size()-2]=='m' && FileName[FileName.size()-1]=='l' )
if(FileName[FileName.size()-3]=='x' && FileName[FileName.size()-2]=='m' && FileName[FileName.size()-1]=='l' && FileName[0]!='.' )
fWeightFiles.push_back(FileName);
}
......@@ -282,6 +282,7 @@ TTree* XSM_MLP::CreateTMVAInputTree(IsotopicVector isotopicvector,int TimeStep)
//________________________________________________________________________
double XSM_MLP::ExecuteTMVA(string WeightFile,TTree* InputTree)
{
DBGV( "File :" << WeightFile);
// --- Create the Reader object
TMVA::Reader *reader = new TMVA::Reader( "Silent" );
......@@ -327,6 +328,7 @@ double XSM_MLP::ExecuteTMVA(string WeightFile,TTree* InputTree)
Float_t val = (reader->EvaluateRegression( methodName ))[0];
delete reader;
DBGL
return (double)val;
}
......
......@@ -57,6 +57,18 @@ class DecayDataBank : public CLASSObject
/// Normal Constructor.
DecayDataBank();
//{
/// Special Constructor.
/*!
Use to load a CLASSLogger
\param CLASSLogger CLASSLogger used for the log...
\param DB_index_file path to the index file
\param setlog if the log are stored in the CLASSLogger
\param olfreadmethod true if the old format of EvolutionData are used (ie without the key word such as Inv, XSFiss...)
*/
DecayDataBank(string DB_index_file, bool olfreadmethod = false );
//}
//{
/// Special Constructor.
/*!
......
......@@ -110,6 +110,7 @@ public :
IsotopicVector& operator+=(IsotopicVector const& IVb); //!<....
IsotopicVector& operator-=(IsotopicVector const& IVb); //!<....
IsotopicVector& operator*=(IsotopicVector const& IVb); //!<....
IsotopicVector& operator*=(double const& factor); //!<....
bool operator <(const IsotopicVector& isotopicvector) const; //!< IsotopicVector Comparator
//@}
......
......@@ -86,8 +86,8 @@ public :
void SetOutBackEndFacility(CLASSBackEnd* befacility)
{ fOutBackEndFacility = befacility;
SetIsStorageType();
fPutToWaste = true; } //!< Set the Pointer to the Storage
SetIsStorageType(false);
fPutToWaste = false; } //!< Set the Pointer to the Storage
void SetPutToWaste(bool val) { fPutToWaste = val; } //!< Set True if IV goes to waste after cooling false instead
......
......@@ -33,6 +33,20 @@ DecayDataBank::DecayDataBank():CLASSObject(new CLASSLogger("DecayDataBank.log"))
//________________________________________________________________________
//________________________________________________________________________
//________________________________________________________________________
//________________________________________________________________________
DecayDataBank::DecayDataBank(string DB_index_file, bool olfreadmethod):CLASSObject(new CLASSLogger("DecayDataBank.log"))
{
fDataBaseIndex = DB_index_file;
fOldReadMethod = olfreadmethod;
// Warning
INFO << " A EvolutionData has been define :" << endl;
INFO << "\t His index is : \"" << DB_index_file << "\"" << endl << endl;
}
//________________________________________________________________________
DecayDataBank::DecayDataBank(CLASSLogger* log, string DB_index_file, bool olfreadmethod):CLASSObject(log)
......
......@@ -248,6 +248,17 @@ IsotopicVector& IsotopicVector::operator*=(const IsotopicVector& IVa)
}
//________________________________________________________________________
IsotopicVector& IsotopicVector::operator*=(const double& factor)
{
Multiply(factor);
return *this;
}
//________________________________________________________________________
bool IsotopicVector::operator<(const IsotopicVector& isotopicvector) const
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment