LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
CBAlgoAngleAlign.h
Go to the documentation of this file.
1 
14 #ifndef RECOTOOL_CBALGOANGLEALIGN_H
15 #define RECOTOOL_CBALGOANGLEALIGN_H
16 
17 #include <iostream>
19 
20 namespace cmtool {
27 
28  public:
29 
32 
34  virtual ~CBAlgoAngleAlign(){};
35 
37  virtual bool Bool(const ::cluster::ClusterParamsAlg &cluster1,
38  const ::cluster::ClusterParamsAlg &cluster2);
39 
41  void SetDebug(bool on) { _debug = on; }
42 
44  void SetAllow180Ambig(bool on) { _allow_180_ambig = on; }
45 
47  void SetAngleCut(double angle) { _MaxAngleSep = angle; }
48 
49  void SetMinNHits(size_t n) { _MinNHits = n; }
50 
51  protected:
52 
53  bool _debug;
54  size_t _MinNHits;
55 
60 
62  double _MaxAngleSep;
63 
64 
65  };
66 
67 } // end namespace cmtool
68 
69 #endif
70  // end of doxygen group
71 
Class def header for algorithm classes for CMergeManager.
void SetAngleCut(double angle)
Method to set cut value in degrees for angle compatibility test.
bool _allow_180_ambig
minimum number of hits for cluster to be considered
void SetDebug(bool on)
Method to set debug mode.
double _MaxAngleSep
hard shower-axis angle cutoff (only valid for _use_opening_angle==false)
void SetAllow180Ambig(bool on)
Method to set whether you allow angles to match with +/- 180 deg difference.
virtual ~CBAlgoAngleAlign()
Default destructor.
CBAlgoAngleAlign()
Default constructor.
Char_t n[5]
virtual bool Bool(const ::cluster::ClusterParamsAlg &cluster1, const ::cluster::ClusterParamsAlg &cluster2)
Overloaded (from CBoolAlgoBase) Bool function.