Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
larreco
larreco
RecoAlg
CMTool
CMTAlgPriority
CPAlgoPolyArea.cxx
Go to the documentation of this file.
1
#include "
CPAlgoPolyArea.h
"
2
3
namespace
cmtool
{
4
5
//----------------------------------------------------------
6
CPAlgoPolyArea::CPAlgoPolyArea
() :
CPriorityAlgoBase
()
7
//----------------------------------------------------------
8
{
9
_area_cut
= 0;
10
}
11
12
//------------------------------------------------------------------------------
13
float
CPAlgoPolyArea::Priority
(const ::cluster::ClusterParamsAlg &
cluster
)
14
//------------------------------------------------------------------------------
15
{
16
17
auto
area = cluster.GetParams().PolyObject.Area();
18
19
return
( area <
_area_cut
? -1 : area);
20
}
21
22
}
CPAlgoPolyArea.h
Class def header for a class CPAlgoPolyArea.
cmtool::CPAlgoPolyArea::Priority
virtual float Priority(const ::cluster::ClusterParamsAlg &cluster)
Definition:
CPAlgoPolyArea.cxx:13
cmtool::CPAlgoPolyArea::_area_cut
double _area_cut
Definition:
CPAlgoPolyArea.h:43
cluster
Cluster finding and building.
Definition:
SmallClusterFilter_module.cc:34
cmtool::CPriorityAlgoBase
Definition:
CPriorityAlgoBase.h:27
cmtool::CPAlgoPolyArea::CPAlgoPolyArea
CPAlgoPolyArea()
Default constructor.
Definition:
CPAlgoPolyArea.cxx:6
cmtool
Definition:
CFAlgoQRatio.cxx:3
Generated by
1.8.11