LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
CBAlgoProhibitAllTracks.cxx
Go to the documentation of this file.
2 
3 namespace cmtool {
4 
5  //-------------------------------------------------------
7  //-------------------------------------------------------
8  {
9  SetMinEP(.990000);
10  }
11 
12  //-----------------------------
14  //-----------------------------
15  {}
16 
17  //------------------------------------------------------------------------------------------
18  //void CBAlgoProhibitAllTracks::EventBegin(const std::vector<cluster::ClusterParamsAlg> &clusters)
19  //------------------------------------------------------------------------------------------
20  //{
21  //
22  //}
23 
24  //-------------------------------
25  //void CBAlgoProhibitAllTracks::EventEnd()
26  //-------------------------------
27  //{
28  //
29  //}
30 
31  //-----------------------------------------------------------------------------------------------
32  //void CBAlgoProhibitAllTracks::IterationBegin(const std::vector<cluster::ClusterParamsAlg> &clusters)
33  //-----------------------------------------------------------------------------------------------
34  //{
35  //
36  //}
37 
38  //------------------------------------
39  //void CBAlgoProhibitAllTracks::IterationEnd()
40  //------------------------------------
41  //{
42  //
43  //}
44 
45  //----------------------------------------------------------------
46  bool CBAlgoProhibitAllTracks::Bool(const ::cluster::ClusterParamsAlg& cluster1,
47  const ::cluster::ClusterParamsAlg& cluster2)
48  //----------------------------------------------------------------
49  {
50  //return true means don't prohibit these two clusters
51  if (cluster1.GetParams().eigenvalue_principal > _min_EP ||
52  cluster2.GetParams().eigenvalue_principal > _min_EP) {
53  if (_verbose)
54  std::cout << "Prohibiting clusters with EP's of "
55  << cluster1.GetParams().eigenvalue_principal << " and "
56  << cluster2.GetParams().eigenvalue_principal << std::endl;
57  return true;
58  }
59  return false;
60  }
61 
62  //------------------------------
64  //------------------------------
65  {}
66 
67 }
virtual void Reset()
Function to reset the algorithm instance ... maybe implemented via child class.
Class def header for a class CBAlgoProhibitAllTracks.
virtual bool Bool(const ::cluster::ClusterParamsAlg &cluster1, const ::cluster::ClusterParamsAlg &cluster2)
CBAlgoProhibitAllTracks()
Default constructor.
bool _verbose
Boolean to choose verbose mode. Turned on if CMergeManager/CMatchManager&#39;s verbosity level is >= kPer...
Definition: CMAlgoBase.h:82