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