#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/JTriggerParameters.hh" #include "JTrigger/JTimesliceL1.hh" #include "JTrigger/JTimesliceRouter.hh" #include "JTrigger/JSuperFrame1D.hh" #include "JTrigger/JSuperFrame2D.hh" #include "JTrigger/JBuildL1.hh" #include "JTrigger/JBuildL2.hh" #include "JTrigger/JHitToolkit.hh" #include "Jeep/JParser.hh" #include "Jeep/JMessage.hh" namespace { using KM3NETDAQ::JDAQTimeslice; using namespace JPP; /** * Print time slice. * * \param out output stream * \param title title * \param timeslice time slice */ template void print(std::ostream& out, const std::string& title, JTimeslice& timeslice) { using namespace std; using namespace JPP; out << title << endl; for (typename JTimeslice::const_iterator frame = timeslice.begin(); frame != timeslice.end(); ++frame) { out << "module " << frame->getModuleID(); for (typename JTimeslice::value_type::const_iterator hit = frame->begin(); hit != frame->end(); ++hit) { out << ' ' << JHitToolkit::getT(*hit); } out << endl; } } } /** * \file * * Example program to test JTRIGGER::JBuildL1 and JTRIGGER::JBuildL2 hit coincidence building with user data. * \author mdejong */ int main(int argc, char **argv) { using namespace std; using namespace KM3NETDAQ; using namespace JPP; vector data; JTriggerParameters parameters; int debug; try { JParser<> zap("Example program to test hit coincidence building with user data."\ "\nformat: -u \"(