mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-15 14:27:13 +02:00
fixed process make file
This commit is contained in:
@ -675,7 +675,7 @@ template <class dataType> class analogDetector {
|
|||||||
delete [] gm;
|
delete [] gm;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
return NULL;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -700,7 +700,7 @@ template <class dataType> class analogDetector {
|
|||||||
delete [] gm;
|
delete [] gm;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
return NULL;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -59,7 +59,7 @@ int main(int argc, char *argv[]) {
|
|||||||
int csize=3;
|
int csize=3;
|
||||||
int nx=400, ny=400;
|
int nx=400, ny=400;
|
||||||
int save=1;
|
int save=1;
|
||||||
int nsigma=5;
|
int nsigma=1;
|
||||||
int nped=1000;
|
int nped=1000;
|
||||||
int ndark=100;
|
int ndark=100;
|
||||||
int ok;
|
int ok;
|
||||||
@ -201,14 +201,15 @@ int main(int argc, char *argv[]) {
|
|||||||
// cout << ifr << " " << ff << " " << ix << " " << iy << " " << decoder->getChannel(buff, ix, iy) << endl ;
|
// cout << ifr << " " << ff << " " << ix << " " << iy << " " << decoder->getChannel(buff, ix, iy) << endl ;
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
if (np==40) {
|
||||||
mt->pushData(buff);
|
mt->pushData(buff);
|
||||||
// // //pop
|
// // //pop
|
||||||
mt->nextThread();
|
mt->nextThread();
|
||||||
// // // cout << " " << (void*)buff;
|
// // // cout << " " << (void*)buff;
|
||||||
mt->popFree(buff);
|
mt->popFree(buff);
|
||||||
ifr++;
|
ifr++;
|
||||||
if (ifr%10000==0) cout << ifr << " " << ff << endl;
|
if (ifr%10000==0) cout << ifr << " " << ff << endl;
|
||||||
|
}
|
||||||
ff=-1;
|
ff=-1;
|
||||||
}
|
}
|
||||||
cout << "--" << endl;
|
cout << "--" << endl;
|
||||||
|
@ -212,7 +212,7 @@ class single_photon_hit {
|
|||||||
void print() {
|
void print() {
|
||||||
|
|
||||||
// int ix, iy;
|
// int ix, iy;
|
||||||
|
printf("*** %d %d %d\n",iframe, x, y);
|
||||||
for (int iy=0; iy<dy; iy++) {
|
for (int iy=0; iy<dy; iy++) {
|
||||||
for (int ix=0; ix<dx; ix++) {
|
for (int ix=0; ix<dx; ix++) {
|
||||||
printf("%d \t",data[ix+iy*dx]);
|
printf("%d \t",data[ix+iy*dx]);
|
||||||
@ -220,7 +220,7 @@ class single_photon_hit {
|
|||||||
}
|
}
|
||||||
printf("\n");
|
printf("\n");
|
||||||
}
|
}
|
||||||
|
printf("***\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -65,7 +65,6 @@ target_link_libraries(sls_detector_process
|
|||||||
)
|
)
|
||||||
set_target_properties(sls_detector_process PROPERTIES
|
set_target_properties(sls_detector_process PROPERTIES
|
||||||
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
|
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
|
||||||
COMPILE_DEFINITIONS READOUT=1
|
|
||||||
COMPILE_DEFINITIONS PROCESS=1
|
COMPILE_DEFINITIONS PROCESS=1
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -19,27 +19,27 @@ int main(int argc, char *argv[])
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
int action=slsDetectorDefs::HELP_ACTION;
|
||||||
#ifdef PUT
|
#ifdef PUT
|
||||||
int action=slsDetectorDefs::PUT_ACTION;
|
action=slsDetectorDefs::PUT_ACTION;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef GET
|
#ifdef GET
|
||||||
int action=slsDetectorDefs::GET_ACTION;
|
action=slsDetectorDefs::GET_ACTION;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifdef READOUT
|
#ifdef READOUT
|
||||||
int action=slsDetectorDefs::READOUT_ACTION;
|
action=slsDetectorDefs::READOUT_ACTION;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef PROCESS
|
#ifdef PROCESS
|
||||||
int action=slsDetectorDefs::PROCESS_ACTION;
|
action=slsDetectorDefs::PROCESS_ACTION;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifdef HELP
|
#ifdef HELP
|
||||||
int action=slsDetectorDefs::HELP_ACTION;
|
action=slsDetectorDefs::HELP_ACTION;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
multiSlsDetectorClient *cl;
|
multiSlsDetectorClient *cl;
|
||||||
|
Reference in New Issue
Block a user