LArSoft  v09_90_00
Liquid Argon Software toolkit - https://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:
29  CFAlgoQRatio();
30 
31  //
32  // Author should be aware of 3 functions at least: Float, Report,
33  // and Reset. More possibly-useful functions can be found in the later
34  // part but commented out. All of these functions are virtual and defined
35  // in the base class.
36 
41  float Float(util::GeometryUtilities const&,
42  const std::vector<const cluster::ClusterParamsAlg*>& clusters) override;
43 
48  void Report() override;
49 
51  void Reset() override;
52 
54  void SetQRatioCut(float cut) { _qratio_cut = cut; }
55 
56  protected:
57  float _qratio_cut;
58  };
59 }
60 #endif
61  // end of doxygen group
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:54
void Report() override
CFAlgoQRatio()
Default constructor.
Definition: CFAlgoQRatio.cxx:6
float Float(util::GeometryUtilities const &, const std::vector< const cluster::ClusterParamsAlg * > &clusters) override
void Reset() override
Function to reset the algorithm instance, called together with manager&#39;s Reset()