#include "lcio.h"
#include "IO/LCWriter.h"
#include "IO/LCReader.h"
#include "IO/LCEventListener.h"
#include "IO/LCRunListener.h"
#include "EVENT/LCIO.h"
#include "EVENT/TrackerRawData.h"
#include "IMPL/LCEventImpl.h"
#include "IMPL/LCCollectionVec.h"
#include "IMPL/SimCalorimeterHitImpl.h"
#include "IMPL/CalorimeterHitImpl.h"
#include "IMPL/MCParticleImpl.h"
#include "IMPL/TrackerHitImpl.h"
#include "IMPL/TrackImpl.h"
#include "IMPL/ClusterImpl.h"
#include "IMPL/ReconstructedParticleImpl.h"
#include "IMPL/VertexImpl.h"
#include "IMPL/LCFlagImpl.h"
#include "UTIL/LCTOOLS.h"
#include "UTIL/PIDHandler.h"
#include "IMPL/LCRelationImpl.h"
#include "UTIL/LCRelationNavigator.h"
#include "CalibrationConstant.h"
#include <iostream>
#include <algorithm>
Include dependency graph for recjob.cc:
Go to the source code of this file.
Classes | |
class | RunEventProcessor |
Defines | |
#define | M_PI 3.14159265358979323846 |
Functions | |
int | main (int argc, char **argv) |
Variables | |
static std::string | FILEN = "simjob.slcio" |
static std::string | OUTFILEN = "recjob.slcio" |
static const int | NHITS = 50 |
static const int | nRecP = 10 |
#define M_PI 3.14159265358979323846 |
int main | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 742 of file recjob.cc.
00742 { 00743 00744 srand(1234) ; 00745 00746 // create reader and writer for input and output streams 00747 LCReader* lcReader = LCFactory::getInstance()->createLCReader() ; 00748 00749 00750 // read file name from command line 00751 if( argc > 1 ) { FILEN = argv[1] ; } 00752 if( argc > 2 ) { OUTFILEN = argv[2] ; } 00753 00754 lcReader->open( FILEN ) ; 00755 // we could catch the exception here - but this not really needed 00756 // as long as we exit anyhow if the file could not be opened... 00757 // try{ lcReader->open( FILEN ) ; } 00758 // catch( IOException& e){ 00759 // cout << "Can't open file : " << e.what() << endl ; 00760 // exit(1) ; 00761 // } 00762 00763 // create a new RunEventProcessor, register it with the reader 00764 // and read and proccess the whole stream 00765 { 00766 RunEventProcessor evtProc ; 00767 00768 lcReader->registerLCRunListener( &evtProc ) ; 00769 lcReader->registerLCEventListener( &evtProc ) ; 00770 00771 lcReader->readStream() ; 00772 00773 // lcReader->readStream( 5) ; // debugging: only read 4 events 00774 // lcReader->readStream( 10000 ) ; // debugging: provoke EndOfDataException 00775 00776 } 00777 00778 lcReader->close() ; 00779 delete lcReader ; 00780 return 0 ; 00781 }
std::string OUTFILEN = "recjob.slcio" [static] |
Definition at line 42 of file recjob.cc.
Referenced by main(), and RunEventProcessor::RunEventProcessor().
const int nRecP = 10 [static] |