LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
CMAlgoBase.h
Go to the documentation of this file.
1 
14 #ifndef RECOTOOL_CMALGOBASE_H
15 #define RECOTOOL_CMALGOBASE_H
16 
18 #include <vector>
19 
20 class TFile;
21 
22 namespace cmtool {
23 
30  class CMAlgoBase {
31  public:
33  {
34  _fout = 0;
35  _verbose = false;
36  }
37  virtual ~CMAlgoBase() = default;
38 
40  virtual void Reset() {}
41 
45  virtual void EventBegin(const std::vector<cluster::ClusterParamsAlg>&) {}
46 
50  virtual void EventEnd() {}
51 
57  virtual void IterationBegin(const std::vector<cluster::ClusterParamsAlg>&) {}
58 
62  virtual void IterationEnd() {}
63 
69  virtual void Report() {}
70 
72  void SetAnaFile(TFile* fout) { _fout = fout; }
73 
75  virtual void SetVerbose(bool doit = true) { _verbose = doit; }
76 
77  protected:
79  TFile* _fout;
80 
82  bool _verbose;
83  };
84 
85 }
86 
87 #endif
88  // end of doxygen group
virtual void Report()
Definition: CMAlgoBase.h:69
TFile * _fout
TFile pointer to an output file.
Definition: CMAlgoBase.h:79
virtual void EventEnd()
Definition: CMAlgoBase.h:50
virtual void Reset()
Function to reset the algorithm instance called within CMergeManager/CMatchManager&#39;s Reset() ...
Definition: CMAlgoBase.h:40
virtual ~CMAlgoBase()=default
void SetAnaFile(TFile *fout)
Setter function for an output plot TFile pointer.
Definition: CMAlgoBase.h:72
virtual void SetVerbose(bool doit=true)
Setter function for verbosity.
Definition: CMAlgoBase.h:75
virtual void IterationBegin(const std::vector< cluster::ClusterParamsAlg > &)
Definition: CMAlgoBase.h:57
virtual void IterationEnd()
Definition: CMAlgoBase.h:62
bool _verbose
Boolean to choose verbose mode. Turned on if CMergeManager/CMatchManager&#39;s verbosity level is >= kPer...
Definition: CMAlgoBase.h:82
virtual void EventBegin(const std::vector< cluster::ClusterParamsAlg > &)
Definition: CMAlgoBase.h:45