23 int main(
int argc,
char **argv)
41 JParser<> zap(
"Auxiliary program to write 1D ROOT function.");
43 zap[
'F'] =
make_field(formula,
"function, e.g: \"[0]+[1]*x\"");
44 zap[
'T'] =
make_field(name,
"name of ROOT function") =
"user";
48 zap[
'N'] =
make_field(N,
"number of points (for drawing)") = 0;
53 catch(
const exception &error) {
54 FATAL(error.what() << endl);
72 out.WriteTObject(&
f1);
int main(int argc, char **argv)
General purpose messaging.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Auxiliary class to define a range between two values.
Wrapper class around string.
Utility class to parse command line options.
const JPolynome f1(1.0, 2.0, 3.0)
Function.
double getValue(const JScale_t scale)
Get numerical value corresponding to scale.
int getParameter(const std::string &text)
Get parameter number from text string.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Type definition of range.
Empty structure for specification of parser element that is initialised (i.e. does not require input)...