12 using namespace lcio ;
 
   17 int main(
int argc, 
char** argv ){
 
   21         cout << 
" count the number of events in the given input files" << 
endl << 
endl;
 
   22         cout << 
" usage:  lcio_event_counter <input-file1> [[input-file2],...]" << 
endl ;
 
   27     long total_events = 0 ;
 
   29     for(
int i=1 ; i <= nFiles ; i++){
 
   35     for(
int i=0 ; i < nFiles ; i++){
 
   38         if( FILEN[i].substr(FILEN[i].rfind(
".") + 1) == 
"stdhep") {
 
   39             LCStdHepRdr stdhepReader( FILEN[i].c_str() );
 
   46             total_events += stdhepReader.getNumberOfEvents() - 1 ;
 
   62             LCReader* 
lcReader = LCFactory::getInstance()->createLCReader() ;
 
   64             lcReader->open( FILEN[i] ) ;
 
   65             total_events += lcReader->getNumberOfEvents() ;
 
static std::vector< std::string > FILEN
int main(int argc, char **argv)
Simple program that opens existing LCIO files and appends the records needed for direct access - if t...