CPAlgoNHits.cxx
Go to the documentation of this file.
1 #include "CPAlgoNHits.h"
2 
3 namespace cmtool {
4 
5  //----------------------------------------------
7  //----------------------------------------------
8  {
9  _min_hits = 0;
10  }
11 
12  //------------------------------------------------------------------------
13  float CPAlgoNHits::Priority(const ::cluster::ClusterParamsAlg &cluster)
14  //------------------------------------------------------------------------
15  {
16  auto nhit = cluster.GetNHits();
17 
18  return ( nhit < _min_hits ? -1 : (float)nhit );
19  }
20 
21 }
Cluster finding and building.
CPAlgoNHits()
Default constructor.
Definition: CPAlgoNHits.cxx:6
virtual float Priority(const ::cluster::ClusterParamsAlg &cluster)
Definition: CPAlgoNHits.cxx:13
uint8_t nhit
Definition: CRTFragment.hh:201
Class def header for a class CPAlgoNHits.