13 #if ROOT_VERSION_CODE <= ROOT_VERSION(5,18,0)
14 #define _OLD_GSL_INTEGRATION_ENUM_TYPES_
22 ROOT::Math::IntegrationOneDim::Type
30 #ifdef _OLD_GSL_INTEGRATION_ENUM_TYPES_
32 if (t==
"adaptive")
return ROOT::Math::IntegrationOneDim::ADAPTIVE;
33 else if (t==
"adaptive_singular")
return ROOT::Math::IntegrationOneDim::ADAPTIVESINGULAR;
34 else if (t==
"non_adaptive")
return ROOT::Math::IntegrationOneDim::NONADAPTIVE;
37 <<
"Unknown 1-dim GSL integration type = " << type
38 <<
". Setting it to default [adaptive].";
40 return ROOT::Math::IntegrationOneDim::ADAPTIVE;
44 if (t==
"gauss")
return ROOT::Math::IntegrationOneDim::kGAUSS;
45 else if (t==
"adaptive")
return ROOT::Math::IntegrationOneDim::kADAPTIVE;
46 else if (t==
"adaptive_singular")
return ROOT::Math::IntegrationOneDim::kADAPTIVESINGULAR;
47 else if (t==
"non_adaptive")
return ROOT::Math::IntegrationOneDim::kNONADAPTIVE;
50 <<
"Unknown 1-dim GSL integration type = " << type
51 <<
". Setting it to default [adaptive].";
53 return ROOT::Math::IntegrationOneDim::kADAPTIVE;
58 ROOT::Math::IntegrationMultiDim::Type
65 #ifdef _OLD_GSL_INTEGRATION_ENUM_TYPES_
67 if (t==
"adaptive")
return ROOT::Math::IntegrationMultiDim::ADAPTIVE;
68 else if (t==
"plain")
return ROOT::Math::IntegrationMultiDim::PLAIN;
69 else if (t==
"vegas")
return ROOT::Math::IntegrationMultiDim::VEGAS;
70 else if (t==
"miser")
return ROOT::Math::IntegrationMultiDim::MISER;
73 <<
"Unknown N-dim GSL integration type = " << type
74 <<
". Setting it to default [adaptive].";
76 return ROOT::Math::IntegrationMultiDim::ADAPTIVE;
80 if (t==
"adaptive")
return ROOT::Math::IntegrationMultiDim::kADAPTIVE;
81 else if (t==
"plain")
return ROOT::Math::IntegrationMultiDim::kPLAIN;
82 else if (t==
"vegas")
return ROOT::Math::IntegrationMultiDim::kVEGAS;
83 else if (t==
"miser")
return ROOT::Math::IntegrationMultiDim::kMISER;
86 <<
"Unknown N-dim GSL integration type = " << type
87 <<
". Setting it to default [adaptive].";
89 return ROOT::Math::IntegrationMultiDim::kADAPTIVE;
ROOT::Math::IntegrationOneDim::Type Integration1DimTypeFromString(string type)
ROOT::Math::IntegrationMultiDim::Type IntegrationNDimTypeFromString(string type)
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
string ToLower(string input)