3 #include "gtest/gtest-spi.h"
4 #include "gtest/gtest.h"
8 TEST(_GTestCbmTrdHit, CheckDefaultConstructor) {
49 TEST(_GTestCbmTrdHit, CheckStandardConstructor) {
50 Int_t address {12345};
51 TVector3
pos {-3., 5.777, 123.765};
52 TVector3 error {0.77, 0.88, 0.99};
55 Double_t eloss {123.};
98 TEST(_GTestCbmTrdHit, CheckStandardConstructorWithTime) {
99 Int_t address {12345};
100 TVector3
pos {-3., 5.777, 123.765};
101 TVector3 error {0.77, 0.88, 0.99};
104 Double_t eloss {123.};
105 Double_t time {456.};
106 Double_t timeError {1.34};
108 CbmTrdHit test(address,
pos, error, dxy, refId, eloss, time, timeError);
129 new CbmTrdHit(address,
pos, error, dxy, refId, eloss, time, timeError);
149 TEST(_GTestCbmTrdHit, CheckSetBits) {
315 TEST(_GTestCbmTrdHit, CheckSetEloss) {
355 TEST(_GTestCbmTrdHit, CheckToString) {
356 Int_t address {12345};
357 TVector3
pos {-3., 5.777, 123.765};
358 TVector3 error {0.77, 0.88, 0.99};
361 Double_t eloss {123.};
362 Double_t time {456.};
363 Double_t timeError {1.34};
365 CbmTrdHit test(address,
pos, error, dxy, refId, eloss, time, timeError);
385 EXPECT_STREQ(
"CbmPixelHit: address=12345 pos=(-3,5.777,123.765) "
386 "err=(0.77,0.88,0.99) dxy=1.2 refId=6\nCbmTrdHit: "
387 "time[ns]=456+-1.34 eloss=123 typ[R] RC=n Ovf=n\n",