1 #ifndef COMPAREFAIRMCPOINT_H
2 #define COMPAREFAIRMCPOINT_H 1
4 #include <FairMCPoint.h>
17 Int_t retValInt {-222};
18 Double_t 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);
57 #endif // COMPAREPSDDIGI_H