LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
CBAlgoAngleAlign.h
Go to the documentation of this file.
1 
14 #ifndef RECOTOOL_CBALGOANGLEALIGN_H
15 #define RECOTOOL_CBALGOANGLEALIGN_H
16 
19 
20 namespace cmtool {
27 
28  public:
31 
33  virtual ~CBAlgoAngleAlign(){};
34 
36  virtual bool Bool(const ::cluster::ClusterParamsAlg& cluster1,
37  const ::cluster::ClusterParamsAlg& cluster2);
38 
40  void SetDebug(bool on) { _debug = on; }
41 
43  void SetAllow180Ambig(bool on) { _allow_180_ambig = on; }
44 
46  void SetAngleCut(double angle) { _MaxAngleSep = angle; }
47 
48  void SetMinNHits(size_t n) { _MinNHits = n; }
49 
50  protected:
51  bool _debug;
52  size_t _MinNHits;
53 
58 
60  double _MaxAngleSep;
61  };
62 
63 } // end namespace cmtool
64 
65 #endif
66  // end of doxygen group
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.