Jpp 19.3.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
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 */
14namespace JTRIGGER {}
15namespace JPP { using namespace JTRIGGER; }
16
17namespace JTRIGGER {
18
19 using JLANG::JClonable;
20
21 /**
22 * Auxiliary class to fix match.
23 */
24 template<class JHit_t>
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) :
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
Base class for match operations for cluster and hit-preprocessing methods.
Auxiliary class to fix match.
JMatchFixer(const bool match)
Constructor.
virtual bool operator()(const JHit_t &first, const JHit_t &second) const override
Match operator.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary classes and methods for triggering.
Template class for object cloning.
Definition JClonable.hh:59