LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
CBAlgoProhibitAllTracks.cxx
Go to the documentation of this file.
1 #ifndef RECOTOOL_CBALGOPROHIBITALLTRACKS_CXX
2 #define RECOTOOL_CBALGOPROHIBITALLTRACKS_CXX
3 
5 
6 namespace cmtool {
7 
8  //-------------------------------------------------------
10  //-------------------------------------------------------
11  {
12  SetMinEP(.990000);
13  }
14 
15  //-----------------------------
17  //-----------------------------
18  {
19 
20  }
21 
22  //------------------------------------------------------------------------------------------
23  //void CBAlgoProhibitAllTracks::EventBegin(const std::vector<cluster::ClusterParamsAlg> &clusters)
24  //------------------------------------------------------------------------------------------
25  //{
26  //
27  //}
28 
29  //-------------------------------
30  //void CBAlgoProhibitAllTracks::EventEnd()
31  //-------------------------------
32  //{
33  //
34  //}
35 
36  //-----------------------------------------------------------------------------------------------
37  //void CBAlgoProhibitAllTracks::IterationBegin(const std::vector<cluster::ClusterParamsAlg> &clusters)
38  //-----------------------------------------------------------------------------------------------
39  //{
40  //
41  //}
42 
43  //------------------------------------
44  //void CBAlgoProhibitAllTracks::IterationEnd()
45  //------------------------------------
46  //{
47  //
48  //}
49 
50  //----------------------------------------------------------------
51  bool CBAlgoProhibitAllTracks::Bool(const ::cluster::ClusterParamsAlg &cluster1,
52  const ::cluster::ClusterParamsAlg &cluster2)
53  //----------------------------------------------------------------
54  {
55  //return true means don't prohibit these two clusters
56  if(cluster1.GetParams().eigenvalue_principal > _min_EP ||
57  cluster2.GetParams().eigenvalue_principal > _min_EP)
58  {
59  if(_verbose)
60  std::cout<<"Prohibiting clusters with EP's of "
61  <<cluster1.GetParams().eigenvalue_principal
62  <<" and "
63  <<cluster2.GetParams().eigenvalue_principal
64  <<std::endl;
65  return true;
66  }
67  return false;
68  }
69 
70  //------------------------------
72  //------------------------------
73  {
74 
75  }
76 
77 }
78 #endif
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:88