#ifndef __JRECONSTRUCTION__JEVENTSELECTOR__ #define __JRECONSTRUCTION__JEVENTSELECTOR__ #include "km3net-dataformat/offline/Evt.hh" #include "km3net-dataformat/online/JDAQEvent.hh" #include "JReconstruction/JEvt.hh" #include "Jeep/JFunctionAdaptor.hh" /** * \author mdejong */ namespace JRECONSTRUCTION {} namespace JPP { using namespace JRECONSTRUCTION; } namespace JRECONSTRUCTION { using KM3NETDAQ::JDAQEvent; using JEEP::JFunctionAdaptor; /** * Event selector. * * The default constructor will select all events.\n * A different method can dynamically be loaded from a shared library via JEEP::JFunctionAdaptor. */ struct JEventSelector : public JFunctionAdaptor { /** * Default event selection. * * \param tev DAQ event * \param evt input event * \param pE pointer to Monte Carlo event * \return true */ static inline bool select(const JDAQEvent& tev, const JEvt& evt, const Evt* const pE) { return true; } /** * Default constructor. */ JEventSelector() { this->function = select; this->symbol = "filter"; } }; } #endif