69 Bool_t success =
true;
74 for (UInt_t i=1; i<
fLines.size(); i++) {
78 Ssiz_t pos = line.First(
'#');
81 for (Int_t i=pos; i<line.Length(); i++) {
88 line.Remove(TString::kTrailing,
' ');
93 tree_parse_info<> info = ast_parse(line.Data(),
function, space_p);
99 std::cerr << std::endl <<
"**ERROR**: FUNCTIONS parse failed in line " <<
fLines[i].fLineNo << std::endl;
107 for (UInt_t i=0; i<
fFuncs.size(); i++) {
108 for (UInt_t j=i+1; j<
fFuncs.size(); j++) {
110 std::cerr << std::endl <<
"**ERROR**: function number " <<
fFuncs[i].GetFuncNo();
111 std::cerr <<
" is at least twice present! Fix this first.";
112 std::cerr << std::endl;
135 Bool_t success =
true;
137 for (UInt_t i=0; i<
fFuncs.size(); i++) {
138 success =
fFuncs[i].CheckMapAndParamRange(mapSize, paramSize);
161 std::cerr << std::endl <<
"**ERROR**: Couldn't find FUN" << funNo <<
" for evaluation";
162 std::cerr << std::endl;
186 return fFuncs[idx].GetFuncNo();
201 for (UInt_t i=0; i<
fFuncs.size(); i++) {
229 funStr = *
fFuncs[idx].GetFuncString();
Bool_t fValid
true = function handler has valid functions
virtual Bool_t CheckMapAndParamRange(UInt_t mapSize, UInt_t paramSize)
virtual TString GetFuncString(UInt_t idx)
virtual Int_t GetFuncNo(UInt_t idx)
virtual double Eval(Int_t funNo, std::vector< Int_t > map, std::vector< double > param, PMetaData metaData)
PMsrLines fLines
stores the msr-file FUNCTIONS block as clear text.
virtual ~PFunctionHandler()
std::vector< PFunction > fFuncs
vector of all evaluatable functions
std::vector< PMsrLineStructure > PMsrLines
PFunctionHandler(PMsrLines lines)
virtual Int_t GetFuncIndex(Int_t funcNo)
std::vector< TString > fFuncComment
vector of prepended function comments