28int main(
int argc,
char**argv)
53 catch(
const exception &error) {
58 TH1D hx(
"hx",
NULL, 101, -1.0, +1.0);
59 TH1D hy(
"hy",
NULL, 101, -1.0, +1.0);
60 TH1D hz(
"hz",
NULL, 101, -1.0, +1.0);
67 for (
int i = 0; i != numberOfEvents; ++i) {
77 const double x =
gRandom->Gaus(0.0, sigma);
78 const double y =
gRandom->Gaus(0.0, sigma);
79 const double z =
gRandom->Gaus(0.0, sigma);
81 const double dx =
gRandom->Uniform(-1, +1);
82 const double dy =
gRandom->Uniform(-1, +1);
83 const double dz =
gRandom->Uniform(-1, +1);
92 hx.Fill(
vertex.getX() - result.getX());
93 hy.Fill(
vertex.getY() - result.getY());
94 hz.Fill(
vertex.getZ() - result.getZ());
97 Qy.put(
vertex.getY() - result.getY());
98 Qz.put(
vertex.getZ() - result.getZ());
101 if (
debug >= debug_t) {
111 out << hx << hy << hz;
117 ASSERT(numberOfEvents > 0);
120 ASSERT(fabs(
Qy.getMean()) <= precision);
121 ASSERT(fabs(
Qz.getMean()) <= precision);
General purpose messaging.
#define ASSERT(A,...)
Assert macro.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Linear fit of JFIT::JPoint3D.
int main(int argc, char **argv)
I/O formatting auxiliaries.
Data structure for vector in three dimensions.
Data structure for normalised vector in three dimensions.
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).