LCIO  02.17
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
lcrdrrep.cc
Go to the documentation of this file.
1 
2 #include "CPPFORT/lcrdrrep.h"
3 
4 using namespace std ;
5 using namespace lcio ;
6 
7 #include "lcrdrrep.icc"
8 int lcrdreventprocessor( PTRTYPE filenamevec ){
9 
10  StringVec* filenameVec = reinterpret_cast<StringVec*>(filenamevec);
11 
12  // create reader and writer for input and output streams
13  LCReader* lcReader = LCFactory::getInstance()->createLCReader() ;
14 
15  lcReader->open( *filenameVec ) ;
16 
17  {
18  RunEventProcessor evtProc ;
19 
20  lcReader->registerLCRunListener( &evtProc ) ;
21  lcReader->registerLCEventListener( &evtProc ) ;
22 
23  lcReader->readStream() ;
24 
25  }
26 
27  lcReader->close() ;
28  delete lcReader ;
29  return 0 ;
30 }
31 
std::vector< std::string > StringVec
Vector of strings.
Definition: LCIOSTLTypes.h:16
Little tool that copies LCIO files on an event by event and run by run basis, thus fixing files that ...
Definition: copyfix.cc:23
LCIO_DEPRECATED_CAPI int lcrdreventprocessor(PTRTYPE filenamevec)
Header file for the f77-wrapper function of the RunEventProcessor class.
Definition: lcrdrrep.cc:8
long PTRTYPE
Fortran interface - define the length of pointers this has to made machine independent ...
Definition: cpointer.h:12
LCReader * lcReader
Definition: lsh.cc:78