Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
larreco
larreco
RecoAlg
CMTool
CMTAlgPriority
CPAlgoNHits.cxx
Go to the documentation of this file.
1
#include "
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
}
cmtool::CPAlgoNHits::_min_hits
size_t _min_hits
Definition:
CPAlgoNHits.h:46
cluster
Cluster finding and building.
Definition:
SmallClusterFilter_module.cc:34
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
nhit
uint8_t nhit
Definition:
CRTFragment.hh:201
CPAlgoNHits.h
Class def header for a class CPAlgoNHits.
cmtool
Definition:
CFAlgoQRatio.cxx:3
Generated by
1.8.11