26int main(
int argc,
char**argv)
39 JParser<> zap(
"Example program to test angle of incidence of a photon from a muon on a PMT.");
49 catch(
const exception &error) {
56 const JVersor3D U(getSinThetaC(), 0.0, getCosThetaC());
61 for (
int i = 0; i != numberOfEvents; ++i) {
65 const double x =
gRandom->Uniform(-1.0, +1.0);
66 const double y =
gRandom->Uniform(-1.0, +1.0);
67 const double z =
gRandom->Uniform(-1.0, +1.0);
69 const double dx =
gRandom->Uniform(-1.0, +1.0);
70 const double dy =
gRandom->Uniform(-1.0, +1.0);
71 const double dz =
gRandom->Uniform(-1.0, +1.0);
78 if (
ta.getDistance(pmt) > precision) {
84 if (fabs(
tb.getDirection().getDot(U) -
ta.getDot(pmt)) > precision) {
90 DEBUG(
"dot (1) " <<
tb.getDirection().getDot(U) <<
endl);
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
int main(int argc, char **argv)
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).