mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-20 08:38:00 +02:00
changed the settings comments to include that it is loaded successfully
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@731 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
@ -2884,6 +2884,8 @@ slsDetectorDefs::detectorSettings slsDetector::setSettings( detectorSettings ise
|
|||||||
ostringstream ostfn, oscfn;
|
ostringstream ostfn, oscfn;
|
||||||
myMod->module=im;
|
myMod->module=im;
|
||||||
|
|
||||||
|
std::cout << std::endl << "Loading settings for module:" << im << std::endl;
|
||||||
|
|
||||||
//create file names
|
//create file names
|
||||||
switch(thisDetector->myDetectorType){
|
switch(thisDetector->myDetectorType){
|
||||||
case EIGER:
|
case EIGER:
|
||||||
@ -2912,7 +2914,7 @@ slsDetectorDefs::detectorSettings slsDetector::setSettings( detectorSettings ise
|
|||||||
|
|
||||||
settingsfname=ostfn.str();
|
settingsfname=ostfn.str();
|
||||||
#ifdef VERBOSE
|
#ifdef VERBOSE
|
||||||
cout << "the settings name is "<<settingsfname << endl;
|
cout << "the settings file name is "<<settingsfname << endl;
|
||||||
#endif
|
#endif
|
||||||
if (readSettingsFile(settingsfname,thisDetector->myDetectorType, myMod)) {
|
if (readSettingsFile(settingsfname,thisDetector->myDetectorType, myMod)) {
|
||||||
calfname=oscfn.str();
|
calfname=oscfn.str();
|
||||||
|
@ -28,6 +28,7 @@ int energyConversion::readCalibrationFile(string fname, double &gain, double &of
|
|||||||
istringstream ssstr(str);
|
istringstream ssstr(str);
|
||||||
ssstr >> offset >> gain;
|
ssstr >> offset >> gain;
|
||||||
infile.close();
|
infile.close();
|
||||||
|
cout << "Calibration file loaded: " << fname << endl;
|
||||||
} else {
|
} else {
|
||||||
std::cout<< "Could not open calibration file "<< fname << std::endl;
|
std::cout<< "Could not open calibration file "<< fname << std::endl;
|
||||||
gain=0.;
|
gain=0.;
|
||||||
@ -229,7 +230,7 @@ slsDetectorDefs::sls_detector_module* energyConversion::readSettingsFile(string
|
|||||||
|
|
||||||
infile.close();
|
infile.close();
|
||||||
strcpy(settingsFile,fname.c_str());
|
strcpy(settingsFile,fname.c_str());
|
||||||
|
cout << "Settings file loaded: " << settingsFile << endl;
|
||||||
return myMod;
|
return myMod;
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -255,7 +256,7 @@ slsDetectorDefs::sls_detector_module* energyConversion::readSettingsFile(string
|
|||||||
}
|
}
|
||||||
infile.close();
|
infile.close();
|
||||||
strcpy(settingsFile,fname.c_str());
|
strcpy(settingsFile,fname.c_str());
|
||||||
|
cout << "Settings file loaded: " << settingsFile << endl;
|
||||||
return myMod;
|
return myMod;
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -295,7 +296,7 @@ slsDetectorDefs::sls_detector_module* energyConversion::readSettingsFile(string
|
|||||||
|
|
||||||
infile.close();
|
infile.close();
|
||||||
strcpy(settingsFile,fname.c_str());
|
strcpy(settingsFile,fname.c_str());
|
||||||
|
cout << "Settings file loaded: " << settingsFile << endl;
|
||||||
return myMod;
|
return myMod;
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -311,7 +312,7 @@ slsDetectorDefs::sls_detector_module* energyConversion::readSettingsFile(string
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::cout<< "could not open settings file " << myfname << std::endl;
|
std::cout<< "Error: Could not open settings file " << myfname << std::endl;
|
||||||
if (nflag)
|
if (nflag)
|
||||||
deleteModule(myMod);
|
deleteModule(myMod);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user