mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-13 13:27:14 +02:00
Init problem fixed, add comments
This commit is contained in:
@ -170,7 +170,7 @@ int main(int argc, char *argv[]) {
|
|||||||
//auto filter = std::make_unique<singlePhotonDetector>(decoder.get(), 3, nsigma, 1, nullptr, nped, 200, -1, -1, nullptr, nullptr);
|
//auto filter = std::make_unique<singlePhotonDetector>(decoder.get(), 3, nsigma, 1, nullptr, nped, 200, -1, -1, nullptr, nullptr);
|
||||||
|
|
||||||
thr = 0.15 * thr;
|
thr = 0.15 * thr;
|
||||||
//filter->newDataSet();
|
//filter->newDataSet(); //This only initializes the dataset for the first thread (the other threads are created via cloning)
|
||||||
// int dsize = decoder->getDataSize();
|
// int dsize = decoder->getDataSize();
|
||||||
|
|
||||||
if (thr > 0) {
|
if (thr > 0) {
|
||||||
@ -191,7 +191,7 @@ int main(int argc, char *argv[]) {
|
|||||||
new multiThreadedCountingDetector(filter, nthreads, fifosize);
|
new multiThreadedCountingDetector(filter, nthreads, fifosize);
|
||||||
//auto mt = std::make_unique<multiThreadedCountingDetector>(filter.get(), nthreads, fifosize);
|
//auto mt = std::make_unique<multiThreadedCountingDetector>(filter.get(), nthreads, fifosize);
|
||||||
mt->setClusterSize(csize, csize);
|
mt->setClusterSize(csize, csize);
|
||||||
mt->newDataSet();
|
mt->newDataSet(); //Initialize new dataset for each thread
|
||||||
|
|
||||||
#ifndef ANALOG
|
#ifndef ANALOG
|
||||||
mt->setDetectorMode(ePhotonCounting);
|
mt->setDetectorMode(ePhotonCounting);
|
||||||
|
@ -427,17 +427,17 @@ class multiThreadedAnalogDetector {
|
|||||||
|
|
||||||
int* tmp_img = dets[ii]->getImage();
|
int* tmp_img = dets[ii]->getImage();
|
||||||
|
|
||||||
std::cout << "## Thread " << ii
|
/* std::cout << "## Thread " << ii
|
||||||
<< " # image size " << nn
|
<< " # image size " << nn
|
||||||
<< " # nnx " << nnx
|
<< " # nnx " << nnx
|
||||||
<< " # nny " << nny
|
<< " # nny " << nny
|
||||||
<< " # ns " << ns;
|
<< " # ns " << ns; */
|
||||||
|
|
||||||
for (int i = 0; i < nn; i++) {
|
for (int i = 0; i < nn; i++) {
|
||||||
|
|
||||||
std::cout << " # pixel " << i
|
/* std::cout << " # pixel " << i
|
||||||
<< " # value " << tmp_img[i]
|
<< " # value " << tmp_img[i]
|
||||||
<< " ## " << std::endl;
|
<< " ## " << std::endl; */
|
||||||
|
|
||||||
if (ii == 0)
|
if (ii == 0)
|
||||||
// if (img[i]>0)
|
// if (img[i]>0)
|
||||||
|
Reference in New Issue
Block a user