18 POS_NUM_EVE_NUM_NODES = 2,
25 EXP_MASK = 0xFFC00000,
27 RUNNO_MASK = 0x003FFF00,
29 SUBRUNNO_MASK = 0x000000FF
36 vector<unsigned int> buf(400000);
37 int infn = fileno(stdin);
38 printf(
"infn = %d\n", infn);
42 int is = read(infn, &buf[0], 4);
45 is = read(infn, &buf[1], (buf[0] - 1) * 4);
50 int exp = (buf[ POS_EXP_RUN_NUM ] & EXP_MASK) >> EXP_SHIFT;
51 int run = (buf[ POS_EXP_RUN_NUM ] & RUNNO_MASK) >> RUNNO_SHIFT;
52 int evt = buf[ POS_EVE_NUM ];
54 printf(
"Nrec:%d ; Nw:%u ; Exp:%d, Run:%d, Evt:%d\n",
55 nrec, buf[0], exp, run, evt);