CMS 3D CMS Logo

GsfVertexUpdator.h
Go to the documentation of this file.
1 #ifndef GsfVertexUpdator_H
2 #define GsfVertexUpdator_H
3 
8 
14 class GsfVertexUpdator : public VertexUpdator<5> {
15 public:
18 
19  GsfVertexUpdator(bool limit = false, const GsfVertexMerger* merger = nullptr);
25  CachingVertex<5> add(const CachingVertex<5>& oldVertex, const RefCountedVertexTrack track) const override;
26 
32  CachingVertex<5> remove(const CachingVertex<5>& oldVertex, const RefCountedVertexTrack track) const override;
33 
38  VertexUpdator<5>* clone() const override { return new GsfVertexUpdator(*this); }
39 
40 private:
41  typedef std::vector<VertexState> VSC;
42  typedef std::vector<RefCountedLinearizedTrackState> LTC;
43  typedef std::pair<double, double> WeightChi2Pair;
44  typedef std::pair<VertexState, WeightChi2Pair> VertexComponent;
45  typedef std::pair<VertexState, double> VertexChi2Pair;
46 
47  VertexComponent createNewComponent(const VertexState& oldVertex,
48  const RefCountedLinearizedTrackState linTrack,
49  float weight,
50  int sign) const;
51 
52  VertexChi2Pair assembleVertexComponents(const std::vector<VertexComponent>& newVertexComponents) const;
53 
58 };
59 
60 #endif
VertexUpdator< 5 > * clone() const override
VertexTrack< 5 >::RefCountedLinearizedTrackState RefCountedLinearizedTrackState
GsfVertexWeightCalculator theWeightCalculator
std::vector< VertexState > VSC
Definition: weight.py:1
KalmanVertexUpdator< 5 > kalmanVertexUpdator
CachingVertex< 5 >::RefCountedVertexTrack RefCountedVertexTrack
GsfVertexUpdator(bool limit=false, const GsfVertexMerger *merger=0)
VertexChi2Pair assembleVertexComponents(const std::vector< VertexComponent > &newVertexComponents) const
DeepCopyPointerByClone< GsfVertexMerger > theMerger
VertexComponent createNewComponent(const VertexState &oldVertex, const RefCountedLinearizedTrackState linTrack, float weight, int sign) const
std::pair< VertexState, double > VertexChi2Pair
std::pair< double, double > WeightChi2Pair
CachingVertex< 5 > add(const CachingVertex< 5 > &oldVertex, const RefCountedVertexTrack track) const override
std::vector< RefCountedLinearizedTrackState > LTC
std::pair< VertexState, WeightChi2Pair > VertexComponent