Skip to content

Commit

Permalink
Changed to constexpr in reco::Vertex
Browse files Browse the repository at this point in the history
This appears to help RNTuple migration.
  • Loading branch information
Dr15Jones committed Jan 19, 2024
1 parent 9fca027 commit c5a672e
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 c5a672e

Please sign in to comment.