FindMatchesAlg.h
Go to the documentation of this file.
1 #ifndef LEM_FINDMATCHESALG_H
2 #define LEM_FINDMATCHESALG_H
3 
4 #include "LEM/func/FindMatches.h" // For FlippedPotentials
5 #include "LEM/func/Heads.h"
6 #include "LEM/func/Library.h"
7 #include "LEM/func/Match.h"
9 
10 // TODO: forward declare?
11 #include <string>
12 #include <set>
13 #include <vector>
14 
15 namespace lem
16 {
18  {
19  public:
20  FindMatchesAlg(const std::string& libDir, bool preload, bool useHeads);
22 
23  std::vector<Match> FindMatches(const MatchableEvent& trial,
24  unsigned int numMatches,
25  int enrich) const;
26 
27  const Library* GetLibrary() const {return fLib;}
28 
29  protected:
30  std::vector<Match> FindMatchesNoHeads(const MatchableEvent& trial,
31  unsigned int numMatches,
32  int enrich) const;
33 
34  std::vector<Match> FindMatchesHeads(const MatchableEvent& trial,
35  unsigned int numMatches,
36  int enrich) const;
37 
38  int BestHeadFor(const FlippedPotentials& trialVs,
39  const MatchableEvent& trial,
40  bool& bestFlipEven, bool& bestFlipOdd,
41  double& bestEnergy) const;
42 
43  std::vector<Match> PackageMatches(const std::multiset<Match>& matches,
44  const MatchableEvent& trial) const;
45 
48  };
49 }
50 
51 #endif
Attach some information used in matching to an EventSummary.
Collection of events for matching.
Collection of events for matching.
Definition: Library.h:18
std::vector< Match > FindMatches(const MatchableEvent &trial, unsigned int numMatches, int enrich) const
FindMatchesAlg(const std::string &libDir, bool preload, bool useHeads)
std::vector< Match > PackageMatches(const std::multiset< Match > &matches, const MatchableEvent &trial) const
Mapping from a subset of the library to their best matches.
PID
Definition: FillPIDs.h:14
Core of the LEM match-finding algorithm.
const Library * GetLibrary() const
Mapping from a subset of the library to their best matches.
Definition: Heads.h:16
Attach some information used in matching to an EventSummary.
Information about a LEM match.
int BestHeadFor(const FlippedPotentials &trialVs, const MatchableEvent &trial, bool &bestFlipEven, bool &bestFlipOdd, double &bestEnergy) const
Collection of Potential objects with odd and/or even view flipped.
Definition: FindMatches.h:21
std::vector< Match > FindMatchesHeads(const MatchableEvent &trial, unsigned int numMatches, int enrich) const
std::vector< Match > FindMatchesNoHeads(const MatchableEvent &trial, unsigned int numMatches, int enrich) const
enum BeamMode string