Go to the documentation of this file. 1 #ifndef __JTRIGGER__JMATCH__
2 #define __JTRIGGER__JMATCH__
24 template<
class JHit_t>
43 virtual bool operator()(
const JHit_t& first,
const JHit_t& second)
const = 0;
50 template<
class JHit_t>
52 public JClonable< JMatch<JHit_t> , JMatchHelper<JHit_t> >
56 typedef bool (*
pFun)(
const JHit_t&,
const JHit_t&);
75 virtual bool operator()(
const JHit_t& first,
const JHit_t& second)
const
77 return match(first, second);
91 template<
class JHit_t>
virtual ~JMatch()
Virtual destructor.
virtual bool operator()(const JHit_t &first, const JHit_t &second) const
Match operator.
Function object interface for hit matching.
JMatchHelper(pFun match)
Constructor.
Auxiliary class to handle pointer to match function.
bool(* pFun)(const JHit_t &, const JHit_t &)
pointer to match function
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
JMatchHelper< JHit_t > make_match(bool(*match)(const JHit_t &, const JHit_t &))
Auxiliary method to make JMatch object based on pointer to match function.
virtual bool operator()(const JHit_t &first, const JHit_t &second) const =0
Match operator.
Template class for object cloning.