mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-03-30 01:38:19 +02:00
fixed cluster finder bugs
This commit is contained in:
@@ -5,18 +5,18 @@ nsigma 5
|
||||
gainfile none
|
||||
detectorMode counting
|
||||
threshold 0
|
||||
pedestalfile none
|
||||
pedestalfile /mnt/sls_det_storage/moench_data/testNewFW20230714/cu_half_speed_d0_f0_4.raw
|
||||
nframes 0
|
||||
xMin 0
|
||||
xMax 400
|
||||
yMin 0
|
||||
yMax 400
|
||||
outdir ./
|
||||
indir ./
|
||||
outdir /mnt/sls_det_storage/moench_data/testNewFW20230714/clustNew/
|
||||
indir /mnt/sls_det_storage/moench_data/testNewFW20230714/
|
||||
flist none
|
||||
fformat none
|
||||
fformat cu_half_speed_d0_f0_4
|
||||
runmin 0
|
||||
runmax -1
|
||||
runmax 0
|
||||
readnrows 400
|
||||
eMin 0
|
||||
eMax 16000
|
||||
|
||||
@@ -182,8 +182,8 @@ int main(int argc, char *argv[]) {
|
||||
#endif
|
||||
|
||||
#ifndef MOENCH04
|
||||
moench03v2Data *decoder = new moench03v2Data(100);
|
||||
cout << "MOENCH03!" << endl;
|
||||
moench03v2Data *decoder = new moench03v2Data(200);
|
||||
cout << "MOENCH03 V2!" << endl;
|
||||
#endif
|
||||
|
||||
#ifdef MOENCH04
|
||||
@@ -334,7 +334,7 @@ int main(int argc, char *argv[]) {
|
||||
cout << ifr << " " << ff << " " << np << endl;
|
||||
// break;
|
||||
} else {
|
||||
cout << ifr << " " << ff << " " << np << endl;
|
||||
cout << "bp "<< ifr << " " << ff << " " << np << endl;
|
||||
break;
|
||||
}
|
||||
ff = -1;
|
||||
@@ -389,7 +389,7 @@ int main(int argc, char *argv[]) {
|
||||
runmax--;
|
||||
flist.close();
|
||||
cout << "Found " << runmax << " files " << endl;
|
||||
flist.open (fformat, std::ifstream::in);
|
||||
flist.open (args["flist"].c_str(), std::ifstream::in);
|
||||
}
|
||||
|
||||
for (int irun = runmin; irun <= runmax; irun++) {
|
||||
@@ -470,10 +470,20 @@ int main(int argc, char *argv[]) {
|
||||
}
|
||||
} else {
|
||||
cout << "bp " << ifr << " " << ff << " " << np << endl;
|
||||
|
||||
//break;
|
||||
|
||||
break;
|
||||
}
|
||||
ff = -1;
|
||||
|
||||
|
||||
if (ifr % 100 == 0){
|
||||
sprintf(imgfname, "%s/%s_f%05d_ped.tiff", outdir.c_str(),froot, ifile++);
|
||||
while (mt->isBusy()) {
|
||||
;
|
||||
}
|
||||
mt->writePedestal(imgfname);
|
||||
}
|
||||
|
||||
}
|
||||
cout << "--" << endl;
|
||||
filebin.close();
|
||||
|
||||
Reference in New Issue
Block a user