13 CbmTrdDetectorId fTrdId;
18 int32_t moduleType = 0;
21 int32_t detInfo_array[6] = {system, station, layer, moduleType, moduleNr, sector};
23 int32_t retVal = fTrdId.SetDetectorInfo(detInfo_array);
26 detInfo_array[0] = kTRD;
33 retVal = fTrdId.SetDetectorInfo(detInfo_array);
43 retVal = fTrdId.SetDetectorInfo(detInfo_array);
44 EXPECT_EQ(32, retVal);
53 retVal = fTrdId.SetDetectorInfo(detInfo_array);
54 EXPECT_EQ(512, retVal);
63 retVal = fTrdId.SetDetectorInfo(detInfo_array);
64 EXPECT_EQ(4096, retVal);
73 retVal = fTrdId.SetDetectorInfo(detInfo_array);
74 EXPECT_EQ(131072, retVal);
83 retVal = fTrdId.SetDetectorInfo(detInfo_array);
84 EXPECT_EQ(33554432, retVal);
86 detInfo_array[0] = kTRD;
93 retVal = fTrdId.SetDetectorInfo(detInfo_array);
94 EXPECT_EQ(33690149, retVal);
96 detInfo_array[0] = kTRD;
100 detInfo_array[4] = 34;
101 detInfo_array[5] = 3;
103 retVal = fTrdId.SetDetectorInfo(detInfo_array);
104 EXPECT_EQ(105129573, retVal);
106 detInfo_array[0] = 0;
107 detInfo_array[1] = 0;
108 detInfo_array[2] = 0;
109 detInfo_array[3] = 8;
110 detInfo_array[4] = 0;
111 detInfo_array[5] = 0;
113 retVal = fTrdId.SetDetectorInfo(detInfo_array);
114 EXPECT_EQ(32768, retVal);
116 detInfo_array[0] = kTRD;
117 detInfo_array[1] = 2;
118 detInfo_array[2] = 3;
119 detInfo_array[3] = 5;
120 detInfo_array[4] = 17;
121 detInfo_array[5] = 2;
123 retVal = fTrdId.SetDetectorInfo(detInfo_array);
124 EXPECT_EQ(69359173, retVal);