9#include <tracking/trackFindingCDC/geometry/HelixParameters.h>
11#include <gtest/gtest.h>
15using namespace TrackFindingCDC;
17TEST(TrackFindingCDCTest, geometry_HelixCovariance_constructFromPerigeeAndSZCovariance)
21 using namespace NPerigeeParameterIndices;
22 perigeeCovariance(c_Curv, c_Curv) = 1;
23 perigeeCovariance(c_Curv, c_I) = 1;
24 perigeeCovariance(c_I, c_Curv) = 1;
25 perigeeCovariance(c_I, c_I) = 1;
30 using namespace NSZParameterIndices;
31 szCovariance(c_TanL, c_TanL) = 1;
32 szCovariance(c_Z0, c_Z0) = 1;
37 using namespace NHelixParameterIndices;
38 EXPECT_EQ(1, helixCovariance(c_Curv, c_Curv));
39 EXPECT_EQ(1, helixCovariance(c_I, c_I));
40 EXPECT_EQ(1, helixCovariance(c_Curv, c_I));
41 EXPECT_EQ(1, helixCovariance(c_I, c_Curv));
43 EXPECT_EQ(1, helixCovariance(c_TanL, c_TanL));
44 EXPECT_EQ(1, helixCovariance(c_Z0, c_Z0));
46 EXPECT_EQ(0, helixCovariance(c_Phi0, c_Phi0));
47 EXPECT_EQ(0, helixCovariance(c_TanL, c_Curv));
A matrix implementation to be used as an interface typ through out the track finder.
static PlainMatrix< T, M, N > Zero()
Construct a matrix initialized with zeros.
Abstract base class for different kinds of events.
static HelixUtil::CovarianceMatrix stackBlocks(const PerigeeUtil::CovarianceMatrix &perigeeCov, const SZUtil::CovarianceMatrix &szCov)
Combine covariance matrices from the xy space and the sz space in their respective blocks.