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