Belle II Software development
V0ValidationVertex.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8#pragma once
9
10#include <mdst/dataobjects/V0.h>
11
12#include <Math/Vector3D.h>
13
14namespace Belle2 {
25 class V0ValidationVertex : public V0 {
26 public:
27
30 V0(),
33 m_chi2(0)
34 {}
35
44 V0ValidationVertex(const std::pair<const Belle2::Track*, const Belle2::TrackFitResult*>& trackPairPositive,
45 const std::pair<const Belle2::Track*, const Belle2::TrackFitResult*>& trackPairNegative,
46 double vertexX, double vertexY, double vertexZ) :
47 V0(trackPairPositive, trackPairNegative, vertexX, vertexY, vertexZ),
50 m_chi2(0)
51 {}
52
63 V0ValidationVertex(const std::pair<const Belle2::Track*, const Belle2::TrackFitResult*>& trackPairPositive,
64 const std::pair<const Belle2::Track*, const Belle2::TrackFitResult*>& trackPairNegative,
65 const ROOT::Math::XYZVector& fittedVertexPosition,
66 const TMatrixDSym& fittedVertexPositionCovariance,
67 const double& momentum,
68 const double& invariantMass,
69 const double& chi2) :
70 V0(trackPairPositive, trackPairNegative, fittedVertexPosition.X(), fittedVertexPosition.Y(), fittedVertexPosition.Z()),
71 m_fittedVertexPositionCovariance(fittedVertexPositionCovariance),
72 m_fittedMomentum(momentum),
73 m_fittedInvariantMass(invariantMass),
74 m_chi2(chi2)
75 {}
76
78 ROOT::Math::XYZVector getVertexPosition() const { return getFittedVertexPosition(); }
79
82
84 float getFittedMomentum() const { return m_fittedMomentum; }
85
88
90 float getVertexChi2() const { return m_chi2; }
91
92 private:
96 float m_chi2;
97
99 };
100
102}
Class which stores some additional information on V0 vertices.
float m_chi2
reconstructed chi2
float getFittedMomentum() const
Getter for the reconstructed momentum.
ClassDef(V0ValidationVertex, 3)
Dataobjects for the reconstruction level validation of V0 reconstruction.
TMatrixDSym m_fittedVertexPositionCovariance
vertex position covariance
V0ValidationVertex(const std::pair< const Belle2::Track *, const Belle2::TrackFitResult * > &trackPairPositive, const std::pair< const Belle2::Track *, const Belle2::TrackFitResult * > &trackPairNegative, double vertexX, double vertexY, double vertexZ)
Constructor equivalent to the constructor of the V0 mdst dataobjects.
float getFittedInvariantMass() const
Getter for the reconstructed invariant mass.
float getVertexChi2() const
Getter for the chi2 of the vertex fit.
V0ValidationVertex(const std::pair< const Belle2::Track *, const Belle2::TrackFitResult * > &trackPairPositive, const std::pair< const Belle2::Track *, const Belle2::TrackFitResult * > &trackPairNegative, const ROOT::Math::XYZVector &fittedVertexPosition, const TMatrixDSym &fittedVertexPositionCovariance, const double &momentum, const double &invariantMass, const double &chi2)
Constructor to initialize a V0 with additional information which is only available on reconstruction ...
float m_fittedMomentum
reconstructed momentum
float m_fittedInvariantMass
reconstructed invariant mass
TMatrixDSym getVertexPositionCovariance() const
Getter for the reconstructed vertex position covariance.
V0ValidationVertex()
Default Constructor.
ROOT::Math::XYZVector getVertexPosition() const
Getter for the reconstructed vertex position. Aliases getFittedVertexPosition for backwards compatibi...
Object holding information for V0s.
Definition: V0.h:34
ROOT::Math::XYZVector getFittedVertexPosition() const
Get the fitted vertex position.
Definition: V0.h:84
Abstract base class for different kinds of events.