11#include <gtest/gtest.h>
13#include "analysis/VertexFitting/TreeFitter/FitParams.h"
18 class TreeFitterFitparTest :
public ::testing::Test {
22 TEST_F(TreeFitterFitparTest, Constructor)
27 EXPECT_FALSE(fitParDim3.getStateVector().array().any()) <<
"statevector not initialised to 0,0,...";
30 EXPECT_FALSE(fitParDim3.getCovariance().array().any()) <<
"covariance not initialised to 0";
34 TEST_F(TreeFitterFitparTest, Functions)
39 fitParDim3.getStateVector() << 1, 2, 3;
40 fitParDim3.resetStateVector();
41 EXPECT_FALSE(fitParDim3.getStateVector().array().any()) <<
"fitParDim3.resetStateVector() didn't work";
44 fitParDim3.getCovariance() << 1, 2, 3, 4, 5, 6, 7, 8, 9;
45 fitParDim3.resetCovariance();
46 EXPECT_FALSE(fitParDim3.getCovariance().array().any()) <<
"fitParDim3.resetCovariance() didn't work";
48 EXPECT_FALSE(fitParDim3.testCovariance()) <<
"fitParDim3.testCovariance() failed";
Class to store and manage fitparams (statevector)