added function to read 4 energy calibration coefficients for eiger, comments on how to add them to the software

This commit is contained in:
2015-09-03 15:39:54 +02:00
parent 34a1dac0fe
commit 681ed0f34f
5 changed files with 152 additions and 3 deletions

View File

@ -45,6 +45,33 @@ class energyConversion
*/
static int writeCalibrationFile(string fname, double gain, double offset);
/**
reads a calibration file
\param fname file to be read
\param gain reference to the gain variable
\offset reference to the offset variable
*/
static int readCalibrationFile(string fname, double *gain, double *offset, detectorType myDetectorType);
/**
writes a calibration file
\param fname file to be written
\param gain
\param offset
*/
static int writeCalibrationFile(string fname, double *gain, double *offset, detectorType myDetectorType);
#ifndef MYROOT
/**