MarlinTPC  1.2.0
LoadDataFileProcessor.h
1 #ifndef LOAD_DATA_FILE_PROCESSOR_H
2 #define LOAD_DATA_FILE_PROCESSOR_H 1
3 
4 //LCIO
5 #include <lcio.h>
6 #include <IO/LCReader.h>
7 
8 //MARLIN
9 #include "marlin/Processor.h"
10 
11 namespace marlintpc
12 {
13 
29  class LoadDataFileProcessor : public marlin::Processor{
30 
31  public:
32 
33  virtual Processor* newProcessor() { return new LoadDataFileProcessor ; }
34 
36 
38 
39  virtual void init();
40 
41  virtual void processRunHeader(lcio::LCRunHeader* run ) ;
42 
43  virtual void processEvent(lcio::LCEvent * evt ) ;
44 
45  virtual void end();
46 
47  protected:
48 
49  std::string _filePath;
50 
51  LCReader* _lcReader;
52  EVENT::LCRunHeader* _run;
53  };
54 }
55 
56 #endif
reads in an additional lcio file and adds all available collections to the event with the same event ...
Definition: LoadDataFileProcessor.h:29
EVENT::LCRunHeader * _run
run number
Definition: LoadDataFileProcessor.h:52
LCReader * _lcReader
LCReader.
Definition: LoadDataFileProcessor.h:51
std::string _filePath
Path to lcio file.
Definition: LoadDataFileProcessor.h:49