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.h
Go to the documentation of this file.
1
/**
2
* \file CPAlgoPolyArea.h
3
*
4
* \ingroup CMTool
5
*
6
* \brief Class def header for a class CPAlgoPolyArea
7
*
8
* @author kazuhiro
9
*/
10
11
/** \addtogroup CMTool
12
13
@{*/
14
#ifndef RECOTOOL_CPALGOPOLYAREA_H
15
#define RECOTOOL_CPALGOPOLYAREA_H
16
17
#include "
larreco/RecoAlg/CMTool/CMToolBase/CPriorityAlgoBase.h
"
18
19
namespace
cmtool {
20
/**
21
\class CPAlgoPolyArea
22
Simple algorithm to determine priority based on area of 2D polygon.
23
If area < set cut value by a user, returns -1.
24
*/
25
class
CPAlgoPolyArea
:
public
CPriorityAlgoBase
{
26
27
public
:
28
29
/// Default constructor
30
CPAlgoPolyArea
();
31
32
/**
33
Core function: given the CPAN input, return a float which indicates
34
the user-defined priority for analysis.
35
*/
36
virtual
float
Priority
(const ::cluster::ClusterParamsAlg &
cluster
);
37
38
/// Setter for minimum area
39
void
SetMinArea
(
double
area) {
_area_cut
= area; }
40
41
private
:
42
43
double
_area_cut
;
44
};
45
}
46
#endif
47
/** @} */
// end of doxygen group
cmtool::CPAlgoPolyArea::Priority
virtual float Priority(const ::cluster::ClusterParamsAlg &cluster)
Definition:
CPAlgoPolyArea.cxx:13
cmtool::CPAlgoPolyArea
Definition:
CPAlgoPolyArea.h:25
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::SetMinArea
void SetMinArea(double area)
Setter for minimum area.
Definition:
CPAlgoPolyArea.h:39
CPriorityAlgoBase.h
Class def header for a class CPriorityAlgoBase.
cmtool::CPAlgoPolyArea::CPAlgoPolyArea
CPAlgoPolyArea()
Default constructor.
Definition:
CPAlgoPolyArea.cxx:6
Generated by
1.8.5