LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
CBAlgoAngleCompat.h
Go to the documentation of this file.
1 
14 #ifndef RECOTOOL_CBALGOANGLECOMPAT_H
15 #define RECOTOOL_CBALGOANGLECOMPAT_H
16 
17 #include <iostream>
19 
20 namespace cmtool {
27 
28  public:
29 
32 
34  virtual ~CBAlgoAngleCompat(){};
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) { _max_allowed_2D_angle_diff = angle; }
48 
50  void SetUseOpeningAngle(bool on) { _use_opening_angle = on; }
51 
53  void SetMinHits(size_t n) { _minHits = n; }
54 
55  // TH1F* GetAngleDistHisto() const{ return angle_dist_histo; };
56 
57  protected:
58 
59  bool _debug;
60 
65 
67  double _max_allowed_2D_angle_diff; //in degrees
68 
72 
73  size_t _minHits;
74 
77 
78 
79  };
80 
81 } // end namespace cmtool
82 
83 #endif
84  // end of doxygen group
85 
Class def header for algorithm classes for CMergeManager.
virtual bool Bool(const ::cluster::ClusterParamsAlg &cluster1, const ::cluster::ClusterParamsAlg &cluster2)
Overloaded (from CBoolAlgoBase) Bool function.
void SetDebug(bool on)
Method to set debug mode.
TH1F * angle_dist_histo
Min Number of hits for cluster to be considered.
void SetUseOpeningAngle(bool on)
Method to set angle cut value to be based on opening angle.
void SetAllow180Ambig(bool on)
Method to set whether you allow angles to match with +/- 180 deg difference.
void SetAngleCut(double angle)
Method to set cut value in degrees for angle compatibility test.
virtual ~CBAlgoAngleCompat()
Default destructor.
CBAlgoAngleCompat()
Default constructor.
bool _allow_180_ambig
bool to suppress lots of output if you want
double _max_allowed_2D_angle_diff
hard shower-axis angle cutoff (only valid for _use_opening_angle==false)
Char_t n[5]
void SetMinHits(size_t n)
Set Minimum Number of Hits to consider Cluster.