1 #include "CbmDetectorList.h"
2 #include "CbmTrdDetectorId.h"
4 #include "gtest/gtest-spi.h"
5 #include "gtest/gtest.h"
39 FillDetArray(0, 0, 0, 0, 0, 0);
40 retVal = fTrdId.SetDetectorInfo(detInfo_array);
43 FillDetArray(
kTRD, 0, 0, 0, 0, 0);
44 retVal = fTrdId.SetDetectorInfo(detInfo_array);
47 FillDetArray(0, 1, 0, 0, 0, 0);
48 retVal = fTrdId.SetDetectorInfo(detInfo_array);
49 EXPECT_EQ(32, retVal);
51 FillDetArray(0, 0, 1, 0, 0, 0);
52 retVal = fTrdId.SetDetectorInfo(detInfo_array);
53 EXPECT_EQ(512, retVal);
55 FillDetArray(0, 0, 0, 1, 0, 0);
56 retVal = fTrdId.SetDetectorInfo(detInfo_array);
57 EXPECT_EQ(4096, retVal);
59 FillDetArray(0, 0, 0, 0, 1, 0);
60 retVal = fTrdId.SetDetectorInfo(detInfo_array);
61 EXPECT_EQ(131072, retVal);
63 FillDetArray(0, 0, 0, 0, 0, 1);
64 retVal = fTrdId.SetDetectorInfo(detInfo_array);
65 EXPECT_EQ(33554432, retVal);
67 FillDetArray(
kTRD, 1, 1, 1, 1, 1);
68 retVal = fTrdId.SetDetectorInfo(detInfo_array);
69 EXPECT_EQ(33690149, retVal);
71 FillDetArray(
kTRD, 3, 3, 2, 34, 3);
72 retVal = fTrdId.SetDetectorInfo(detInfo_array);
73 EXPECT_EQ(105129573, retVal);
75 FillDetArray(0, 0, 0, 8, 0, 0);
76 retVal = fTrdId.SetDetectorInfo(detInfo_array);
77 EXPECT_EQ(32768, retVal);
79 FillDetArray(
kTRD, 2, 3, 5, 17, 2);
80 retVal = fTrdId.SetDetectorInfo(detInfo_array);
81 EXPECT_EQ(69359173, retVal);