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

The RaveSetup class is part of the RaveInterface together with RaveVertexFitter It holds all global options for the RaveVertexFitter and also takes care that stuff like the magnetic field is correctly set up in way Rave can access it. More...

#include <RaveSetup.h>

Collaboration diagram for RaveSetup:

Public Member Functions

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 spot should be fitted you can set it here.
 
void unsetBeamSpot ()
 unset beam spot constraint
 
void reset ()
 frees memory allocated by initialize(). More...
 

Static Public Member Functions

static RaveSetupgetInstance ()
 get the pointer to the instance to get/set any of options stored in RaveSetup
 
static void initialize (int verbosity=1, double MagneticField=1.5)
 Set everything up so everything needed for vertex fitting is there. More...
 
static void Print ()
 Print() writes all RaveSetup member variables to the terminal

 

Protected Member Functions

 RaveSetup ()
 default constructor
 
 ~RaveSetup ()
 default destructor
 

Static Protected Member Functions

static RaveSetupgetRawInstance ()
 Same as getInstance(), but no check if the instance is initialised.
 

Protected Attributes

bool m_useBeamSpot
 flag determines if beam spot information should be used for vertex fit. More...
 
B2Vector3D m_beamSpot
 beam spot position. More...
 
TMatrixDSym m_beamSpotCov
 beam spot position covariance matrix. More...
 
rave::VertexFactory * m_raveVertexFactory
 The RAVE vertex factory is the principal interface offered by the RAVE vertex fitting library.
 
rave::KinematicTreeFactory * m_raveKinematicTreeFactory
 < The RAVE Kinematic Tree factory is the principal interface offered by the RAVE for kinematic vertex fitting.
 
bool m_initialized
 Has initialize() been called? unusable otherwise.
 

Friends

class RaveVertexFitter
 
class RaveKinematicVertexFitter
 

Detailed Description

The RaveSetup class is part of the RaveInterface together with RaveVertexFitter It holds all global options for the RaveVertexFitter and also takes care that stuff like the magnetic field is correctly set up in way Rave can access it.

Definition at line 37 of file RaveSetup.h.

Member Function Documentation

◆ initialize()

void initialize ( int  verbosity = 1,
double  MagneticField = 1.5 
)
static

Set everything up so everything needed for vertex fitting is there.

Must be called before RaveVertexFitter can be used

Definition at line 33 of file RaveSetup.cc.

34 {
36  getRawInstance()->reset();
37  //now setup everything for the use of GFRave
38 // getRawInstance()->m_GFRaveVertexFactory = new GFRaveVertexFactory(verbosity, true);
39 
40 
41  getRawInstance()->m_raveVertexFactory = new rave::VertexFactory(rave::ConstantMagneticField(0, 0, magneticField),
42  rave::VacuumPropagator(), "kalman", verbosity);
43  getRawInstance()->m_raveKinematicTreeFactory = new rave::KinematicTreeFactory(rave::ConstantMagneticField(0, 0, magneticField),
44  rave::VacuumPropagator(), verbosity);
45  getRawInstance()->m_initialized = true;
46 }
rave::KinematicTreeFactory * m_raveKinematicTreeFactory
< The RAVE Kinematic Tree factory is the principal interface offered by the RAVE for kinematic vertex...
Definition: RaveSetup.h:81
static RaveSetup * getRawInstance()
Same as getInstance(), but no check if the instance is initialised.
Definition: RaveSetup.cc:27
bool m_initialized
Has initialize() been called? unusable otherwise.
Definition: RaveSetup.h:83
rave::VertexFactory * m_raveVertexFactory
The RAVE vertex factory is the principal interface offered by the RAVE vertex fitting library.
Definition: RaveSetup.h:77
void reset()
frees memory allocated by initialize().
Definition: RaveSetup.cc:58

◆ reset()

void reset ( )

frees memory allocated by initialize().

Beam spot is not modified.

Definition at line 58 of file RaveSetup.cc.

Member Data Documentation

◆ m_beamSpot

B2Vector3D m_beamSpot
protected

beam spot position.

Can be used as additional information by RaveVertexFitter

Definition at line 73 of file RaveSetup.h.

◆ m_beamSpotCov

TMatrixDSym m_beamSpotCov
protected

beam spot position covariance matrix.

Can be used as additional information by RaveVertexFitter

Definition at line 74 of file RaveSetup.h.

◆ m_useBeamSpot

bool m_useBeamSpot
protected

flag determines if beam spot information should be used for vertex fit.

Can be overruled by individual fits in RaveVertexFitter

Definition at line 72 of file RaveSetup.h.


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