#ifndef __JTRIGGER__JDAQHITSELECTOR__ #define __JTRIGGER__JDAQHITSELECTOR__ #include "km3net-dataformat/online/JDAQHit.hh" #include "JLang/JClonable.hh" /** * \author mdejong */ namespace JTRIGGER {} namespace JPP { using namespace JTRIGGER; } namespace JTRIGGER { using KM3NETDAQ::JDAQHit; using JLANG::JClonable; /** * Auxiliary class to select DAQ hits. */ struct JDAQHitSelector : public JClonable { /** * Virtual destructor. */ virtual ~JDAQHitSelector() {} /** * DAQ hit selection. * * \param hit DAQ hit * \return true to select; else false */ virtual bool operator()(const JDAQHit& hit) const = 0; }; /** * Default class to select DAQ hits. */ struct JDAQHitDefaultSelector final : public JClonable { /** * DAQ hit selection. * * \param hit DAQ hit * \return true to select; else false */ virtual bool operator()(const JDAQHit& hit) const override { return true; } }; } #endif