EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MatchCandidateGroup.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file MatchCandidateGroup.h
1 //
2 // AYK (ayk@bnl.gov)
3 //
4 // Match candidate group (overlap via hits) class;
5 //
6 //
7 
8 #include <map>
9 
10 #include <MatchCandidate.h>
11 
12 #ifndef _MATCH_CANDIDATE_GROUP_
13 #define _MATCH_CANDIDATE_GROUP_
14 
16 {
17  public:
20 
21  void AddCandidate(MatchCandidate *match);
22 
23  unsigned GetCandidateCount() const { return mMatchCandidates.size(); };
24 
25  // FIXME: allocate iterators once?;
26  std::multimap<__u64, MatchCandidate*>::iterator Begin() { return mMatchCandidates.begin(); };
27  std::multimap<__u64, MatchCandidate*>::iterator End() { return mMatchCandidates.end(); };
28 
29  private:
30  std::set<GroupMember*> mHits;
31  std::multimap<__u64, MatchCandidate*> mMatchCandidates;
32 };
33 
34 #endif