26#include <edm4hep/TrackState.h>
27#include <edm4hep/Vector3f.h>
39 return (i >= j) ? (i * (i + 1) / 2 + j) : (j * (j + 1) / 2 + i);
43inline constexpr double kOmega = 2.99792458e-4;
70 static Helix
fromPerigee(
float d0,
float z0,
float theta,
float phi,
72 const std::array<float, 15>* W =
nullptr);
87 double theta,
double phi,
double invP,
88 bool invPt,
bool cylindrical,
93 static Helix
fromHelix(
float D0,
float phi,
float omega,
94 float Z0,
float tanLambda);
97 bool valid()
const {
return valid_; }
98 bool hasCov()
const {
return hasCov_; }
115 edm4hep::Vector3f refPoint_{0.f, 0.f, 0.f};
117 bool hasCov_ =
false;
static Helix fromHelix(float D0, float phi, float omega, float Z0, float tanLambda)
Momentum momentum(double B, int charge) const
const CovMatrix6 & cov() const
static Helix fromTrackElement(double c1, double c2, double c3, double theta, double phi, double invP, bool invPt, bool cylindrical, const CovMatrix6 &teCov, double B)
static Helix fromPerigee(float d0, float z0, float theta, float phi, float invR, const std::array< float, 15 > *W=nullptr)
const HelixParams & params() const
edm4hep::TrackState toTrackState(int location) const
std::array< float, 21 > CovMatrix6
constexpr int covOffset(int i, int j)