9 #include "StChain/StMaker.h"
10 #include "StGenericVertexMaker/StFixedVertexFinder.h"
11 #include "StMcEvent/StMcEvent.hh"
12 #include "StMcEvent/StMcVertex.hh"
13 #include "St_base/StMessMgr.h"
16 StFixedVertexFinder::StFixedVertexFinder() :
28 int StFixedVertexFinder::fit(
StEvent* event)
31 StVertexFinderId VFId;
36 float s2x = mFixedEx * mFixedEx;
37 float s2y = mFixedEy * mFixedEy;
38 float s2z = mFixedEz * mFixedEz;
47 LOG_DEBUG <<
"StFixedVertexFinder::fit() fixing a vertex" << endm;
49 prim.setPosition(pos);
50 VFId = undefinedVertexFinder;
54 LOG_DEBUG <<
"StFixedVertexFinder::fit() reading a vertex from StMcEvent" << endm;
60 LOG_ERROR <<
"StFixedVertexFinder::fit() no StMcEvent" << endm;
69 prim.setPosition(pos);
71 VFId = mcEventVertexFFinder;
74 prim.setCovariantMatrix(cov);
77 prim.setVertexFinderId(VFId);
83 void StFixedVertexFinder::printInfo(ostream& os)
const{
84 os <<
"StFixedVertexFinder - fixed vertex" << endl;
85 os <<
"Fixed position: x=" << mFixedX <<
" y=" << mFixedY <<
" z=" << mFixedZ << endl;
88 void StFixedVertexFinder::UseVertexConstraint(){
89 LOG_WARN <<
"StFixedVertexFinder::UseVertexConstraint() - vertex beam constraint NOT implemented in context of fixed vertex finder" << endm;
93 void StFixedVertexFinder::SetVertexPosition(
double x,
double y,
double z){
98 void StFixedVertexFinder::SetVertexError(
double x,
double y,
double z){
Event data structure to hold all information from a Monte Carlo simulation. This class is the interfa...