9#include <mdst/dbobjects/CollisionBoostVector.h>
10#include <reconstruction/calibration/BeamSpotBoostInvMass/BoostVectorAlgorithm.h>
11#include <reconstruction/calibration/BeamSpotBoostInvMass/BoostVectorStandAlone.h>
12#include <reconstruction/calibration/BeamSpotBoostInvMass/calibTools.h>
21using Belle2::BoostVectorCalib::getEvents;
22using Belle2::BoostVectorCalib::runBoostVectorAnalysis;
32static TObject* getBoostVectorObj(Vector3d vBoost, Matrix3d vBoostUnc, Matrix3d )
36 TObject* obj =
static_cast<TObject*
>(payload);
47 runBoostVectorAnalysis, getBoostVectorObj,
BoostVectorAlgorithm()
Constructor set the prefix to BoostVectorCollector.
TString m_lossFunctionOuter
Outer loss function (for calibration intervals of BoostVector spread parameters)
virtual EResult calibrate() override
Run algo on data.
TString m_lossFunctionInner
Inner loss function (for calibraion subintervals of mean BoostVector values)
void setDescription(const std::string &description)
Set algorithm description (in constructor)
EResult
The result of calibration.
CalibrationAlgorithm(const std::string &collectorModuleName)
Constructor - sets the prefix for collected objects (won't be accesses until execute(....
This class contains the measured average boost vector vec(beta) = (beta_x, beta_y,...
std::shared_ptr< T > getObjectPtr(const std::string &name, const std::vector< Calibration::ExpRun > &requestedRuns)
Get calibration data object by name and list of runs, the Merge function will be called to generate t...
TMatrixDSym toTMatrixDSym(Eigen::MatrixXd mIn)
Function that converts Eigen symmetric matrix to ROOT matrix.
CalibrationAlgorithm::EResult runCalibration(TTree *tracks, const std::string &calibName, Fun1 GetEvents, Fun2 calibAnalysis, std::function< TObject *(Eigen::VectorXd, Eigen::MatrixXd, Eigen::MatrixXd)> calibObjCreator, TString m_lossFunctionOuter, TString m_lossFunctionInner)
Run the the calibration over the whole event sample.
B2Vector3D toB2Vector3(Eigen::VectorXd vIn)
Function that converts Eigen vector to ROOT vector.
Abstract base class for different kinds of events.