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