Jpp
software
JTrigger
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
47
{
48
return
match;
49
}
50
51
protected
:
52
bool
match;
53
};
54
55
56
#endif
JPP
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Definition:
JAAnetToolkit.hh:37
JMatch.hh
JClonable.hh
JTRIGGER
Checksum.
Definition:
JSupport/JSupport.hh:35
JLANG::JClonable
Template class for object cloning.
Definition:
JClonable.hh:20
Generated by
1.8.16