LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
CFAlgoStartPointMatch.h
Go to the documentation of this file.
1 
14 #ifndef RECOTOOL_CFALGOSTARTPOINTMATCH_H
15 #define RECOTOOL_CFALGOSTARTPOINTMATCH_H
16 
18 #include <math.h>
19 
20 namespace cmtool {
27 
28  public:
29 
32 
35 
36  //
37  // Author should be aware of 3 functions at least: Float, Report,
38  // and Reset. More possibly-useful functions can be found in the later
39  // part but commented out. All of these functions are virtual and defined
40  // in the base class.
41 
46  virtual float Float(const std::vector<const cluster::ClusterParamsAlg*> &clusters);
47 
52  virtual void Report();
53 
55  virtual void Reset();
56 
57  double Area2D( double Ax, double Ay,
58  double Bx, double By,
59  double Cx, double Cy);
60 
61  double Area3D( double Ax, double Ay, double Az,
62  double Bx, double By, double Bz,
63  double Cx, double Cy, double Cz);
64 
65  void UseTime( bool on ) { _time = on; }
66 
67  void SetMaxArea( double area ) { _MaxArea = area; }
68 
72  //virtual void EventBegin(const std::vector<cluster::ClusterParamsAlg> &clusters);
73 
77  //virtual void EventEnd();
78 
84  //virtual void IterationBegin(const std::vector<cluster::ClusterParamsAlg> &clusters);
85 
89  //virtual void IterationEnd();
90 
91  private:
92 
93  double _w2cm, _t2cm;
94  double _MaxArea;
95  bool _time;
96 
97  };
98 
99 
100 }
101 #endif
102  // end of doxygen group
103 
Class def header for a class CFloatAlgoBase.
CFAlgoStartPointMatch()
Default constructor.
double Area2D(double Ax, double Ay, double Bx, double By, double Cx, double Cy)
double Area3D(double Ax, double Ay, double Az, double Bx, double By, double Bz, double Cx, double Cy, double Cz)
virtual float Float(const std::vector< const cluster::ClusterParamsAlg * > &clusters)
virtual ~CFAlgoStartPointMatch()
Default destructor.
virtual void Reset()
Function to reset the algorithm instance, called together with manager&#39;s Reset()