some debug lines
This commit is contained in:
parent
d5f5ee232d
commit
76582e2a51
|
@ -16,7 +16,7 @@ inline unsigned int getTime_us(){
|
||||||
#include "TMacro.h"
|
#include "TMacro.h"
|
||||||
|
|
||||||
#define MAX_TRACE_LENGTH 2000
|
#define MAX_TRACE_LENGTH 2000
|
||||||
#define MAX_MULTI 1000
|
#define MAX_MULTI 500
|
||||||
#define NMINARG 5
|
#define NMINARG 5
|
||||||
#define debug 0 // for > 1 number of hit to debug
|
#define debug 0 // for > 1 number of hit to debug
|
||||||
|
|
||||||
|
@ -92,7 +92,7 @@ int extractDigiSN(const std::string& str, int n = 1) {
|
||||||
void SetTimeOffset(BinReader * reader, std::vector<std::pair<int, int64_t>>& timeOffsetList){
|
void SetTimeOffset(BinReader * reader, std::vector<std::pair<int, int64_t>>& timeOffsetList){
|
||||||
int bd = reader->data.BoardID;
|
int bd = reader->data.BoardID;
|
||||||
for( size_t i = 0 ; i < timeOffsetList.size(); i++){
|
for( size_t i = 0 ; i < timeOffsetList.size(); i++){
|
||||||
if( bd == timeOffsetList[i].first) reader->data.TimeStamp += timeOffsetList[i].second;
|
if( bd == timeOffsetList[i].first) reader->data.TimeStamp += timeOffsetList[i].second ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -306,6 +306,9 @@ int main(int argc, char **argv) {
|
||||||
multi = events.size() ;
|
multi = events.size() ;
|
||||||
if( events.size() >= MAX_MULTI ) {
|
if( events.size() >= MAX_MULTI ) {
|
||||||
printf("\033[31m event %lld has size = %d > MAX_MULTI = %d \033[0m\n", evID, multi, MAX_MULTI);
|
printf("\033[31m event %lld has size = %d > MAX_MULTI = %d \033[0m\n", evID, multi, MAX_MULTI);
|
||||||
|
// for( int k = 0 ; k < multi; k++){
|
||||||
|
// printf("%d | %d %2d %llu | %llu , %llu , %llu\n", k, events[k].BoardID, events[k].Channel, events[k].TimeStamp, (long int)( events[k].TimeStamp - t0), t0, timeWindow);
|
||||||
|
// }
|
||||||
multi = MAX_MULTI;
|
multi = MAX_MULTI;
|
||||||
}
|
}
|
||||||
if( debug ) printf("=================================== filling data | %u \n", multi);
|
if( debug ) printf("=================================== filling data | %u \n", multi);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user