15 double tof,
double length,
double eloss, int32_t eventid)
17 int32_t retValInt {-222};
18 double retValDouble {-222.};
20 retValInt = test.GetDetectorID();
21 EXPECT_EQ(detID, retValInt);
23 retValInt = test.GetEventID();
24 EXPECT_EQ(eventid, retValInt);
26 retValInt = test.GetTrackID();
27 EXPECT_EQ(trackID, retValInt);
29 retValDouble = test.GetPx();
30 EXPECT_FLOAT_EQ(mom.Px(), retValDouble);
32 retValDouble = test.GetPy();
33 EXPECT_FLOAT_EQ(mom.Py(), retValDouble);
35 retValDouble = test.GetPz();
36 EXPECT_FLOAT_EQ(mom.Pz(), retValDouble);
38 retValDouble = test.GetX();
39 EXPECT_FLOAT_EQ(
pos.X(), retValDouble);
41 retValDouble = test.GetY();
42 EXPECT_FLOAT_EQ(
pos.Y(), retValDouble);
44 retValDouble = test.GetZ();
45 EXPECT_FLOAT_EQ(
pos.Z(), retValDouble);
47 retValDouble = test.GetTime();
48 EXPECT_FLOAT_EQ(tof, retValDouble);
50 retValDouble = test.GetLength();
51 EXPECT_FLOAT_EQ(length, retValDouble);
53 retValDouble = test.GetEnergyLoss();
54 EXPECT_FLOAT_EQ(eloss, retValDouble);
void compareFairMCPointDataMembers(FairMCPoint &test, int32_t trackID, int32_t detID, TVector3 pos, TVector3 mom, double tof, double length, double eloss, int32_t eventid)