fixed part of mythen module 6 problem: offsets should be updated after set nmod, still need to fix numchips in one direction

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@542 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
l_maliakal_d 2013-05-06 16:23:13 +00:00
parent 1ed4017988
commit f0e30926fe
3 changed files with 5 additions and 3 deletions

View File

@ -1957,12 +1957,12 @@ while(read_frame(file_des)==OK) {
#ifdef VERBOSE
printf("frame read\n");
#endif
#endif
;
}
#ifdef VERBOSE
printf("Frames finished\n");
#endif
#endif
return OK;

View File

@ -3533,6 +3533,8 @@ int multiSlsDetector::setNumberOfModules(int p, dimension d) {
thisMultiDetector->numberOfChannels+=detectors[idet]->getTotalNumberOfChannels();
}
}
updateOffsets();
return ret;
}

View File

@ -591,7 +591,7 @@ class slsDetector : public slsDetectorUtils, public energyConversion {
int getTotalNumberOfChannels(){return thisDetector->nChans*thisDetector->nChips*thisDetector->nMods;};
int getTotalNumberOfChannels(dimension d){return thisDetector->nChan[d]*thisDetector->nChips*thisDetector->nMod[X];};
int getTotalNumberOfChannels(dimension d){return thisDetector->nChan[d]*thisDetector->nChips*thisDetector->nMod[d];};
int getMaxNumberOfChannels(){return thisDetector->nChans*thisDetector->nChips*thisDetector->nModsMax;};