LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
CPAlgoNHits.cxx
Go to the documentation of this file.
1
#ifndef RECOTOOL_CPALGONHITS_CXX
2
#define RECOTOOL_CPALGONHITS_CXX
3
4
#include "
CPAlgoNHits.h
"
5
6
namespace
cmtool
{
7
8
//----------------------------------------------
9
CPAlgoNHits::CPAlgoNHits
() :
CPriorityAlgoBase
()
10
//----------------------------------------------
11
{
12
_min_hits
= 0;
13
}
14
15
//------------------------------------------------------------------------
16
float
CPAlgoNHits::Priority
(const ::cluster::ClusterParamsAlg &
cluster
)
17
//------------------------------------------------------------------------
18
{
19
auto
nhit = cluster.GetNHits();
20
21
return
( nhit <
_min_hits
? -1 : (
float
)nhit );
22
}
23
24
}
25
#endif
cmtool::CPAlgoNHits::_min_hits
size_t _min_hits
Definition:
CPAlgoNHits.h:46
cluster
Cluster finding and building.
Definition:
SmallClusterFilter_module.cc:36
cmtool::CPriorityAlgoBase
Definition:
CPriorityAlgoBase.h:26
cmtool::CPAlgoNHits::CPAlgoNHits
CPAlgoNHits()
Default constructor.
Definition:
CPAlgoNHits.cxx:9
cmtool::CPAlgoNHits::Priority
virtual float Priority(const ::cluster::ClusterParamsAlg &cluster)
Definition:
CPAlgoNHits.cxx:16
CPAlgoNHits.h
Class def header for a class CPAlgoNHits.
cmtool
Definition:
CFAlgo3DAngle.cxx:6
larreco
v06_64_02
source
larreco
RecoAlg
CMTool
CMTAlgPriority
CPAlgoNHits.cxx
Generated on Thu Jul 26 2018 13:10:12 for LArSoft by
1.8.11