diff --git a/EventBuilder.cpp b/EventBuilder.cpp index 605596e..8f2f8e8 100644 --- a/EventBuilder.cpp +++ b/EventBuilder.cpp @@ -33,7 +33,7 @@ unsigned long long e_t[MAX_MULTI] = {0}; /// timestamp 47 bit unsigned short e_f[MAX_MULTI] = {0}; /// fine time 10 bit //TODO std::vector wave[MAX_ID]; /// waveform -void EventBuilder(Data * data, const unsigned short timeWin, bool isLastData = false){ +void EventBuilder(Data * data, const unsigned int timeWin, bool isLastData = false){ ///printf("============= build Event\n"); @@ -129,7 +129,7 @@ void EventBuilder(Data * data, const unsigned short timeWin, bool isLastData = f /// printf("%2d, %d \n", chI, lastEv[chI]); ///} - ///========== Quick Sort the timestamp + ///========== Quick Sort the timestamp ??or left it to analyzer, monitor? /// fill Tree outRootFile->cd(); @@ -172,12 +172,14 @@ int main(int argc, char **argv) { } TString outFileName = argv[1]; - unsigned short timeWindow = atoi(argv[2]); + unsigned int timeWindow = atoi(argv[2]); int nFile = argc - 3; TString inFileName[nFile]; for( int i = 0 ; i < nFile ; i++){ inFileName[i] = argv[i+3]; } + + printf(" Time Window = %u \n", timeWindow); /// Open input Files FILE * haha = fopen(inFileName[0], "r");