MarlinTPC  1.2.0
HitTrackFinderTopoProcessor.h
1 #ifndef HIT_TRACK_FINDER_TOPO_PROCESSOR_H
2 #define HIT_TRACK_FINDER_TOPO_PROCESSOR_H 1
3 
4 #include "marlin/Processor.h"
5 #include "lcio.h"
6 #include <string>
7 #include <vector>
8 #include <IMPL/TrackerPulseImpl.h>
9 
10 #include <gear/PadRowLayout2D.h>
11 
12 #include "TopoFinder.h"
13 
14 namespace marlintpc
15 {
16 
64 class HitTrackFinderTopoProcessor : public marlin::Processor , public TopoFinder
65 {
66 
67  public:
68 
69  virtual Processor* newProcessor()
70  {
71  return new HitTrackFinderTopoProcessor ;
72  }
73 
74 
76 
80  virtual void init() ;
81 
84  virtual void processRunHeader(lcio::LCRunHeader* run) ;
85 
88  virtual void processEvent(lcio::LCEvent * evt) ;
89 
90 
91  virtual void check(lcio::LCEvent * evt) ;
92 
93 
96  virtual void end() ;
97 
98 
99  protected:
100 
101  private:
104  std::string _inputTrackerPulsesCollectionName ;
105 
108  std::string _outputTrackerHitsCollectionName ;
109 
112  std::string _outputTracksCollectionName ;
113 
116  std::string _inputTPCConditionsCollectionName;
117 
122  int _outputHitsTransient; //< if not 0 the hits collection is set transient (default 0)
123  int _outputTrackCandidatesTransient; //< if not 0 the tracks collection is set transient (default 0)
124 
125 //int _nRun ;
126 //int _nEvt ;
127 } ;
128 
129 }//namespace marlintpc
130 
131 #endif//HIT_TRACK_FINDER_TOPO_H
virtual void init()
Called at the begin of the job before anything is read.
Definition: HitTrackFinderTopoProcessor.cc:129
virtual void processRunHeader(lcio::LCRunHeader *run)
Called for every run.
Definition: HitTrackFinderTopoProcessor.cc:163
The HitTrackFinderTopoProcessor searches for hits and groups contiguous areas to track candidates...
Definition: HitTrackFinderTopoProcessor.h:64
TopoFinder contains finding algorithms for clusters of TrackerPulses.
Definition: TopoFinder.h:28
virtual void end()
Called after data processing for clean up.
Definition: HitTrackFinderTopoProcessor.cc:494
virtual void processEvent(lcio::LCEvent *evt)
Called for every event - the working horse.
Definition: HitTrackFinderTopoProcessor.cc:180
HitTrackFinderTopoProcessor()
Definition: HitTrackFinderTopoProcessor.cc:43