22int main(
int argc,
char**argv)
33 JParser<> zap(
"Example program to test intersection of straight line with cylinder.");
42 catch(
const exception &error) {
43 FATAL(error.what() << endl);
46 gRandom->SetSeed(seed);
57 for (
int i = 0; i != numberOfEvents; ++i) {
61 const double x =
gRandom->Uniform(-1.0, +1.0);
62 const double y =
gRandom->Uniform(-1.0, +1.0);
63 const double z =
gRandom->Uniform(-1.0, +1.0);
86 const int N =
sizeof(path)/
sizeof(path[0]);
90 for (
int i = 0; i != N; ++i) {
92 axis.
move(path[i].first);
103 for (
int i = 0; i != N; ++i) {
109 << (
cylinder.getDistance(pos[i]) < 1e-3*precision ?
"in" :
"out") <<
endl;
int main(int argc, char **argv)
General purpose messaging.
#define DEBUG(A)
Message macros.
#define ASSERT(A,...)
Assert macro.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
I/O formatting auxiliaries.
Data structure for circle in two dimensions.
Data structure for vector in two dimensions.
void move(const double step)
Move vertex along this axis.
const JPosition3D & getPosition() const
Get position.
Data structure for vector in three dimensions.
double getY() const
Get y position.
double getZ() const
Get z position.
double getX() const
Get x position.
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).
Auxiliary data structure for floating point format specification.
Auxiliary data structure for floating point format specification.