test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CloseComponentsMerger.h
Go to the documentation of this file.
1 #ifndef CloseComponentsMerger_H
2 #define CloseComponentsMerger_H
3 
7 
8 #include <map>
9 #include <algorithm>
10 
11 
18 template <unsigned int N>
20 
21  private:
24  using SingleStatePtr = std::shared_ptr<SingleState>;
25 
26  public:
27 
30 
31  CloseComponentsMerger* clone() const override
32  {
33  return new CloseComponentsMerger(*this);
34  }
35 
39  MultiState merge(const MultiState& mgs) const override;
40 
41  MultiState mergeOld(const MultiState& mgs) const;
42 
43 
44 public:
45  typedef std::multimap< double, SingleStatePtr > SingleStateMap;
46  typedef std::pair< SingleStatePtr, typename SingleStateMap::iterator > MinDistResult;
47 
48 private:
49 
50 // std::pair< SingleState, SingleStateMap::iterator >
53 
56 
57 };
58 
59 #include "TrackingTools/GsfTools/interface/CloseComponentsMerger.icc"
60 
61 #endif // CloseComponentsMerger_H
DeepCopyPointerByClone< DistanceBetweenComponents< N > > theDistance
MultiState merge(const MultiState &mgs) const override
CloseComponentsMerger * clone() const override
Mixture of multi-variate gaussian states.
std::multimap< double, SingleStatePtr > SingleStateMap
MultiGaussianState< N > MultiState
MultiState mergeOld(const MultiState &mgs) const
MinDistResult compWithMinDistToLargestWeight(SingleStateMap &) const
std::pair< SingleStatePtr, typename SingleStateMap::iterator > MinDistResult
CloseComponentsMerger(int n, const DistanceBetweenComponents< N > *distance)
std::shared_ptr< SingleState > SingleStatePtr