FACT++  1.0
FTM::DimTriggerRates::DimTriggerRates ( const Header h,
const DynamicData d,
const StaticData s,
float  rate,
float  et,
float  ot 
)
inline

Definition at line 597 of file HeadersFTM.h.

References FTM::State::__attribute__, fOverflow, fRatePatch, fRateTotal, and i.

597  :
598  fTimeStamp(h.fTimeStamp), fOnTimeCounter(d.fOnTimeCounter),
599  fTriggerCounter(h.fTriggerCounter), fTriggerRate(rate),
600  fElapsedTime(et), fOnTime(ot)
601  {
602  for (int i=0; i<40; i++)
603  {
604  if ((d[i].fOverflow>>4)&1)
605  fBoardRate[i] = float(UINT32_MAX+1)*2/(s[i].fPrescaling+1);
606  else
607  fBoardRate[i] = float(d[i].fRateTotal)*2/(s[i].fPrescaling+1);
608 
609  // FIXME: Include fCrcError in calculation
610  //fRateOverflow[i] = d[i].fOverflow;
611  for (int j=0; j<4; j++)
612  if ((d[i].fOverflow>>j)&1)
613  fPatchRate[i*4+j] = float(UINT32_MAX+1)*2/(s[i].fPrescaling+1);
614  else
615  fPatchRate[i*4+j] = float(d[i].fRatePatch[j])*2/(s[i].fPrescaling+1);
616  }
617  }
uint32_t fRatePatch[4]
Definition: HeadersFTM.h:186
int i
Definition: db_dim_client.c:21
float fBoardRate[40]
Definition: HeadersFTM.h:589
uint32_t fRateTotal
Definition: HeadersFTM.h:187
uint32_t fTriggerCounter
Definition: HeadersFTM.h:587
uint16_t fOverflow
Definition: HeadersFTM.h:189
uint64_t fOnTimeCounter
Definition: HeadersFTM.h:586
float fPatchRate[160]
Definition: HeadersFTM.h:590