pushing last changes

This commit is contained in:
Blake Leverington 2023-09-25 18:42:16 +02:00
parent 4de5d3ff6d
commit 20d5246003
3 changed files with 25 additions and 22 deletions

View File

@ -29,7 +29,7 @@ EventBuilder::~EventBuilder()
//************************* Data processing framework ********************
//main processing slot
//main processing slot
void EventBuilder::onNewData(DataReceiver* receiver)
{
@ -65,7 +65,7 @@ void EventBuilder::onNewData(DataReceiver* receiver)
//1. Background subtraction.
frame_counter++;
/*
/*
while (frame_counter<10000){
for (unsigned int dev_nr = 0; dev_nr < nrReceivers; dev_nr++){
for (unsigned int ch = 0; ch < channelCounts[dev_nr]; ch++)
@ -93,7 +93,7 @@ void EventBuilder::onNewData(DataReceiver* receiver)
newDataSemaphore.release(1);
lastFrame = currentFrame;
lastFrameMutex.unlock();
/*
/*
//histogram stuff
if (histogramSamplesToTake)
{
@ -111,10 +111,13 @@ void EventBuilder::onNewData(DataReceiver* receiver)
if (loggingData) logDataToFile();
HIT_ANALYSE_V2 hit_analyse_v2;//create the object
QString dataString;
// for (unsigned int dev_nrsim = 0; dev_nrsim < 3; dev_nrsim++){
//simulate 6 planes instead of just 2
for (unsigned int dev_nr = 0; dev_nr < nrReceivers; dev_nr++){
dataString += hit_analyse_v2.analyseBeamData(currentFrame);
dataString +=',';
}
// }
QTime currentTime = QTime::currentTime();
//Calculate the time since midnight in milliseconds
int millisecondsSinceMidnight = currentTime.msecsSinceStartOfDay();

View File

@ -5,7 +5,7 @@
#-------------------------------------------------
QT += core gui network serialport
#CONFIG += static
unix {
QMAKE_CXXFLAGS += -W -std=c++17
}

Binary file not shown.