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
CMTAlgPriority
CPAlgoNHits.cxx
Go to the documentation of this file.
1
#include "
larreco/RecoAlg/CMTool/CMTAlgPriority/CPAlgoNHits.h
"
2
3
namespace
cmtool {
4
5
//----------------------------------------------
6
CPAlgoNHits::CPAlgoNHits
() :
CPriorityAlgoBase
()
7
//----------------------------------------------
8
{
9
_min_hits
= 0;
10
}
11
12
//------------------------------------------------------------------------
13
float
CPAlgoNHits::Priority
(const ::cluster::ClusterParamsAlg &
cluster
)
14
//------------------------------------------------------------------------
15
{
16
auto
nhit = cluster.GetNHits();
17
18
return
( nhit <
_min_hits
? -1 : (
float
)nhit );
19
}
20
21
}
cluster
process_name cluster
Definition:
cheaterreco.fcl:51
cmtool::CPAlgoNHits::_min_hits
size_t _min_hits
Definition:
CPAlgoNHits.h:46
cmtool::CPriorityAlgoBase
Definition:
CPriorityAlgoBase.h:27
cmtool::CPAlgoNHits::CPAlgoNHits
CPAlgoNHits()
Default constructor.
Definition:
CPAlgoNHits.cxx:6
cmtool::CPAlgoNHits::Priority
virtual float Priority(const ::cluster::ClusterParamsAlg &cluster)
Definition:
CPAlgoNHits.cxx:13
CPAlgoNHits.h
Class def header for a class CPAlgoNHits.
Generated by
1.8.5