CBAlgoProhibitBigClusters.cxx
Go to the documentation of this file.
2 
3 namespace cmtool {
4 
5  //-------------------------------------------------------
7  //-------------------------------------------------------
8  {
9  SetMinHits(9999);
10 
11  }
12 
13  //-----------------------------
15  //-----------------------------
16  {
17 
18  }
19 
20  //----------------------------------------------------------------
21  bool CBAlgoProhibitBigClusters::Bool(const ::cluster::ClusterParamsAlg &cluster1,
22  const ::cluster::ClusterParamsAlg &cluster2)
23  //----------------------------------------------------------------
24  {
25  //if both clusters are big enough, prohibit merging
26  if(cluster1.GetNHits() > _min_hits && cluster2.GetNHits() > _min_hits)
27  return true;
28  else
29  return false;
30  }
31 
32  //------------------------------
34  //------------------------------
35  {
36 
37  }
38 
39 }
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)