LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
CMatchBookKeeper.h
Go to the documentation of this file.
1 
14 #ifndef RECOTOOL_CMATCHBOOKKEEPER_H
15 #define RECOTOOL_CMATCHBOOKKEEPER_H
16 
17 #include <iostream>
18 #include <vector>
19 #include <map>
20 #include "CMTException.h"
21 
22 namespace cmtool {
29 
30  public:
31 
34 
36  virtual ~CMatchBookKeeper(){};
37 
39  void Reset();
40 
42  void Match(const std::vector<unsigned int>& matched_indexes,
43  const float& score);
44 
46  std::vector<std::vector<unsigned int> > GetResult() const;
47 
49  void PassResult(std::vector<std::vector<unsigned int> >& result) const;
50 
51  protected:
52 
53  std::multimap<float,std::vector<unsigned int> > _register;
54 
55  };
56 }
57 #endif
58  // end of doxygen group
59 
void PassResult(std::vector< std::vector< unsigned int > > &result) const
Method to pass result.
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
Definition: DumpUtils.h:265
CMatchBookKeeper()
Default constructor.
void Match(const std::vector< unsigned int > &matched_indexes, const float &score)
Method to register matched clusters.
Class def header for exception classes in CMTException.
std::multimap< float, std::vector< unsigned int > > _register
void Reset()
Reset method.
virtual ~CMatchBookKeeper()
Default destructor.
std::vector< std::vector< unsigned int > > GetResult() const
Method to get result.