CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SecondaryVertex.h
Go to the documentation of this file.
1 #ifndef RecoBTag_SecondaryVertex_SecondaryVertex_h
2 #define RecoBTag_SecondaryVertex_SecondaryVertex_h
3 
7 
8 namespace reco {
9 
10 class SecondaryVertex : public reco::Vertex {
11  public:
14  const reco::Vertex &sv,
15  const GlobalVector &direction,
16  bool withPVError = false) :
17  reco::Vertex(sv),
18  dist2d_(computeDist2d(pv, sv, direction, withPVError)),
19  dist3d_(computeDist3d(pv, sv, direction, withPVError)) {}
21 
22  inline Measurement1D dist2d() const { return dist2d_; }
23  inline Measurement1D dist3d() const { return dist3d_; }
24 
26  const reco::Vertex &pv, const reco::Vertex &sv,
27  const GlobalVector &direction, bool withPVError);
29  const reco::Vertex &pv, const reco::Vertex &sv,
30  const GlobalVector &direction, bool withPVError);
31 
32  private:
35 };
36 
37 } // namespace reco
38 
39 #endif // RecoBTag_SecondaryVertex_SecondaryVertex_h
Measurement1D dist3d() const
static Measurement1D computeDist2d(const reco::Vertex &pv, const reco::Vertex &sv, const GlobalVector &direction, bool withPVError)
Measurement1D dist2d() const
static Measurement1D computeDist3d(const reco::Vertex &pv, const reco::Vertex &sv, const GlobalVector &direction, bool withPVError)
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< float >, ROOT::Math::GlobalCoordinateSystemTag > GlobalVector
vector in glovbal coordinate system
Definition: Vector3D.h:28
SecondaryVertex(const reco::Vertex &pv, const reco::Vertex &sv, const GlobalVector &direction, bool withPVError=false)