8int main(
int argc,
char* argv[] ) {
11 cout <<
"Usage: " << argv[0] <<
" file.conf nevts" << endl;
12 cout <<
"***********************************" << endl
13 <<
"** NEW: wildcard is supported **" << endl
14 <<
"***********************************" << endl;
22 ifstream fconf( argv[1] );
24 while ( !( fconf >> confstr ).eof() )
26 if ( confstr ==
"datafiles" )
29 fnames.push_back( confstr );
31 else if ( confstr ==
"idxfiles" )
34 idxfnames.push_back( confstr );
36 else { fconf >> confstr; }
40 if ( idxfnames.empty() ) { freader =
new RawFileReader( fnames ); }
45 int nevts = atoi( argv[2] );
46 for (
int i = 0; i < nevts; ++i )
58 cout <<
"Size : " <<
data[1] <<
" RID: " <<
data[9 +
data[5]]
59 <<
" GID: " <<
data[8 +
data[5]] << endl;