Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
lobis committed Aug 16, 2024
1 parent 7887a2e commit 0ec4c87
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/minos/feminos/frame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,9 @@ void Frame_ToSharedMemory(void* fp, void* fr, int fr_sz, unsigned int vflg, daqI
if ((vflg & FRAME_PRINT_ALL) || (vflg & FRAME_PRINT_EVBND)) {
fprintf((FILE*) fp, "-- Start of Event (Type %01d) --\n", r0);
}

cout << " + Start of Event: " << dInfo->eventId << " at " << dInfo->timeStamp << endl;

i++;
p++;
sz_rd += 2;
Expand Down Expand Up @@ -495,8 +498,6 @@ void Frame_ToSharedMemory(void* fp, void* fr, int fr_sz, unsigned int vflg, daqI
dInfo->dataReady = 1;
dInfo->timeStamp = (double) tStart + tt;
dInfo->eventId = tmp;

cout << " + Start of Event: " << dInfo->eventId << " at " << dInfo->timeStamp << endl;
}
/////////////////////////////// NEW ADDED

Expand All @@ -514,7 +515,6 @@ void Frame_ToSharedMemory(void* fp, void* fr, int fr_sz, unsigned int vflg, daqI
}

cout << " - End of Event: " << dInfo->eventId << " at " << dInfo->timeStamp << endl;
dInfo->dataReady = 0; // Reset data ready flag TODO: is this correct? (I added this)

/////////////////////////////// NEW ADDED
if (!tcm && dInfo->dataReady == 1) {
Expand Down
3 changes: 2 additions & 1 deletion src/minos/mclient/evbuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,8 @@ int EventBuilder_ProcessBuffer(EventBuilder* eb, void* bu) {
(int) sz, 0x0, ShMem_DaqInfo,
ShMem_Buffer, timeStart, tcm);

cout << " -- frame to shared memory" << endl;

// printf( "TIME START : %d\n", timeStart );
// printf( "Event time : %lf\n",
// ShMem_DaqInfo->timeStamp );
Expand All @@ -442,7 +444,6 @@ int EventBuilder_ProcessBuffer(EventBuilder* eb, void* bu) {
// "Event time added : %lf\n",
// ShMem_DaqInfo->timeStamp ); printf( "-----\n");


/*
auto& prometheusManager = mclient_prometheus::PrometheusManager::Instance();
auto& storageManager = mclient_storage::StorageManager::Instance();
Expand Down

0 comments on commit 0ec4c87

Please sign in to comment.