23int main(
int argc,
char **argv)
28 typedef JToken<
';'> JToken_t;
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";
46 zap[
'x'] =
make_field(x,
"abscissa range") = JRange_t();
48 zap[
'N'] =
make_field(N,
"number of points (for drawing)") = 0;
53 catch(
const exception &error) {
54 FATAL(error.what() << endl);
66 for (vector<JToken_t>::const_iterator i = parameters.begin(); i != parameters.end(); ++i) {
67 f1.SetParameter(getParameter(*i), getValue(*i,&f1));
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.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Empty structure for specification of parser element that is initialised (i.e. does not require input)...