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

assign a given drs offset calibration

Definition at line 60 of file factofits.h.

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

61  {
62  VerifyCalibrationSize(vec.size());
63 
64  if (!IsOffsetCalibration())
65  fOffsetCalibration.resize(1440*1024);
66 
67  for (uint32_t i=0; i<1440*1024; i++)
68  fOffsetCalibration[i] = vec[i];
69  }
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: