Commit 8ad4edd1 authored by Stefan Hoeche's avatar Stefan Hoeche

moved readin of MEPSNLO_PDFCT and MEPSNLO_DADS to run parameter

parent ed8374ff
......@@ -284,6 +284,8 @@ void Run_Parameter::Init(std::string path,std::string file,int argc,char* argv[]
for (int i(1);i<4;++i) seedstr+="_"+ToString(gen.m_seeds[i]);
gen.SetVariable("RNG_SEED",ToString(gen.m_seeds[0])+seedstr);
gen.SetVariable("MEPSNLO_PDFCT",ToString(dr.GetValue<int>("MEPSNLO_PDFCT",1)));
gen.SetVariable("MCNLO_DADS",ToString(dr.GetValue<int>("MCNLO_DADS",1)));
gen.SetVariable("PB_USE_FMM",ToString(dr.GetValue<int>("PB_USE_FMM",0)));
gen.SetVariable("HISTOGRAM_OUTPUT_PRECISION",ToString
(dr.GetValue<int>("HISTOGRAM_OUTPUT_PRECISION",6)));
......
......@@ -29,12 +29,8 @@ Single_Process::Single_Process() :
m_lastbxs(0.0), m_lastflux(0.0),
m_zero(false), m_dads(true), m_pdfcts(true)
{
Data_Reader reader(" ",";","!","=");
reader.AddComment("#");
reader.SetInputPath(rpa->GetPath());
reader.SetInputFile(rpa->gen.Variable("ME_DATA_FILE"));
m_pdfcts = reader.GetValue<size_t>("MEPSNLO_PDFCT",1);
m_dads = reader.GetValue<size_t>("MCNLO_DADS",1);
m_pdfcts = ToType<size_t>(rpa->gen.Variable("MEPSNLO_PDFCT"));
m_dads = ToType<size_t>(rpa->gen.Variable("MCNLO_DADS"));
}
Single_Process::~Single_Process()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment