LArSoft  v09_90_00
Liquid Argon Software toolkit - https://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 <map>
18 #include <vector>
19 
20 namespace cmtool {
27 
28  public:
31 
33  void Reset();
34 
36  void Match(const std::vector<unsigned int>& matched_indexes, const float& score);
37 
39  std::vector<std::vector<unsigned int>> GetResult() const;
40 
42  void PassResult(std::vector<std::vector<unsigned int>>& result) const;
43 
44  protected:
45  std::multimap<float, std::vector<unsigned int>> _register;
46  };
47 }
48 #endif
49  // end of doxygen group
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
Definition: DumpUtils.h:289
CMatchBookKeeper()
Default constructor.
void Match(const std::vector< unsigned int > &matched_indexes, const float &score)
Method to register matched clusters.
void PassResult(std::vector< std::vector< unsigned int >> &result) const
Method to pass result.
std::multimap< float, std::vector< unsigned int > > _register
void Reset()
Reset method.
std::vector< std::vector< unsigned int > > GetResult() const
Method to get result.