CBAlgoAngleIncompat.h
Go to the documentation of this file.
1 /**
2  * \file CBAlgoAngleIncompat.h
3  *
4  * \ingroup CMTool
5  *
6  * \brief Class def header for a class CBAlgoAngleIncompat
7  *
8  * @author davidkaleko_NAME
9  */
10 
11 /** \addtogroup CMTool
12 
13  @{*/
14 #ifndef RECOTOOL_CBALGOANGLEINCOMPAT_H
15 #define RECOTOOL_CBALGOANGLEINCOMPAT_H
16 
19 
20 namespace cmtool {
21  /**
22  \class CBAlgoAngleIncompat
23  User implementation for CBoolAlgoBase class
24  doxygen documentation!
25  */
27 
28  public:
29 
30  /// Default constructor
32 
33  /// Default destructor
34  virtual ~CBAlgoAngleIncompat(){};
35 
36  /**
37  Core function: given the CPAN input, return whether a cluster should be
38  merged or not.
39  */
40  virtual bool Bool(const ::cluster::ClusterParamsAlg &cluster1,
41  const ::cluster::ClusterParamsAlg &cluster2);
42 
43  void SetAllow180Ambig(bool on) { _allow_180_ambig = on; }
44 
45  void SetAngleCut(double angle) { _max_allowed_2D_angle_diff = angle; }
46 
47  void SetUseOpeningAngle(bool on) { _use_opening_angle = on; }
48 
49  void SetMinHits(int n) { _minHits = n; }
50 
51  void SetMinLength(double l) { _min_length = l; }
52 
53  void SetDebug(bool on) { _debug = on; }
54 
55  protected:
56 
57  bool _debug;
60  double _min_length;
62  size_t _minHits;
63  };
64 }
65 #endif
66 /** @} */ // end of doxygen group
Class def header for algorithm classes for CMergeManager.
static QStrList * l
Definition: config.cpp:1044
virtual ~CBAlgoAngleIncompat()
Default destructor.
std::void_t< T > n
CBAlgoAngleIncompat()
Default constructor.
virtual bool Bool(const ::cluster::ClusterParamsAlg &cluster1, const ::cluster::ClusterParamsAlg &cluster2)