Changeset 11794
- Timestamp:
- 08/05/11 15:09:30 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/HeadersFTM.h
r11784 r11794 580 580 { 581 581 if ((d[i].fOverflow>>4)&1) 582 fBoardRate[i] = float(UINT32_MAX+1)*2/ s[i].fPrescaling;582 fBoardRate[i] = float(UINT32_MAX+1)*2/(s[i].fPrescaling+1); 583 583 else 584 fBoardRate[i] = float(d[i].fRateTotal)*2/ s[i].fPrescaling;584 fBoardRate[i] = float(d[i].fRateTotal)*2/(s[i].fPrescaling+1); 585 585 586 586 // FIXME: Include fCrcError in calculation … … 588 588 for (int j=0; j<4; j++) 589 589 if ((d[i].fOverflow>>j)&1) 590 fPatchRate[i*4+j] = float(UINT32_MAX+1)*2/ s[i].fPrescaling;590 fPatchRate[i*4+j] = float(UINT32_MAX+1)*2/(s[i].fPrescaling+1); 591 591 else 592 fPatchRate[i*4+j] = float(d[i].fRatePatch[j])*2/ s[i].fPrescaling;592 fPatchRate[i*4+j] = float(d[i].fRatePatch[j])*2/(s[i].fPrescaling+1); 593 593 } 594 594 }
Note:
See TracChangeset
for help on using the changeset viewer.