CMS 3D CMS Logo

PFDisplacedVertexSeed.h
Go to the documentation of this file.
1 #ifndef DataFormat_ParticleFlowReco_PFDisplacedVertexSeed_h
2 #define DataFormat_ParticleFlowReco_PFDisplacedVertexSeed_h
3 
6 
7 #include <vector>
8 #include <iostream>
9 
10 
11 
12 namespace reco {
13 
14 
16 
29 
30  public:
31 
34 
38 
40  void reserveElements(size_t);
41 
44  void updateSeedPoint(const GlobalPoint& dcaPoint, const TrackBaseRef,
45  const TrackBaseRef, double weight = 1);
46 
48  void mergeWith(const PFDisplacedVertexSeed& displacedVertex);
49 
51  bool isEmpty() const {return (elements_.empty());}
52 
54  const std::vector <TrackBaseRef>& elements() const
55  {return elements_;}
56 
57  const double nTracks() const {return elements_.size();}
58 
60  const GlobalPoint& seedPoint() const {return seedPoint_;}
61 
63  const double totalWeight() const {return totalWeight_;}
64 
66  void Dump(std::ostream& out = std::cout) const;
67 
68 
69  private:
70 
71 
72  friend std::ostream& operator<<( std::ostream& out, const PFDisplacedVertexSeed& co );
73 
75 
77  std::vector< TrackBaseRef> elements_;
82  float totalWeight_;
83 
84  };
85 }
86 
87 #endif
88 
89 
90 
friend std::ostream & operator<<(std::ostream &out, const PFDisplacedVertexSeed &co)
Definition: weight.py:1
void mergeWith(const PFDisplacedVertexSeed &displacedVertex)
Merge two Seeds if their seed Points are close enough.
void Dump(std::ostream &out=std::cout) const
cout function
GlobalPoint seedPoint_
Seed point which indicated the approximative position of the vertex.
const GlobalPoint & seedPoint() const
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< float >, ROOT::Math::GlobalCoordinateSystemTag > GlobalPoint
point in global coordinate system
Definition: Point3D.h:17
bool isEmpty() const
Check if it is a new Seed.
fixed size matrix
void reserveElements(size_t)
Reserve space for elements.
const double totalWeight() const
PFDisplacedVertexSeed()
Default constructor.
const std::vector< TrackBaseRef > & elements() const
std::vector< TrackBaseRef > elements_
---—— MEMBERS ----—— ///
void updateSeedPoint(const GlobalPoint &dcaPoint, const TrackBaseRef, const TrackBaseRef, double weight=1)