12#include <mdst/dbobjects/BeamSpot.h>
13#include <mdst/dbobjects/CollisionBoostVector.h>
14#include <mdst/dbobjects/CollisionInvariantMass.h>
17#include <framework/database/DBObjPtr.h>
18#include <framework/database/IntervalOfValidity.h>
19#include <framework/dbobjects/BeamParameters.h>
Fitter calculating BeamParameters from CollisionBoostVector and CollisionInvariantMass.
void fit()
Perform the fit.
void setAngleHER(double angleHER)
Set HER angle.
double m_AngleLER
LER angle.
BeamParameters m_BeamParameters
Beam parameters.
void setupDatabase()
Setup database.
double m_InvariantMassError
Invariant-mass error (use only if error is 0).
DBObjPtr< CollisionBoostVector > m_CollisionBoostVector
Collision boost vector.
double m_AngleHER
HER angle.
void setIntervalOfValidity(const IntervalOfValidity &iov)
Set interval of validity.
~BeamParametersFitter()
Destructor.
bool m_Verbose
Whether to be verbose (print Minuit output).
void setInvariantMassError(double invariantMassError)
Set invariant-mass error.
void importBeamParameters()
Import beam parameters.
DBObjPtr< CollisionInvariantMass > m_CollisionInvariantMass
Collision invariant mass.
void setAngleError(double angleError)
Set angle error.
BeamParametersFitter()
Constructor.
IntervalOfValidity m_IntervalOfValidity
Interval of validity.
void setVerbose(bool verbose)
Set whether to be verbose (print Minuit output).
DBObjPtr< BeamSpot > m_BeamSpot
Beam spot.
double m_BoostError
Boost error (use only if inverse error matrix is not available).
BeamParameters getBeamParameters() const
Get beam parameters.
void setBoostError(double boostError)
Set boost error.
void setAngleLER(double angleLER)
Set LER angle.
double m_AngleError
Angle error.
void setBeamParameters(const BeamParameters *beamParameters)
Set beam parameters.
void fillVertexData(double covarianceXX, double covarianceYY)
Fill beam spot (vertex) data.
This class contains the nominal beam parameters and the parameters used for smearing of the primary v...
Class for accessing objects in the database.
A class that describes the interval of experiments/runs for which an object in the database is valid.
Abstract base class for different kinds of events.