 |
Belle II Software
release-05-02-19
|
11 #include <mdst/dbobjects/CollisionBoostVector.h>
12 #include <tracking/calibration/BoostVectorAlgorithm.h>
13 #include <tracking/calibration/BoostVectorStandAlone.h>
14 #include <tracking/calibration/calibTools.h>
16 #include <Eigen/Dense>
18 using Eigen::Vector3d;
19 using Eigen::Matrix3d;
23 using Belle2::BoostVectorCalib::getEvents;
24 using Belle2::BoostVectorCalib::runBoostVectorAnalysis;
34 static TObject* getBoostVectorObj(Vector3d vBoost, Matrix3d vBoostUnc, Matrix3d )
38 TObject* obj =
static_cast<TObject*
>(payload);
47 TTree* tracks = getObjectPtr<TTree>(
"events").get();
49 runBoostVectorAnalysis, getBoostVectorObj,
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.
TString m_lossFunctionInner
Inner loss function (for calibraion subintervals of mean BoostVector values)
TVector3 toTVector3(Eigen::VectorXd vIn)
Function that converts Eigen vector to ROOT vector.
void setDescription(const std::string &description)
Set algorithm description (in constructor)
TMatrixDSym toTMatrixDSym(Eigen::MatrixXd mIn)
Function that converts Eigen symmetric matrix to ROOT matrix.
TString m_lossFunctionOuter
Outer loss function (for calibration intervals of BoostVector spread parameters)
Abstract base class for different kinds of events.
virtual EResult calibrate() override
Run algo on data.
EResult
The result of calibration.
BoostVectorAlgorithm()
Constructor set the prefix to BoostVectorCollector.
Base class for calibration algorithms.
This class contains the measured average boost vector vec(beta) = (beta_x, beta_y,...