8#include "TGraphErrors.h"
25int main(
int argc,
char **argv)
36 JParser<> zap(
"Auxiliary application to fit mechanical constants.");
38 zap[
'f'] =
make_field(inputFile,
"input file; see https://git.km3net.de/calibration/input_tables");
44 catch(
const exception &error) {
49 const double error = 0.2;
57 ifstream in(inputFile.c_str());
69 for (
double x, y; in >> x >> y; ) {
71 AddPoint(&
g1, x, y, 0.0, error);
85 TF1 f1(
"f1",
"[0]*(x + [1]*log(1.0 - [2]*x))");
87 f1.SetParameter(0,
ymax / xmax);
88 f1.SetParameter(1, 0.25 * xmax);
89 f1.SetParameter(2, 0.50 / xmax);
96 cout <<
"T_x = " <<
FIXED(5,2) << f1.GetParameter(0) <<
" [s^2/m^2] * v_x^2" <<
endl;
99 cout <<
"a [m^-1] " <<
FIXED(7,5) << f1.GetParameter(2) <<
endl;
int main(int argc, char **argv)
General purpose messaging.
#define DEBUG(A)
Message macros.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Double_t g1(const Double_t x)
Function.
Auxiliary class to specify white space character(s) in currect locale.
Template definition of a multi-dimensional oscillation probability interpolation table.
Utility class to parse command line options.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary data structure for floating point format specification.