mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-08 19:10:42 +02:00
Fix for differences in header sizes for Jungfrau data files in cluster finder depending on receiver used.
This commit is contained in:
parent
e817cb1222
commit
3d6c956147
@ -112,7 +112,11 @@ class jungfrauModuleData : public slsDetectorData<uint16_t> {
|
|||||||
/* }; */
|
/* }; */
|
||||||
|
|
||||||
int getFrameNumber(char *buff) {
|
int getFrameNumber(char *buff) {
|
||||||
|
#ifdef ALDO
|
||||||
return ((header *)buff)->bunchNumber;
|
return ((header *)buff)->bunchNumber;
|
||||||
|
#else
|
||||||
|
return ((header *)buff)->detHeader.frameNumber;
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -100,19 +100,8 @@ int main(int argc, char *argv[]) {
|
|||||||
|
|
||||||
decoder->getDetectorSize(nx, ny);
|
decoder->getDetectorSize(nx, ny);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
cout << "Detector size is " << nx << " " << ny << endl;
|
cout << "Detector size is " << nx << " " << ny << endl;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
double *gainmap = NULL;
|
double *gainmap = NULL;
|
||||||
//float *gm;
|
//float *gm;
|
||||||
|
|
||||||
@ -253,10 +242,10 @@ int main(int argc, char *argv[]) {
|
|||||||
|
|
||||||
if (pedfile) {
|
if (pedfile) {
|
||||||
|
|
||||||
if (string(pedfile).find(".dat") != std::string::npos) {
|
if (string(pedfile).find(".raw") != std::string::npos) {
|
||||||
pos1=string(pedfile).rfind("/");
|
pos1=string(pedfile).rfind("/");
|
||||||
strcpy(froot,pedfile+pos1);
|
strcpy(froot,pedfile+pos1);
|
||||||
pos=string(froot).find(".dat");
|
pos=string(froot).find(".raw");
|
||||||
froot[pos]='\0';
|
froot[pos]='\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user