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
CPAlgoPolyArea.cxx
Go to the documentation of this file.
1
#include "
larreco/RecoAlg/CMTool/CMTAlgPriority/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
process_name cluster
Definition:
cheaterreco.fcl:51
cmtool::CPriorityAlgoBase
Definition:
CPriorityAlgoBase.h:27
cmtool::CPAlgoPolyArea::CPAlgoPolyArea
CPAlgoPolyArea()
Default constructor.
Definition:
CPAlgoPolyArea.cxx:6
Generated by
1.8.5