FACT++  1.0
void factofits::SetDrsCalibration ( const DrsCalibration drs)
inline

assign a given drs offset calibration

Definition at line 72 of file factofits.h.

References DrsCalibration::fNumOffset, DrsCalibration::fOffset, fOffsetCalibration, i, IsOffsetCalibration(), and VerifyCalibrationSize().

73  {
74  if (drs.fNumOffset==0)
75  return;
76 
77  VerifyCalibrationSize(drs.fOffset.size());
78 
79  if (!IsOffsetCalibration())
80  fOffsetCalibration.resize(1440*1024);
81 
82  for (uint32_t i=0; i<1024*1440; i++)
84  }
std::vector< int32_t > fOffset
Definition: DrsCalib.h:1309
int i
Definition: db_dim_client.c:21
bool VerifyCalibrationSize(uint32_t size)
Checks if the size of the input calibration is ok.
Definition: factofits.h:347
std::vector< int16_t > fOffsetCalibration
The calibration itself.
Definition: factofits.h:363
virtual bool IsOffsetCalibration()
whether or not a calibration was given to the file writer
Definition: factofits.h:42
int64_t fNumOffset
Definition: DrsCalib.h:1313

+ Here is the call graph for this function: