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;
 
   55     int count(
const JHit_t& hit, T __begin, T __end)
 const 
   59       for (T i = __begin; i != __end; ++i) {
 
   60         if ((*
this)(hit,*i)) {
 
   73   template<
class JHit_t>
 
   75     public JClonable< JMatch<JHit_t> , JMatchHelper<JHit_t> >
 
   79     typedef bool (*
pFun)(
const JHit_t&, 
const JHit_t&);    
 
   98     virtual bool operator()(
const JHit_t& first, 
const JHit_t& second)
 const override  
  100       return match(first, second);
 
  114   template<
class JHit_t>
 
Auxiliary class to handle pointer to match function.
 
virtual bool operator()(const JHit_t &first, const JHit_t &second) const override
Match operator.
 
JMatchHelper(pFun match)
Constructor.
 
bool(* pFun)(const JHit_t &, const JHit_t &)
pointer to match function
 
Function object interface for hit matching.
 
int count(const JHit_t &hit, T __begin, T __end) const
Get number of matches between given hit and data.
 
virtual ~JMatch()
Virtual destructor.
 
virtual bool operator()(const JHit_t &first, const JHit_t &second) const =0
Match operator.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
Auxiliary classes and methods for triggering.
 
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.
 
Template class for object cloning.