Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
srcs
larreco
larreco
RecoAlg
CMTool
CMToolBase
CPriorityAlgoBase.h
Go to the documentation of this file.
1
/**
2
* \file CPriorityAlgoBase.h
3
*
4
* \ingroup CMTool
5
*
6
* \brief Class def header for a class CPriorityAlgoBase
7
*
8
* @author kazuhiro
9
*/
10
11
/** \addtogroup CMTool
12
13
@{*/
14
#ifndef RECOTOOL_CPRIORITYALGOBASE_H
15
#define RECOTOOL_CPRIORITYALGOBASE_H
16
17
#include "
larreco/RecoAlg/CMTool/CMToolBase/CMAlgoBase.h
"
18
#include "
larreco/RecoAlg/ClusterRecoUtil/ClusterParamsAlg.h
"
19
20
namespace
cmtool {
21
22
/**
23
\class CPriorityAlgoBase
24
An abstract base class for CMatchManager and CMergeManager to determine
25
cluster "priority" for matching and merging action respectively.
26
*/
27
class
CPriorityAlgoBase
:
public
CMAlgoBase
{
28
29
public
:
30
31
/// Default constructor
32
CPriorityAlgoBase
(){}
33
34
/// Default destructor
35
virtual
~CPriorityAlgoBase
(){}
36
37
/**
38
Core function: given the CPAN input, return whether a cluster should be
39
merged or not.
40
*/
41
virtual
float
Priority
(
const
cluster::ClusterParamsAlg
&
cluster
)
42
{
43
if
(cluster.
GetNHits
())
return
1.;
44
return
0.1;
45
}
46
47
};
48
49
}
50
51
#endif
52
/** @} */
// end of doxygen group
cmtool::CPriorityAlgoBase::~CPriorityAlgoBase
virtual ~CPriorityAlgoBase()
Default destructor.
Definition:
CPriorityAlgoBase.h:35
cluster
process_name cluster
Definition:
cheaterreco.fcl:51
cluster::ClusterParamsAlg
Definition:
ClusterParamsAlg.h:24
cmtool::CPriorityAlgoBase
Definition:
CPriorityAlgoBase.h:27
CMAlgoBase.h
Class def header for a class CMAlgoBase.
ClusterParamsAlg.h
cmtool::CMAlgoBase
Definition:
CMAlgoBase.h:30
cmtool::CPriorityAlgoBase::Priority
virtual float Priority(const cluster::ClusterParamsAlg &cluster)
Definition:
CPriorityAlgoBase.h:41
cmtool::CPriorityAlgoBase::CPriorityAlgoBase
CPriorityAlgoBase()
Default constructor.
Definition:
CPriorityAlgoBase.h:32
cluster::ClusterParamsAlg::GetNHits
size_t GetNHits() const
Definition:
ClusterParamsAlg.h:274
Generated by
1.8.5