8 {
9 if ( argc != 3 )
10 {
11 cout << "Usage: " << argv[0] << " file.conf nevts" << endl;
12 cout << "***********************************" << endl
13 << "** NEW: wildcard is supported **" << endl
14 << "***********************************" << endl;
15 exit( 1 );
16 }
17
20
21 string confstr;
22 ifstream fconf( argv[1] );
23
24 while ( !( fconf >> confstr ).eof() )
25 {
26 if ( confstr == "datafiles" )
27 {
28 fconf >> confstr;
29 fnames.push_back( confstr );
30 }
31 else if ( confstr == "idxfiles" )
32 {
33 fconf >> confstr;
34 idxfnames.push_back( confstr );
35 }
36 else { fconf >> confstr; }
37 }
38
40 if ( idxfnames.empty() ) { freader =
new RawFileReader( fnames ); }
42
44
45 int nevts = atoi( argv[2] );
46 for ( int i = 0; i < nevts; ++i )
47 {
48 try
49 {
51
52
54 {
56 break;
57 }
58 cout <<
"Size : " <<
data[1] <<
" RID: " <<
data[9 +
data[5]]
59 <<
" GID: " <<
data[8 +
data[5]] << endl;
60 }
61
62 delete freader;
63
64 return 0;
65}
std::vector< std::string > VFileNames_t
virtual void print() const
const uint32_t * nextEvent()