CBAlgoStartInPoly.h
Go to the documentation of this file.
1 /**
2  * \file CBAlgoStartInPoly.h
3  *
4  * \ingroup CMTool
5  *
6  * \brief Class def header for a class CBAlgoStartInPoly
7  *
8  * @author David Caratelli
9  */
10 
11 /** \addtogroup CMTool
12 
13  @{*/
14 #ifndef RECOTOOL_CBALGOSTARTINPOLY_H
15 #define RECOTOOL_CBALGOSTARTINPOLY_H
16 
19 
20 namespace cmtool {
21  /**
22  \class CMalgoStartInPoly
23  If start point of one cluster inside other's polygon -> merge
24  */
26 
27  public:
28 
29  /// Default constructor
31 
32  /// Default destructor
33  virtual ~CBAlgoStartInPoly(){};
34 
35  /**
36  Core function: given the ClusterParamsAlg input, return whether a cluster should be
37  merged or not.
38  */
39 
40  /// Method to set cut value on minimum number of hits considered
41  void SetMinHitsCut(size_t n) { _MinHits = n; }
42 
43  void SetDebug(bool debug) { _debug = debug; }
44 
45  /// Merging Algorithm is Here
46  virtual bool Bool(const ::cluster::ClusterParamsAlg &cluster1,
47  const ::cluster::ClusterParamsAlg &cluster2);
48 
49  /// Method to re-configure the instance
50  void reconfigure();
51 
52  protected:
53 
54  double _wire_2_cm, _time_2_cm; /// Conversion factors ogtten from GeometryUtilities
55  size_t _MinHits; /// Minimum number of hits for cluster whose start point is being considered. We want it to be a good start point...
56  bool _debug;
57  };
58 }
59 
60 #endif
61 /** @} */ // end of doxygen group
Class def header for algorithm classes for CMergeManager.
size_t _MinHits
Conversion factors ogtten from GeometryUtilities.
CBAlgoStartInPoly()
Default constructor.
virtual ~CBAlgoStartInPoly()
Default destructor.
void reconfigure()
Method to re-configure the instance.
bool _debug
Minimum number of hits for cluster whose start point is being considered. We want it to be a good sta...
std::void_t< T > n
Definition: cfalgo.cc:3
void SetMinHitsCut(size_t n)
Method to set cut value on minimum number of hits considered.
virtual bool Bool(const ::cluster::ClusterParamsAlg &cluster1, const ::cluster::ClusterParamsAlg &cluster2)
Merging Algorithm is Here.