FACT++  1.0
FTM::DimStaticData::DimStaticData ( const Header h,
const StaticData d 
)
inline

Definition at line 434 of file HeadersFTM.h.

References FTM::State::__attribute__, bitcpy(), FTM::StaticData::fClockConditioner, and i.

434  :
435  fTimeStamp(h.fTimeStamp),
436  fGeneralSettings(d.fGeneralSettings),
437  fStatusLEDs(d.fStatusLEDs),
438  fActiveFTU( uint64_t(d.fActiveFTU[0]) |
439  (uint64_t(d.fActiveFTU[1])<<10) |
440  (uint64_t(d.fActiveFTU[2])<<20) |
441  (uint64_t(d.fActiveFTU[3])<<30)),
442  fTriggerInterval(d.fTriggerInterval),
443  fTriggerSeqLPint((d.fTriggerSequence>>5)&0x1f),
444  fTriggerSeqLPext((d.fTriggerSequence)&0x1f),
445  fTriggerSeqPed((d.fTriggerSequence>>10)&0x1f),
446  fEnableLPint(d.fEnableLPint),
447  fEnableLPext(d.fEnableLPext),
448  fIntensityLPint(d.fIntensityLPint),
449  fIntensityLPext(d.fIntensityLPext),
450  fMultiplicityPhysics(d.fMultiplicityPhysics),
451  fMultiplicityCalib(d.fMultiplicityCalib),
452  fWindowPhysics(d.fWindowPhysics*4+8),
453  fWindowCalib(d.fWindowCalib*4+8),
454  fDelayTrigger(d.fDelayTrigger*4+8),
455  fDelayTimeMarker(d.fDelayTimeMarker*4+8),
456  fDeadTime(uint32_t(d.fDeadTime)*4+8)
457  {
458  memcpy(fClockConditioner, d.fClockConditioner, sizeof(uint32_t)*8);
459 
460  uint16_t src[160];
461  for (int i=0; i<40; i++)
462  {
463  for (int j=0; j<4; j++)
464  {
465  src[i*4+j] = d[i].fEnable[j];
466  fThreshold[i*4+j] = d[i].fDAC[j];
467  }
468 
469  fMultiplicity[i] = d[i].fDAC[4];
470  fPrescaling[i] = d[i].fPrescaling+1;
471  }
472  bitcpy(fEnable, 90, src, 160, 9);
473  }
uint16_t fTriggerSeqPed
Definition: HeadersFTM.h:390
uint64_t fActiveFTU
Definition: HeadersFTM.h:384
int i
Definition: db_dim_client.c:21
uint8_t fIntensityLPext
Intensity of LEDs (0-127)
Definition: HeadersFTM.h:395
uint8_t fEnableLPint
Definition: HeadersFTM.h:392
uint64_t fTimeStamp
Definition: HeadersFTM.h:380
uint32_t fClockConditioner[8]
Definition: HeadersFTM.h:407
uint16_t fMultiplicityPhysics
Intensity of LEDs (0-127)
Definition: HeadersFTM.h:397
uint8_t fEnableLPext
Enable for LED group 1/2 (LightPulserEnable)
Definition: HeadersFTM.h:393
uint16_t fWindowPhysics
Definition: HeadersFTM.h:400
uint8_t fIntensityLPint
Enable for LED group 1/2 (LightPulserEnable)
Definition: HeadersFTM.h:394
uint32_t fDeadTime
Definition: HeadersFTM.h:405
uint16_t fDelayTimeMarker
Definition: HeadersFTM.h:404
uint16_t fPrescaling[40]
Definition: HeadersFTM.h:412
uint16_t fGeneralSettings
Definition: HeadersFTM.h:382
uint16_t fStatusLEDs
Definition: HeadersFTM.h:383
uint16_t fMultiplicity[40]
Definition: HeadersFTM.h:411
uint16_t fEnable[90]
Definition: HeadersFTM.h:409
uint16_t fWindowCalib
Definition: HeadersFTM.h:401
uint16_t fTriggerInterval
Definition: HeadersFTM.h:386
uint16_t fMultiplicityCalib
Definition: HeadersFTM.h:398
uint16_t fTriggerSeqLPint
Definition: HeadersFTM.h:388
uint16_t fDelayTrigger
Definition: HeadersFTM.h:403
uint16_t fThreshold[160]
Definition: HeadersFTM.h:410
uint16_t fTriggerSeqLPext
Definition: HeadersFTM.h:389
void bitcpy(T *target, size_t ntarget, const S *source, size_t nsource, size_t ss=0, size_t ts=0)
Definition: ByteOrder.h:87

+ Here is the call graph for this function: