10#include <analysis/VertexFitting/RaveInterface/RaveSetup.h>
12#include <framework/geometry/B2Vector3.h>
14#include <rave/VacuumPropagator.h>
15#include <rave/MagneticField.h>
16#include <rave/ConstantMagneticField.h>
17#include <rave/VertexFactory.h>
18#include <rave/KinematicTreeFactory.h>
27using namespace analysis;
44 rave::VacuumPropagator(),
"kalman", verbosity);
46 rave::VacuumPropagator(), verbosity);
93 B2INFO(
"use beam spot is false");
95 B2INFO(
"use beam spot is true and beam spot position and covariance matrix are:");
101 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
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?
ROOT::Math::XYZVector 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.
void setBeamSpot(const ROOT::Math::XYZVector &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...
~RaveSetup()
default destructor
void reset()
frees memory allocated by initialize().
B2Vector3< double > B2Vector3D
typedef for common usage with double
Abstract base class for different kinds of events.