1 #ifndef Parameters_hxx_seen 2 #define Parameters_hxx_seen 11 #include "UnitsParser.hxx" 17 std::runtime_error(
"Error reading parameters") {
26 std::runtime_error(
"No such parameter") {
76 bool HasParameter(std::string);
79 int GetParameterI(std::string);
82 double GetParameterD(std::string);
85 std::string GetParameterS(std::string);
88 void ClearMapOfParameters();
101 void ReadParamOverrideFile(TString filename);
104 int LoadParametersFile(TString packageName, UInt_t tryFileMode=0,
bool fixParameters =
false);
107 void LoadParametersFiles(
const std::vector<std::string>& packageNames,
bool fixed=
false);
115 void CheckReadParamOverrideFilePointPassed(std::string parameterName);
130 void ReadInputFile(TString filename, TString dirName =
"", UInt_t tryFileMode = 0,
bool fixParameters =
false);
133 void PrintListOfParameters();
138 int TryLoadingParametersFile(std::string parameterName);
141 std::map<std::string, std::string, std::less<std::string> > mapOfParameters;
144 typedef std::map<std::string, std::string, std::less<std::string> >::iterator mapIterator;
148 std::set<std::string> fixedParameters;
155 bool fReadParamOverrideFilePointPassed;
UnitsParser * GetUnitsTableParser()
This exception class indicates an error when reading a parameters file.
static Parameters & Get(void)
void SetReadParamOverrideFilePointPassed()
Set whether the point in which the overwride parameters file is read is passed or not...