5#ifndef TBREC_TBPLANETRACKINGALGO_H
6#define TBREC_TBPLANETRACKINGALGO_H
31 virtual StatusCode
execute()
override;
32 virtual StatusCode
finalize()
override;
46 double &
chi2, std::vector<double> &residual);
51 bool fitHits(
const std::vector<double> & u,
const std::vector<double> & w,
52 const std::vector<double> & eu,
53 double &a1,
double &a2);
58 double getResidual(
const double & u,
const double & w,
const double &a1,
64 double getChi2(
const std::vector<double> &v_u,
65 const std::vector<double> &v_w,
66 const std::vector<double> &v_eu,
68 const double &a1,
const double &a2);
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Holds a set of TBHitPlane objects.
std::vector< float > m_bpc_posX
double getChi2(const std::vector< double > &v_u, const std::vector< double > &v_w, const std::vector< double > &v_eu, const double &a1, const double &a2)
Calculates the chi2 += ((u_i - a1 - a2*w_i)/eu)^2.
std::vector< float > m_bpc_errmeasX
StatusCode buildHits()
Build HitPlaneCont from BPC.
virtual StatusCode execute() override
virtual StatusCode initialize() override
std::vector< float > m_bpc_errposY
std::vector< float > m_bpc_posZX
bool fitPlane(const TBHitPlaneCont *hitPlaneCont, double &a1, double &a2, double &chi2, std::vector< double > &residual)
Fit data to the function u = a1 + a2*w.
std::vector< float > m_bpc_posY
bool fitHits(const std::vector< double > &u, const std::vector< double > &w, const std::vector< double > &eu, double &a1, double &a2)
Fit data to the function u = a1 + a2*w.
std::vector< std::string > m_bpc_names
std::vector< float > m_bpc_errposZY
std::vector< float > m_bpc_errposZX
std::vector< float > m_bpc_errmeasY
std::vector< float > m_bpc_posZY
virtual StatusCode finalize() override
TBHitPlaneCont m_hitPlaneCont_u
std::vector< float > m_bpc_errposX
std::string m_calib_filename
virtual ~TBPlaneTrackingAlgo()
TBHitPlaneCont m_hitPlaneCont_v
double getResidual(const double &u, const double &w, const double &a1, const double &a2)
Calculates the residual-> r = (u_i - a1 - a2*w_i)
TBPlaneTrackingAlgo(const std::string &name, ISvcLocator *pSvcLocator)
double chi2(TH1 *h0, TH1 *h1)