1 #ifndef __JTRIGGER__JMATCH__
2 #define __JTRIGGER__JMATCH__
14 namespace JPP {
using namespace JTRIGGER; }
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&);
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 =0
Match operator.
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 ~JMatch()
Virtual destructor.
Function object interface for hit matching.
bool(* pFun)(const JHit_t &, const JHit_t &)
pointer to match function
then echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first
int count(const JHit_t &hit, T __begin, T __end) const
Get number of matches between given hit and data.
do set_variable OUTPUT_DIRECTORY $WORKDIR T
Template class for object cloning.
virtual bool operator()(const JHit_t &first, const JHit_t &second) const override
Match operator.
JMatchHelper(pFun match)
Constructor.
alias put_queue eval echo n