Skip to content
Snippets Groups Projects
Commit 55046c16 authored by Lorenzo Moneta's avatar Lorenzo Moneta
Browse files

adapt for changes in IntegratorOption class

git-svn-id: http://root.cern.ch/svn/root/trunk@36797 27541ba8-7e3a-0410-8455-c3a389f83636
parent 39e3509c
No related branches found
No related tags found
No related merge requests found
......@@ -89,11 +89,11 @@ GSLMCIntegrator::GSLMCIntegrator(MCIntegration::Type type, double absTol, double
// use the default options for the needed extra parameters
// use the default options for the needed extra parameters
if (fType == MCIntegration::kVEGAS) {
IOptions * opts = IntegratorMultiDimOptions::GetDefault("VEGAS");
IOptions * opts = IntegratorMultiDimOptions::FindDefault("VEGAS");
if (opts != 0) SetParameters( VegasParameters(*opts) );
}
else if (fType == MCIntegration::kMISER) {
IOptions * opts = IntegratorMultiDimOptions::GetDefault("MISER");
IOptions * opts = IntegratorMultiDimOptions::FindDefault("MISER");
if (opts != 0) SetParameters( MiserParameters(*opts) );
}
......@@ -116,11 +116,11 @@ GSLMCIntegrator::GSLMCIntegrator(const char * type, double absTol, double relTol
fRng->Allocate();
// use the default options for the needed extra parameters
if (fType == MCIntegration::kVEGAS) {
IOptions * opts = IntegratorMultiDimOptions::GetDefault("VEGAS");
IOptions * opts = IntegratorMultiDimOptions::FindDefault("VEGAS");
if (opts != 0) SetParameters( VegasParameters(*opts) );
}
else if (fType == MCIntegration::kMISER) {
IOptions * opts = IntegratorMultiDimOptions::GetDefault("MISER");
IOptions * opts = IntegratorMultiDimOptions::FindDefault("MISER");
if (opts != 0) SetParameters( MiserParameters(*opts) );
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment