10#include <analysis/VertexFitting/RaveInterface/RaveSetup.h>
12#include <rave/VacuumPropagator.h>
13#include <rave/MagneticField.h>
14#include <rave/ConstantMagneticField.h>
15#include <rave/VertexFactory.h>
16#include <rave/KinematicTreeFactory.h>
25using namespace analysis;
42 rave::VacuumPropagator(),
"kalman", verbosity);
44 rave::VacuumPropagator(), verbosity);
49 m_raveKinematicTreeFactory(nullptr), m_initialized(false)
91 B2INFO(
"use beam spot is false");
93 B2INFO(
"use beam spot is true and beam spot position and covariance matrix are:");
99 B2INFO(
"RaveSetup::initialize was not called. There is nothing to Print.");
std::string PrintString(unsigned precision=4) const
create a string containing vector in cartesian and spherical coordinates
The RaveSetup class is part of the RaveInterface together with RaveVertexFitter It holds all global o...
TMatrixDSym m_beamSpotCov
beam spot position covariance matrix.
RaveSetup()
default constructor
void unsetBeamSpot()
unset beam spot constraint
rave::KinematicTreeFactory * m_raveKinematicTreeFactory
< The RAVE Kinematic Tree factory is the principal interface offered by the RAVE for kinematic vertex...
bool m_useBeamSpot
flag determines if beam spot information should be used for vertex fit.
static void initialize(int verbosity=1, double MagneticField=1.5)
Set everything up so everything needed for vertex fitting is there.
static RaveSetup * getRawInstance()
Same as getInstance(), but no check if the instance is initialised.
bool m_initialized
Has initialize() been called? unusable otherwise.
B2Vector3D m_beamSpot
beam spot position.
rave::VertexFactory * m_raveVertexFactory
The RAVE vertex factory is the principal interface offered by the RAVE vertex fitting library.
static void Print()
Print() writes all RaveSetup member variables to the terminal
~RaveSetup()
default destructor
void setBeamSpot(const B2Vector3D &beamSpot, const TMatrixDSym &beamSpotCov)
The beam spot position and covariance is known you can set it here so that and a vertex in the beam s...
void reset()
frees memory allocated by initialize().
Abstract base class for different kinds of events.