/data3/calcul/jacquem/working_dir/Micromegas/micromegasFrameWork/lcio/src/cpp/src/EXAMPLE/recjob.cc File Reference

#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 Documentation

#define M_PI   3.14159265358979323846

Definition at line 33 of file recjob.cc.

Referenced by RunEventProcessor::processEvent().


Function Documentation

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 }


Variable Documentation

std::string FILEN = "simjob.slcio" [static]

Definition at line 41 of file recjob.cc.

std::string OUTFILEN = "recjob.slcio" [static]

Definition at line 42 of file recjob.cc.

Referenced by main(), and RunEventProcessor::RunEventProcessor().

const int NHITS = 50 [static]

Definition at line 43 of file recjob.cc.

Referenced by main().

const int nRecP = 10 [static]

Definition at line 44 of file recjob.cc.

Referenced by RunEventProcessor::processEvent().


Generated on Mon Jan 7 13:16:41 2013 for MicromegasFramework by  doxygen 1.4.7