MarlinTPC  1.2.0
TrackFitterKalmanProcessor.h
1 #ifndef TRACK_FITTER_KALMAN_PROCESSOR_H
2 #define TRACK_FITTER_KALMAN_PROCESSOR_H
3 
4 #include "marlin/Processor.h"
5 //#include "lcio.h"
6 //#include <string>
7 #include <vector>
8 #include "TrackFitterFactory.h"
9 
10 //#include <EVENT/TrackerHit.h>
11 
12 namespace AIDA
13 {
14 class ITuple;
15 }
16 
17 
18 namespace marlintpc
19 {
20 
41 class TrackFitterKalmanProcessor : public marlin::Processor
42 {
43 
44  public:
45 
49 
50 
54 
55 
58  Processor * newProcessor();
59 
60 
65  void init();
66 
67 
70  void processRunHeader(lcio::LCRunHeader *run);
71 
72 
78  virtual void processEvent(lcio::LCEvent *evt);
79 
80 
84  virtual void check(lcio::LCEvent *evt);
85 
86 
92  virtual void end();
93 
98  void bookNtuple();
99 
100 
101  protected:
102  //AIDA
103  AIDA::ITuple *_hResXintuple;
104 
108 
112 
118  int _outputIsTransient; //< if not 0 the hits collection is set transient
119  //(default 0)
120 
121  EVENT::LCParameters * _trackCollectionParameters;
122 
123  float _transDefocussing, _longDefocussing, _transDiffusionCoef, _longDiffusionCoef;
124 
125  int _nGoodFits, _nBadFits;
126 };
127 
128 }// namespace marlintoc
129 
130 #endif // TRACKSEEDERPROCESSOR_H
131 
132 
133 
std::string _input_seed_tracks_collection_name
The name of the input collection of seed tracks.
Definition: TrackFitterKalmanProcessor.h:107
int _outputIsTransient
Give the status which is set to the transient flag of the output collection.
Definition: TrackFitterKalmanProcessor.h:118
virtual void end()
Called after data processing for clean up in the inverse order of the init() method so that resources...
Processor * newProcessor()
Return a new instance of this processor.
void processRunHeader(lcio::LCRunHeader *run)
Called once per run to process the event's header.
A processor which instantiates a TrackFitterKalman and fits the tracks with it.
Definition: TrackFitterKalmanProcessor.h:41
virtual void processEvent(lcio::LCEvent *evt)
Process event requests a track fitter from the TrackFitterFactory for each event (to update possible ...
std::string _output_tracks_collection_name
The name of the output collection with the fitted tracks.
Definition: TrackFitterKalmanProcessor.h:111
void init()
In this processor the init function set the collection parameters for the track collection and instan...
void bookNtuple()
Book histograms This method is used to books all required histograms.
TrackFitterKalmanProcessor()
Default constructor.
virtual void check(lcio::LCEvent *evt)
Called for every event - right after processEvent() has been called for all processors.