#include #include #include #include #include "km3net-dataformat/online/JDAQHit.hh" #include "JDAQ/JDAQSuperFrameIO.hh" #include "JDetector/JDetector.hh" #include "JDetector/JDetectorToolkit.hh" #include "JDetector/JModuleRouter.hh" #include "JTrigger/JSuperFrame2D.hh" #include "JTrigger/JHitR0.hh" #include "JTrigger/JHitR1.hh" #include "JTrigger/JHitR2.hh" #include "JTrigger/JMatchL0.hh" #include "JTrigger/JBuildL0.hh" #include "JTrigger/JBuildL1.hh" #include "JTrigger/JBuildL2.hh" #include "JTrigger/JPreprocessor.hh" #include "Jeep/JParser.hh" #include "Jeep/JMessage.hh" /** * Print data. * * \param out output stream * \param title title * \param __begin begin of data * \param __end end of data */ template inline void print(std::ostream& out, const char* const title, T __begin, T __end) { using namespace std; out << title; for (T i = __begin; i != __end; ++i) { out << ' ' << setw(4) << (int) i->getT(); } out << endl; } /** * \file * * Example program to test JTRIGGER::JPreprocessor. * \author mdejong */ int main(int argc, char **argv) { using namespace std; using namespace KM3NETDAQ; using namespace JPP; vector data; double Tmax_ns; JPreprocessor option; int debug; try { JParser<> zap("Example program to test hit pre-processing with user data."\ "\nformat: -u \"(