FACT++  1.0
void factofits::SetDrsCalibration ( const std::vector< float > &  calib)
inline

assign a given drs offset calibration

Definition at line 48 of file factofits.h.

References fOffsetCalibration, i, IsOffsetCalibration(), and VerifyCalibrationSize().

Referenced by DataWriteFits2::DataWriteFits2(), and main().

49  {
50  VerifyCalibrationSize(calib.size());
51 
52  if (!IsOffsetCalibration())
53  fOffsetCalibration.resize(1440*1024);
54 
55  for (uint32_t i=0; i<1440*1024; i++)
56  fOffsetCalibration[i] = (int16_t)(calib[i]*4096/2000);
57  }
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

+ Here is the call graph for this function:

+ Here is the caller graph for this function: