LCTuple  1.6.0
MergeCollections.h
1 #ifndef MergeCollections_h
2 #define MergeCollections_h 1
3 
4 #include "marlin/Processor.h"
5 #include "lcio.h"
6 #include <string>
7 #include <vector>
8 
9 
10 using namespace lcio ;
11 using namespace marlin ;
12 
13 
26 class MergeCollections : public Processor {
27 
28  public:
29 
30  virtual Processor* newProcessor() { return new MergeCollections ; }
31 
32 
34 
38  virtual void init() ;
39 
42  virtual void processRunHeader( LCRunHeader* run ) ;
43 
46  virtual void processEvent( LCEvent * evt ) ;
47 
48 
49  virtual void check( LCEvent * evt ) ;
50 
51 
54  virtual void end() ;
55 
56 
57  protected:
58 
61  StringVec _inColNames ;
62  IntVec _inColIDs ;
63  std::string _outColName ;
64 
65 
66  int _nRun ;
67  int _nEvt ;
68 } ;
69 
70 #endif
71 
72 
73 
Helper processor that merges several input collections into a transient subset collections.
Definition: MergeCollections.h:26
StringVec _inColNames
Input collection name.
Definition: MergeCollections.h:61