LArSoft  v07_13_02
Liquid Argon Software toolkit - http://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 <iostream>
18 
19 #include "CMManagerBase.h"
20 #include "CMatchBookKeeper.h"
21 #include "CFloatAlgoBase.h"
22 
23 namespace cmtool {
24 
30  class CMatchManager : public CMManagerBase {
31 
32  private:
33 
35  CMatchManager();
36 
37  public:
38 
39  CMatchManager(size_t nplanes);
40 
42  virtual ~CMatchManager(){}
43 
45  virtual void Reset();
46 
48  void AddMatchAlgo(CFloatAlgoBase* algo) {_match_algo = algo;}
49 
51  const CMatchBookKeeper& GetBookKeeper() const { return _book_keeper; }
52 
53  protected:
54 
55  //
56  // FMWK functions override
57  //
58 
60  virtual void EventBegin();
61 
63  virtual void IterationBegin();
64 
66  virtual bool IterationProcess();
67 
69  virtual void IterationEnd();
70 
72  virtual void EventEnd();
73 
74  protected:
75 
78 
81 
83  size_t _nplanes;
84 
85  };
86 }
87 
88 #endif
89  // end of doxygen group
90 
virtual void EventEnd()
FMWK function called @ end of Process()
Class def header for a class CMatchBookKeeper.
virtual void Reset()
Method to reset itself.
Class def header for a class CFloatAlgoBase.
::cmtool::CFloatAlgoBase * _match_algo
Merging algorithm.
Definition: CMatchManager.h:80
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:48
CMatchBookKeeper _book_keeper
Book keeper instance.
Definition: CMatchManager.h:77
virtual bool IterationProcess()
FMWK function called @ iterative loop inside Process()
virtual void EventBegin()
FMWK function called @ beginning of Process()
virtual ~CMatchManager()
Default destructor.
Definition: CMatchManager.h:42
const CMatchBookKeeper & GetBookKeeper() const
A method to obtain book keeper.
Definition: CMatchManager.h:51
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:83