2 #include "Sti/StiStarVertexFinder.h"
3 #include "Sti/StiHit.h"
4 #include "StThreeVectorF.hh"
5 #include "StMatrixF.hh"
7 #include "StPrimaryVertex.h"
8 #include "Sti/Base/Factory.h"
9 #include "StGenericVertexMaker/StGenericVertexMaker.h"
10 #include "StGenericVertexMaker/StGenericVertexFinder.h"
15 StiStarVertexFinder::StiStarVertexFinder(
const string & name)
20 StiStarVertexFinder::~StiStarVertexFinder()
23 void StiStarVertexFinder::clear()
25 if (mGVF) mGVF->Clear();
28 int StiStarVertexFinder::size()
const
30 return (mGVF)? mGVF->size():0;
40 cout <<
"StiStarVertexFinder::fit(StEvent * event) -I- Started"<<endl;
47 mGVF = gvm->GetGenericFinder();
50 LOG_WARN <<
"Could not find a GenericVertex instance" << endm;
58 nVtx = mGVF->fit(event);
84 cout <<
"StiStarVertexFinder::getVertex("<<idx<<
") -I- set hit parameters"<<endl;
85 cout <<
"x:"<< vp.x() <<
"+-" << sqrt(cov[0][0])<<endl;
86 cout <<
"y:"<< vp.y() <<
"+-" << sqrt(cov[1][1])<<endl;
87 cout <<
"z:"<< vp.z() <<
"+-" << sqrt(cov[2][2])<<endl;
void FillStEvent(StEvent *)
virtual Abstract * getInstance()=0
Get a pointer to instance of objects served by this factory.
StiHit * getVertex(int index)