From aae550b997ba8f91802cd2f53bd3a263d5ccd25f Mon Sep 17 00:00:00 2001 From: l_maliakal_d Date: Mon, 19 Mar 2012 14:50:01 +0000 Subject: [PATCH] moved the test function to the slsDetectorUtils class git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@154 951219d9-93cf-4727-9268-0efd64621fa3 --- .../slsDetector/slsDetector.cpp | 64 +-------------- slsDetectorSoftware/slsDetector/slsDetector.h | 3 - .../slsDetector/slsDetectorUtils.cpp | 78 +++++++++++++++++-- .../slsDetector/slsDetectorUtils.h | 4 + 4 files changed, 79 insertions(+), 70 deletions(-) diff --git a/slsDetectorSoftware/slsDetector/slsDetector.cpp b/slsDetectorSoftware/slsDetector/slsDetector.cpp index 793e60beb..052b95060 100644 --- a/slsDetectorSoftware/slsDetector/slsDetector.cpp +++ b/slsDetectorSoftware/slsDetector/slsDetector.cpp @@ -4610,10 +4610,10 @@ int slsDetector::loadImageToDetector(imageType index,string const fname){ #endif if(readDataFile(fname,arg)){ - std::cout<< "Could not open file "<< fname << std::endl; + ret = sendImageToDetector(index,arg); return ret; } - ret = sendImageToDetector(index,arg); + std::cout<< "Could not open file "<< fname << std::endl; return ret; } @@ -5444,66 +5444,6 @@ int slsDetector::saveSettingsFile(string fname, int imod) { } -int slsDetector::testFunction(int times) { - int i,count=0; - runStatus s; - short int dataVals[thisDetector->nChans*thisDetector->nChips]; - - for(i=0;inChans*thisDetector->nChips);j++) - cout<<"\t"<