LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
CPAlgoPolyArea.cxx
Go to the documentation of this file.
1 #ifndef RECOTOOL_CPALGOPOLYAREA_CXX
2 #define RECOTOOL_CPALGOPOLYAREA_CXX
3 
4 #include "CPAlgoPolyArea.h"
5 
6 namespace cmtool {
7 
8  //----------------------------------------------------------
10  //----------------------------------------------------------
11  {
12  _area_cut = 0;
13  }
14 
15  //------------------------------------------------------------------------------
16  float CPAlgoPolyArea::Priority(const ::cluster::ClusterParamsAlg &cluster)
17  //------------------------------------------------------------------------------
18  {
19 
20  auto area = cluster.GetParams().PolyObject.Area();
21 
22  return ( area < _area_cut ? -1 : area);
23  }
24 
25 }
26 #endif
Class def header for a class CPAlgoPolyArea.
virtual float Priority(const ::cluster::ClusterParamsAlg &cluster)
Cluster finding and building.
CPAlgoPolyArea()
Default constructor.