LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
CFAlgoQRatio.h
Go to the documentation of this file.
1 
14 #ifndef RECOTOOL_CFALGOQRATIO_H
15 #define RECOTOOL_CFALGOQRATIO_H
16 
18 
19 namespace cmtool {
25  class CFAlgoQRatio : public CFloatAlgoBase {
26 
27  public:
28 
30  CFAlgoQRatio();
31 
33  virtual ~CFAlgoQRatio(){};
34 
35  //
36  // Author should be aware of 3 functions at least: Float, Report,
37  // and Reset. More possibly-useful functions can be found in the later
38  // part but commented out. All of these functions are virtual and defined
39  // in the base class.
40 
45  virtual float Float(const std::vector<const cluster::ClusterParamsAlg*> &clusters);
46 
51  virtual void Report();
52 
54  virtual void Reset();
55 
57  void SetQRatioCut(float cut) { _qratio_cut = cut; }
58 
59  protected:
60 
61  float _qratio_cut;
62  };
63 }
64 #endif
65  // end of doxygen group
66 
virtual void Report()
Class def header for a class CFloatAlgoBase.
void SetQRatioCut(float cut)
Setter for the minimum value for charge ratio (below this value Float() returns -1) ...
Definition: CFAlgoQRatio.h:57
CFAlgoQRatio()
Default constructor.
Definition: CFAlgoQRatio.cxx:9
virtual float Float(const std::vector< const cluster::ClusterParamsAlg * > &clusters)
virtual ~CFAlgoQRatio()
Default destructor.
Definition: CFAlgoQRatio.h:33
virtual void Reset()
Function to reset the algorithm instance, called together with manager&#39;s Reset()