FileCalibration does not error if provided file does not exist
The FileCalibration constructor takes an std::string
object, which is the path to the file to be read. It does not check if the file exists, and if a dummy path is provided the constructor will never return due to the while(!fh.eof())
call.
This should be fixed and the first thing the constructor should do is check that the provided path exists, that it is a file, and if not an exception should be thrown.