LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
}
cmtool::CPAlgoNHits::_min_hits
size_t _min_hits
Definition:
CPAlgoNHits.h:44
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
CPAlgoNHits.h
Class def header for a class CPAlgoNHits.
cmtool
Definition:
CFAlgoQRatio.cxx:3
larreco
v09_25_00
source
larreco
RecoAlg
CMTool
CMTAlgPriority
CPAlgoNHits.cxx
Generated on Thu May 2 2024 20:59:47 for LArSoft by
1.8.11