small fix on EventBuilder

This commit is contained in:
carina@hades 2022-10-19 18:30:31 -04:00
parent d42b5383c2
commit c1c77b7086

View File

@ -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<unsigned short> 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");