LCFIVertex  0.7.2
PerEventIPFitter.h
1 #ifndef PerEventIPFitterProcessor_h
2 #define PerEventIPFitterProcessor_h 1
3 
4 #include "marlin/Processor.h"
5 #include "lcio.h"
6 #include <string>
7 #include <map>
8 #include <fstream>
9 
10 #include "inc/algo.h"
11 #include "inc/event.h"
12 #include "inc/vertex.h"
13 using namespace lcio ;
14 using namespace marlin ;
16 using vertex_lcfi::Event;
17 
19 
49 class PerEventIPFitterProcessor : public Processor {
50 
51  public:
52 
53  //The usual Marlin processor methods
54  virtual Processor* newProcessor() { return new PerEventIPFitterProcessor ; }
56  virtual void init() ;
57  virtual void processRunHeader( LCRunHeader* run ) ;
58  virtual void processEvent( LCEvent * evt ) ;
59  virtual void check( LCEvent * evt ) ;
60  virtual void end() ;
61 
62  protected:
63 std::string _InputRPCollectionName ;
64  std::string _VertexCollectionName;
66  FloatVec _DefaultIPPos;
67  FloatVec _DefaultIPErr;
68  double _ProbThreshold;
69  int _nRun ;
70  int _nEvt ;
71 } ;
72 
73 #endif
74 
75 
76 
Determine IP position and error from the tracks in an event by simple fit.