read/write of config/parameter file rewritten so that parameter file can take in slsdetector level commands

This commit is contained in:
2020-01-06 18:16:41 +01:00
parent 51c5520472
commit 38aad40fef
8 changed files with 480 additions and 696 deletions

View File

@ -795,6 +795,26 @@ public:
*/
int writeConfigurationFile(std::string const fname);
/**
* Saves the detector setup to file
* @param fname file to write to
* @param level if 2 reads also trimbits, flat field, angular
* correction etc. and writes them to files with automatically
* added extension
* @returns OK or FAIL
*/
int dumpDetectorSetup(std::string const fname1, int level=0);
/**
* Loads the detector setup from file
* @param fname file to read from
* @param level if 2 reads also reads trimbits, angular
* conversion coefficients etc. from files with default
* extensions as generated by dumpDetectorSetup
* @returns OK or FAIL
*/
int retrieveDetectorSetup(std::string const fname1, int level=0);
/**
* Returns the trimfile or settings file name (Useless??)
* @returns the trimfile or settings file name