LCIO  02.17
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
RunEventProcessor Class Reference

Little tool that copies LCIO files on an event by event and run by run basis, thus fixing files that have incomplete records at the end due to a program crash. More...

+ Inheritance diagram for RunEventProcessor:

Public Member Functions

 RunEventProcessor (const RunEventProcessor &)=delete
 
RunEventProcessor operator= (const RunEventProcessor &)=delete
 
 RunEventProcessor (const char *outFileName)
 
 ~RunEventProcessor ()
 
void modifyEvent (LCEvent *)
 
void processEvent (LCEvent *evt)
 
void modifyRunHeader (LCRunHeader *)
 
void processRunHeader (LCRunHeader *run)
 
 RunEventProcessor (const RunEventProcessor &)=delete
 
RunEventProcessor operator= (const RunEventProcessor &)=delete
 
 RunEventProcessor (const char *outFileName, unsigned int nFiles)
 
 ~RunEventProcessor ()
 
void modifyEvent (LCEvent *)
 
void processEvent (LCEvent *evt)
 
void modifyRunHeader (LCRunHeader *)
 
void processRunHeader (LCRunHeader *run)
 
 RunEventProcessor (const RunEventProcessor &)=delete
 
RunEventProcessor operator= (const RunEventProcessor &)=delete
 
 RunEventProcessor (const char *outFileName, int splitSize)
 
 ~RunEventProcessor ()
 
void modifyEvent (LCEvent *)
 
void processEvent (LCEvent *evt)
 
void modifyRunHeader (LCRunHeader *)
 
void processRunHeader (LCRunHeader *run)
 
 RunEventProcessor (const RunEventProcessor &)=delete
 
RunEventProcessor operator= (const RunEventProcessor &)=delete
 
 RunEventProcessor ()
 
 ~RunEventProcessor ()
 
void processEvent (LCEvent *evt)
 
void modifyEvent (LCEvent *evt)
 
void processRunHeader (LCRunHeader *run)
 
void modifyRunHeader (LCRunHeader *)
 

Protected Attributes

LCWriter * lcWrt {NULL}
 
int nEvent {0}
 
unsigned int _nFiles {0}
 

Detailed Description

Little tool that copies LCIO files on an event by event and run by run basis, thus fixing files that have incomplete records at the end due to a program crash.

Example of reading events from the file, add sth.

Little tool that splits large LCIO files.

lcio tool for merging files on an event by event and run by run basis

to the event and write it to a new file. This uses the listener mechanism to read the input file (run headers and events) record by record.

The RunEventProcessor class is defined for processing run and event records. This is our analysis module. For simplicity it is defined in the same file - in a real world application it should of course be defined in separate header and source files.

Definition at line 23 of file copyfix.cc.

Constructor & Destructor Documentation

RunEventProcessor::RunEventProcessor ( const RunEventProcessor )
delete
RunEventProcessor::RunEventProcessor ( const char *  outFileName)
inline

Definition at line 33 of file copyfix.cc.

References std::endl(), and std::exit().

RunEventProcessor::~RunEventProcessor ( )
inline

Definition at line 48 of file copyfix.cc.

References std::endl().

RunEventProcessor::RunEventProcessor ( const RunEventProcessor )
delete
RunEventProcessor::RunEventProcessor ( const char *  outFileName,
unsigned int  nFiles 
)
inline

Definition at line 35 of file lcio_merge_files.cc.

References std::endl(), and std::exit().

RunEventProcessor::~RunEventProcessor ( )
inline

Definition at line 50 of file lcio_merge_files.cc.

References std::endl().

RunEventProcessor::RunEventProcessor ( const RunEventProcessor )
delete
RunEventProcessor::RunEventProcessor ( const char *  outFileName,
int  splitSize 
)
inline

Definition at line 34 of file lcio_split_file.cc.

References std::endl(), and std::exit().

RunEventProcessor::~RunEventProcessor ( )
inline

Definition at line 49 of file lcio_split_file.cc.

References std::endl().

RunEventProcessor::RunEventProcessor ( const RunEventProcessor )
delete
RunEventProcessor::RunEventProcessor ( )
inline

Definition at line 65 of file recjob.cc.

References std::endl(), std::exit(), and OUTFILEN.

RunEventProcessor::~RunEventProcessor ( )
inline

Definition at line 83 of file recjob.cc.

References std::endl().

Member Function Documentation

void RunEventProcessor::modifyEvent ( LCEvent *  )
inline

Definition at line 54 of file copyfix.cc.

void RunEventProcessor::modifyEvent ( LCEvent *  )
inline

Definition at line 55 of file lcio_split_file.cc.

void RunEventProcessor::modifyEvent ( LCEvent *  )
inline

Definition at line 56 of file lcio_merge_files.cc.

void RunEventProcessor::modifyEvent ( LCEvent *  evt)
inline

Definition at line 705 of file recjob.cc.

References NMCPART.

void RunEventProcessor::modifyRunHeader ( LCRunHeader *  )
inline

Definition at line 65 of file copyfix.cc.

void RunEventProcessor::modifyRunHeader ( LCRunHeader *  )
inline

Definition at line 66 of file lcio_split_file.cc.

void RunEventProcessor::modifyRunHeader ( LCRunHeader *  )
inline

Definition at line 67 of file lcio_merge_files.cc.

void RunEventProcessor::modifyRunHeader ( LCRunHeader *  )
inline

Definition at line 731 of file recjob.cc.

RunEventProcessor RunEventProcessor::operator= ( const RunEventProcessor )
delete
RunEventProcessor RunEventProcessor::operator= ( const RunEventProcessor )
delete
RunEventProcessor RunEventProcessor::operator= ( const RunEventProcessor )
delete
RunEventProcessor RunEventProcessor::operator= ( const RunEventProcessor )
delete
void RunEventProcessor::processEvent ( LCEvent *  evt)
inline

Definition at line 56 of file copyfix.cc.

void RunEventProcessor::processEvent ( LCEvent *  evt)
inline

Definition at line 57 of file lcio_split_file.cc.

void RunEventProcessor::processEvent ( LCEvent *  evt)
inline

Definition at line 58 of file lcio_merge_files.cc.

void RunEventProcessor::processEvent ( LCEvent *  evt)
inline
void RunEventProcessor::processRunHeader ( LCRunHeader *  run)
inline

Definition at line 68 of file copyfix.cc.

void RunEventProcessor::processRunHeader ( LCRunHeader *  run)
inline

Definition at line 69 of file lcio_split_file.cc.

void RunEventProcessor::processRunHeader ( LCRunHeader *  run)
inline

Definition at line 70 of file lcio_merge_files.cc.

void RunEventProcessor::processRunHeader ( LCRunHeader *  run)
inline

Definition at line 725 of file recjob.cc.

Member Data Documentation

unsigned int RunEventProcessor::_nFiles {0}
protected

Definition at line 28 of file lcio_merge_files.cc.

LCWriter * RunEventProcessor::lcWrt {NULL}
protected

Definition at line 26 of file copyfix.cc.

int RunEventProcessor::nEvent {0}
protected

Definition at line 27 of file copyfix.cc.


The documentation for this class was generated from the following files: