CMS 3D CMS Logo

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 
17 template <unsigned int N>
19 private:
22  using SingleStatePtr = std::shared_ptr<SingleState>;
23 
24 public:
26 
27  CloseComponentsMerger* clone() const override { return new CloseComponentsMerger(*this); }
28 
32  MultiState merge(const MultiState& mgs) const override;
33 
34  MultiState mergeOld(const MultiState& mgs) const;
35 
36 public:
37  typedef std::multimap<double, SingleStatePtr> SingleStateMap;
38  typedef std::pair<SingleStatePtr, typename SingleStateMap::iterator> MinDistResult;
39 
40 private:
41  // std::pair< SingleState, SingleStateMap::iterator >
43 
46 };
47 
48 #include "TrackingTools/GsfTools/interface/CloseComponentsMerger.icc"
49 
50 #endif // CloseComponentsMerger_H
CloseComponentsMerger::merge
MultiState merge(const MultiState &mgs) const override
CloseComponentsMerger::MinDistResult
std::pair< SingleStatePtr, typename SingleStateMap::iterator > MinDistResult
Definition: CloseComponentsMerger.h:38
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
CloseComponentsMerger::compWithMinDistToLargestWeight
MinDistResult compWithMinDistToLargestWeight(SingleStateMap &) const
CloseComponentsMerger::theMaxNumberOfComponents
int theMaxNumberOfComponents
Definition: CloseComponentsMerger.h:44
MultiGaussianStateMerger.h
CloseComponentsMerger::SingleStatePtr
std::shared_ptr< SingleState > SingleStatePtr
Definition: CloseComponentsMerger.h:22
DistanceBetweenComponents.h
CloseComponentsMerger
Definition: CloseComponentsMerger.h:18
CloseComponentsMerger::MultiState
MultiGaussianState< N > MultiState
Definition: CloseComponentsMerger.h:21
MultiGaussianState
Mixture of multi-variate gaussian states.
Definition: MultiGaussianState.h:18
DeepCopyPointerByClone.h
CloseComponentsMerger::mergeOld
MultiState mergeOld(const MultiState &mgs) const
CloseComponentsMerger::theDistance
DeepCopyPointerByClone< DistanceBetweenComponents< N > > theDistance
Definition: CloseComponentsMerger.h:45
DeepCopyPointerByClone
Definition: DeepCopyPointerByClone.h:11
CloseComponentsMerger::CloseComponentsMerger
CloseComponentsMerger(int n, const DistanceBetweenComponents< N > *distance)
DistanceBetweenComponents
Definition: DistanceBetweenComponents.h:11
CloseComponentsMerger::SingleStateMap
std::multimap< double, SingleStatePtr > SingleStateMap
Definition: CloseComponentsMerger.h:37
SingleGaussianState
Definition: SingleGaussianState.h:14
CloseComponentsMerger::clone
CloseComponentsMerger * clone() const override
Definition: CloseComponentsMerger.h:27
MultiGaussianStateMerger
Definition: MultiGaussianStateMerger.h:12
HLT_FULL_cff.distance
distance
Definition: HLT_FULL_cff.py:7733