Skip to content

Commit

Permalink
Merge pull request #43759 from Dr15Jones/constexprVertex
Browse files Browse the repository at this point in the history
Changed to constexpr in reco::Vertex
  • Loading branch information
cmsbuild authored Jan 22, 2024
2 parents 8439677 + c5a672e commit 089c6d8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions DataFormats/VertexReco/interface/Vertex.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ namespace reco {
/// point in the space
typedef math::XYZPoint Point;
/// error matrix dimension
enum { dimension = 3, dimension4D = 4 };
constexpr static int dimension = 3;
constexpr static int dimension4D = 4;
/// covariance error matrix (3x3)
typedef math::Error<dimension>::type Error;
/// covariance error matrix (3x3)
Expand All @@ -49,7 +50,7 @@ namespace reco {
/// covariance error matrix (4x4)
typedef math::Error<dimension4D>::type CovarianceMatrix4D;
/// matix size
enum { size = dimension * (dimension + 1) / 2, size4D = (dimension4D) * (dimension4D + 1) / 2 };
constexpr static int size = dimension * (dimension + 1) / 2, size4D = (dimension4D) * (dimension4D + 1) / 2;
/// index type
typedef unsigned int index;
/// default constructor - The vertex will not be valid. Position, error,
Expand Down

0 comments on commit 089c6d8

Please sign in to comment.