StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StiVertexFinder.h
1 #ifndef StiVertexFinder_H
2 #define StiVertexFinder_H 1
3 #include "Sti/Base/Factory.h"
4 #include "Sti/Base/Named.h"
5 #include <vector>
6 
7 class StEvent;
8 class StiHit;
9 
13 class StiVertexFinder : public Named
14 {
15 public:
16  StiVertexFinder(const string & name);
17  virtual ~StiVertexFinder();
19  virtual int fit(StEvent*)=0; // fit the vertex
20  virtual StiHit * getVertex(int index) =0;
21  virtual int size() const =0;
22  Factory<StiHit>* getHitFactory();
23  virtual void clear()=0;
24 
25 const std::vector<StiHit*> *result();
26 
27 protected:
28  StiVertexFinder();//not implemented
29  Factory<StiHit>* _hitFactory;
30 std::vector<StiHit*> _result;
31 };
32 
33 inline Factory<StiHit>* StiVertexFinder::getHitFactory()
34 {
35  return _hitFactory;
36 }
37 
38 #endif
virtual int fit(StEvent *)=0
Find the vertex(es) associated with the given event.
Definition: StiHit.h:51
Definition: Named.h:16