mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-21 03:10:02 +02:00
Corrected mistake for compiling moench04 with digital bits
This commit is contained in:
parent
2696b95014
commit
4f21ad5122
@ -35,7 +35,7 @@ target_compile_definitions(moench04RawDataProcess PRIVATE MOENCH04)
|
||||
list(APPEND MOENCH_EXECUTABLES moench04RawDataProcess)
|
||||
|
||||
add_executable(moench04RawDataProcessDGS moenchRawDataProcess.cpp)
|
||||
target_compile_definitions(moench04RawDataProcess PRIVATE MOENCH04_DGS MOENCH04)
|
||||
target_compile_definitions(moench04RawDataProcessDGS PRIVATE MOENCH04_DGS MOENCH04)
|
||||
list(APPEND MOENCH_EXECUTABLES moench04RawDataProcessDGS)
|
||||
|
||||
#interpolation stuff
|
||||
|
@ -74,7 +74,7 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
#ifdef MOENCH04
|
||||
#ifndef MOENCH04_DGS
|
||||
moench04CtbZmq10GbData *decoder = new moench04CtbZmq10GbData();
|
||||
moench04CtbZmq10GbData *decoder = new moench04CtbZmq10GbData(5000,0);
|
||||
cout << "MOENCH04!" << endl;
|
||||
#endif
|
||||
|
||||
@ -361,8 +361,10 @@ int main(int argc, char *argv[]) {
|
||||
ifile++;
|
||||
}
|
||||
}
|
||||
} else
|
||||
cout << ifr << " " << ff << " " << np << endl;
|
||||
} else {
|
||||
cout << "bp " << ifr << " " << ff << " " << np << endl;
|
||||
//break;
|
||||
}
|
||||
ff = -1;
|
||||
}
|
||||
cout << "--" << endl;
|
||||
|
@ -429,11 +429,12 @@ class singlePhotonDetector : public analogDetector<uint16_t> {
|
||||
for (ic = -(clusterSize / 2); ic < (clusterSize / 2) + 1;
|
||||
ic++) {
|
||||
|
||||
if ((iy + ir) >= 0 && (iy + ir) < ny &&
|
||||
if ( (iy + ir) >= 0 && (iy + ir) < ny &&
|
||||
(ix + ic) >= 0 && (ix + ic) < nx) {
|
||||
|
||||
|
||||
if ((iy + ir) >= iy && (ix + ic) >= ix ) {
|
||||
if ((iy + ir) > iy && (ix + ic) > ix ) {
|
||||
|
||||
val[(iy + ir) * nx + ix + ic] =
|
||||
subtractPedestal(data, ix + ic, iy + ir, cm);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user