All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CPAlgoPolyArea.cxx
Go to the documentation of this file.
2 
3 namespace cmtool {
4 
5  //----------------------------------------------------------
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 }
Class def header for a class CPAlgoPolyArea.
virtual float Priority(const ::cluster::ClusterParamsAlg &cluster)
process_name cluster
Definition: cheaterreco.fcl:51
CPAlgoPolyArea()
Default constructor.