263 float yRange =
bboxMax[1] - bboxMin[1];
267 glColor3f(0.0,0.0,0.0);
268 glVertex2f(bboxMin[0], bboxMin[1]);
269 glVertex2f(
bboxMax[0], bboxMin[1]);
270 glVertex2f(bboxMin[0], bboxMin[1]);
271 glVertex2f(bboxMin[0],
bboxMax[1]);
272 glVertex2f(bboxMin[0], (bboxMin[1]+
bboxMax[1])/2.0f);
279 glTranslatef(0,0,0.1f);
283 glColor3f(1.0f,1.0f,0.0f);
300 const int hw = mapping;
302 const int pixelIdInPatch = mapEntry.
pixel();
303 const int patchId = mapEntry.
patch();
304 const int boardId = mapEntry.
board();
305 const int crateId = mapEntry.
crate();
313 if (!finite(d1)) d1 = 20000;
314 if (!finite(d2)) d2 = 20000;
315 glVertex2f(bboxMin[0] + xRange*
i/(
float)(nRoi+
nRoiTM),
316 bboxMin[1] + yRange*(d1) /divideMe);
317 glVertex2f(bboxMin[0] + xRange*(
i+1)/(
float)(nRoi+
nRoiTM),
318 bboxMin[1] + yRange*(d2) /divideMe);
322 glColor3f(0.0f, 1.0f, 1.0f);
324 if (pixelIdInPatch == 8)
329 float d1 =
eventData[nRoi*1440 + nRoiTM*(40*crateId + 4*boardId + patchId) +
i] + plusMe;
330 float d2 =
eventData[nRoi*1440 + nRoiTM*(40*crateId + 4*boardId + patchId) +
i+1] + plusMe;
331 if (!finite(d1)) d1 = 20000;
332 if (!finite(d2)) d2 = 20000;
333 glVertex2f(bboxMin[0] + xRange*(
i+nRoi)/(
float)(nRoi+nRoiTM),
334 bboxMin[1] + yRange*(d1)/divideMe);
335 glVertex2f(bboxMin[0] + xRange*(
i+1+nRoi)/(
float)(nRoi+nRoiTM),
336 bboxMin[1] + yRange*(d2) / divideMe);
342 glTranslatef(0,0,0.1f);
344 glColor3f(1.0,0.0,0.0);
345 glVertex2f(bboxMin[0] + xRange*
whichSlice/(
float)(nRoi+nRoiTM),
347 glVertex2f(bboxMin[0] + xRange*
whichSlice/(
float)(nRoi+nRoiTM),
int crate() const
Bias supply channel.
const PixelMapEntry & index(int idx) const
static PixelMap fPixelMap
static int hardwareMapping[NPIX]