LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
CMatchManager.h
Go to the documentation of this file.
1 
14 #ifndef RECOTOOL_CMATCHMANAGER_H
15 #define RECOTOOL_CMATCHMANAGER_H
16 
17 #include <stddef.h>
18 
21 
22 namespace cmtool {
23 
24  class CFloatAlgoBase;
30  class CMatchManager : public CMManagerBase {
31 
32  private:
34  CMatchManager();
35 
36  public:
37  CMatchManager(size_t nplanes);
38 
40  virtual ~CMatchManager() {}
41 
43  virtual void Reset();
44 
46  void AddMatchAlgo(CFloatAlgoBase* algo) { _match_algo = algo; }
47 
49  const CMatchBookKeeper& GetBookKeeper() const { return _book_keeper; }
50 
51  protected:
52  //
53  // FMWK functions override
54  //
55 
57  virtual void EventBegin();
58 
60  virtual void IterationBegin();
61 
63  virtual bool IterationProcess(util::GeometryUtilities const& gser);
64 
66  virtual void IterationEnd();
67 
69  virtual void EventEnd();
70 
71  protected:
74 
77 
79  size_t _nplanes;
80  };
81 }
82 
83 #endif
84  // end of doxygen group
virtual void EventEnd()
FMWK function called @ end of Process()
Class def header for a class CMatchBookKeeper.
virtual void Reset()
Method to reset itself.
::cmtool::CFloatAlgoBase * _match_algo
Merging algorithm.
Definition: CMatchManager.h:76
CMatchManager()
Default constructor is private because we need an argument to configure w/ # planes in the detector...
void AddMatchAlgo(CFloatAlgoBase *algo)
A simple method to add an algorithm for merging.
Definition: CMatchManager.h:46
CMatchBookKeeper _book_keeper
Book keeper instance.
Definition: CMatchManager.h:73
virtual bool IterationProcess(util::GeometryUtilities const &gser)
FMWK function called @ iterative loop inside Process()
virtual void EventBegin()
FMWK function called @ beginning of Process()
virtual ~CMatchManager()
Default destructor.
Definition: CMatchManager.h:40
const CMatchBookKeeper & GetBookKeeper() const
A method to obtain book keeper.
Definition: CMatchManager.h:49
virtual void IterationEnd()
FMWK function called @ end of iterative loop inside Process()
virtual void IterationBegin()
FMWK function called @ beginning of iterative loop inside Process()
Class def header for a class CMManagerBase.
size_t _nplanes
Number of planes.
Definition: CMatchManager.h:79