#include #include #include #include "JDetector/JTimeRange.hh" #include "JDetector/JPMTTransitTimeGenerator.hh" #include "Jeep/JParser.hh" #include "Jeep/JMessage.hh" /** * \file * * Example program to determine PMT transit time probability. * \author mdejong */ int main(int argc, char **argv) { using namespace std; using namespace JPP; JTimeRange T_ns; int debug; try { JParser<> zap("Example program to determine PMT transit time probability."); zap['T'] = make_field(T_ns); zap['d'] = make_field(debug) = 3; zap(argc, argv); } catch(const exception &error) { FATAL(error.what() << endl); } const double Plower = getTransitionTime.getProbability(T_ns.getLowerLimit()); const double Pupper = getTransitionTime.getProbability(T_ns.getUpperLimit()); NOTICE("Lower probability "<< Plower << endl); NOTICE("Upper probability "<< Pupper << endl); }