LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
CBAlgoProhibitBigClusters.cxx
Go to the documentation of this file.
1 #ifndef RECOTOOL_CBALGOPROHIBITBIGCLUSTERS_CXX
2 #define RECOTOOL_CBALGOPROHIBITBIGCLUSTERS_CXX
3 
5 
6 namespace cmtool {
7 
8  //-------------------------------------------------------
10  //-------------------------------------------------------
11  {
12  SetMinHits(9999);
13 
14  }
15 
16  //-----------------------------
18  //-----------------------------
19  {
20 
21  }
22 
23  //----------------------------------------------------------------
24  bool CBAlgoProhibitBigClusters::Bool(const ::cluster::ClusterParamsAlg &cluster1,
25  const ::cluster::ClusterParamsAlg &cluster2)
26  //----------------------------------------------------------------
27  {
28  //if both clusters are big enough, prohibit merging
29  if(cluster1.GetNHits() > _min_hits && cluster2.GetNHits() > _min_hits)
30  return true;
31  else
32  return false;
33  }
34 
35  //------------------------------
37  //------------------------------
38  {
39 
40  }
41 
42 }
43 #endif
virtual void Reset()
Function to reset the algorithm instance ... maybe implemented via child class.
Class def header for a class CBAlgoProhibitBigClusters.
virtual bool Bool(const ::cluster::ClusterParamsAlg &cluster1, const ::cluster::ClusterParamsAlg &cluster2)