small fix on EventBuilder
This commit is contained in:
parent
d42b5383c2
commit
c1c77b7086
|
@ -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
|
unsigned short e_f[MAX_MULTI] = {0}; /// fine time 10 bit
|
||||||
//TODO std::vector<unsigned short> wave[MAX_ID]; /// waveform
|
//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");
|
///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]);
|
/// printf("%2d, %d \n", chI, lastEv[chI]);
|
||||||
///}
|
///}
|
||||||
|
|
||||||
///========== Quick Sort the timestamp
|
///========== Quick Sort the timestamp ??or left it to analyzer, monitor?
|
||||||
|
|
||||||
/// fill Tree
|
/// fill Tree
|
||||||
outRootFile->cd();
|
outRootFile->cd();
|
||||||
|
@ -172,12 +172,14 @@ int main(int argc, char **argv) {
|
||||||
}
|
}
|
||||||
|
|
||||||
TString outFileName = argv[1];
|
TString outFileName = argv[1];
|
||||||
unsigned short timeWindow = atoi(argv[2]);
|
unsigned int timeWindow = atoi(argv[2]);
|
||||||
int nFile = argc - 3;
|
int nFile = argc - 3;
|
||||||
TString inFileName[nFile];
|
TString inFileName[nFile];
|
||||||
for( int i = 0 ; i < nFile ; i++){
|
for( int i = 0 ; i < nFile ; i++){
|
||||||
inFileName[i] = argv[i+3];
|
inFileName[i] = argv[i+3];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
printf(" Time Window = %u \n", timeWindow);
|
||||||
|
|
||||||
/// Open input Files
|
/// Open input Files
|
||||||
FILE * haha = fopen(inFileName[0], "r");
|
FILE * haha = fopen(inFileName[0], "r");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user