Jpp  15.0.4
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JMatchFixer.hh
Go to the documentation of this file.
1 #ifndef __JTRIGGER__JMATCHFIXER__
2 #define __JTRIGGER__JMATCHFIXER__
3 
4 #include "JLang/JClonable.hh"
5 #include "JTrigger/JMatch.hh"
6 
7 
8 /**
9  * \file
10  *
11  * Match fixer.
12  * \author mdejong
13  */
14 namespace JTRIGGER {}
15 namespace JPP { using namespace JTRIGGER; }
16 
17 namespace JTRIGGER {
18 
19  using JLANG::JClonable;
20 
21  /**
22  * Auxiliary class to fix match.
23  */
24  template<class JHit_t>
25  class JMatchFixer :
26  public JClonable< JMatch<JHit_t> , JMatchFixer<JHit_t> >
27  {
28  public:
29  /**
30  * Constructor
31  *
32  * \param match match fixer
33  */
34  JMatchFixer(const bool match) :
35  match(match)
36  {}
37 
38 
39  /**
40  * Match operator.
41  *
42  * \param first hit
43  * \param second hit
44  * \return match result
45  */
46  virtual bool operator()(const JHit_t& first, const JHit_t& second) const override
47  {
48  return match;
49  }
50 
51  protected:
52  bool match;
53  };
54 
55 
56 #endif
then echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first
Base class for match operations for cluster and hit-preprocessing methods.
Template class for object cloning.
Definition: JClonable.hh:20