#include "km3net-dataformat/offline/Evt.hh" #include "km3net-dataformat/online/JDAQEvent.hh" #include "km3net-dataformat/definitions/fitparameters.hh" #include "JReconstruction/JEvt.hh" #include "JReconstruction/JEvtToolkit.hh" #include "JAAnet/JAAnetToolkit.hh" #include "JMath/JMathToolkit.hh" namespace JRECONSTRUCTION { using KM3NETDAQ::JDAQEvent; /** * Event selection. * * \param tev DAQ event * \param evt input event * \param pE pointer to Monte Carlo event * \return true if selected; else false */ extern "C" bool filter(const JDAQEvent& tev, const JEvt& evt, const Evt* const pE) { using namespace std; using namespace JPP; /* if (!evt.empty() && evt[0].getQ() >= 100) { if (pE != NULL) { Trk muon; for (const auto& t1 : pE->mc_trks) { if (is_muon(t1)) { if (t1.E > muon.E) { muon = t1; } } } return (is_muon(muon) && getAngle(getDirection(event[0]), getDirection(muon)) > 5.0); } } */ return true; } }