Belle II Software  release-08-01-10
GFRaveVertexFactory Class Reference

Vertex factory for producing GFRaveVertex objects from Track objects. More...

#include <GFRaveVertexFactory.h>

Collaboration diagram for GFRaveVertexFactory:

Public Member Functions

 GFRaveVertexFactory (int verbosity=0, bool useVacuumPropagator=false)
 
void findVertices (std::vector< genfit::GFRaveVertex * > *, const std::vector< genfit::Track * > &, bool use_beamspot=false)
 
void findVertices (std::vector< genfit::GFRaveVertex * > *, const std::vector< genfit::Track * > &, std::vector< genfit::MeasuredStateOnPlane * > &, bool use_beamspot=false)
 MeasuredStateOnPlanes will be used (instead of the tracks fitted states) to calculate the rave::Track parameters. takes ownership of MeasuredStateOnPlanes.
 
void setBeamspot (const TVector3 &pos, const TMatrixDSym &cov)
 
void setMethod (const std::string &method)
 Set the reconstruction method. More...
 

Private Member Functions

void clearMap ()
 

Private Attributes

std::map< int, genfit::trackAndStateIdGFTrackStateMap_
 
rave::VertexFactory * factory_
 
rave::MagneticField * magneticField_
 
rave::Propagator * propagator_
 

Detailed Description

Vertex factory for producing GFRaveVertex objects from Track objects.

The GFRaveVertexFactory is basically a wrapper around the rave::VertexFactory. It takes care of initializing the rave::VertexFactory, building the necessary maps, convert GENFIT to rave objects and vice versa.

Definition at line 64 of file GFRaveVertexFactory.h.

Member Function Documentation

◆ setMethod()

void setMethod ( const std::string &  method)

Set the reconstruction method.

See http://projects.hepforge.org/rave/trac/wiki/RaveMethods Smoothing has to be turned on! e.g. kalman-smoothing:1

Definition at line 119 of file GFRaveVertexFactory.cc.

119  {
120  size_t found = method.find("smoothing:1");
121  if (found==std::string::npos){
122  std::cerr << "GFRaveVertexFactory::setMethod(" << method << ") ==> smoothing not turned on! GFRaveTrackParameters will be unsmoothed!" << std::endl;
123  }
124  factory_->setDefaultMethod(method);
125  std::cout << "GFRaveVertexFactory::setMethod ==> set method to " << factory_->method() << std::endl;
126 }

The documentation for this class was generated from the following files: