Overlay  0.16.0
JoinEvents.h
1 #ifndef JoinEvents_h
2 #define JoinEvents_h 1
3 
4 #include "marlin/Processor.h"
5 #include "lcio.h"
6 #include <string>
7 
8 namespace overlay{
9 
22  class JoinEvents : public marlin::Processor {
23 
24  public:
25 
26  virtual marlin::Processor* newProcessor() { return new JoinEvents ; }
27 
28 
29  JoinEvents() ;
30 
31  virtual const std::string & name() const { return Processor::name() ; }
32 
33 
36  virtual void init() ;
37 
40  virtual void processRunHeader( LCRunHeader* run ) ;
41 
44  virtual void processEvent( LCEvent * evt ) ;
45 
46 
47  virtual void check( LCEvent * evt ) ;
48 
49 
52  virtual void end() ;
53 
54 
55  protected:
56 
58  std::string _fileName ;
59 
61  std::string _postFix ;
62 
63  LCReader* _lcReader ;
64 
65  // int _activeRunNumber;
66  int _nRun ;
67  int _nEvt ;
68  } ;
69 
70 } // namespace
71 
72 #endif
73 
74 
75 
virtual void processEvent(LCEvent *evt)
Search for the corresponding event and add all collections to the current event.
Definition: JoinEvents.cc:72
virtual void end()
Close the input file.
Definition: JoinEvents.cc:157
std::string _postFix
post fix for collection names.
Definition: JoinEvents.h:61
std::string _fileName
Input file names.
Definition: JoinEvents.h:58
virtual void processRunHeader(LCRunHeader *run)
Called for every run.
Definition: JoinEvents.cc:64
virtual void init()
Open the LCIO input file.
Definition: JoinEvents.cc:40
JoinEvents processor allows join events (based on the run number and event number) from a different f...
Definition: JoinEvents.h:22