Belle II Software  release-05-01-25
HMatrixQP.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2015 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Nils Braun *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <TMatrixDSymfwd.h> // for TMatrixDSym
14 #include <TMatrixDfwd.h> // for TMatrixD
15 #include <TVectorDfwd.h> // for TVectorD
16 #include <genfit/AbsHMatrix.h> // for AbsHMatrix
17 
18 namespace Belle2 {
29  class HMatrixQP : public genfit::AbsHMatrix {
30 
31  public:
32 
34  HMatrixQP() {;}
35 
37  const TMatrixD& getMatrix() const override;
38 
40  TVectorD Hv(const TVectorD& v) const override;
41 
43  TMatrixD MHt(const TMatrixDSym& M) const override;
44 
46  TMatrixD MHt(const TMatrixD& M) const override;
47 
49  void HMHt(TMatrixDSym& M) const override;
50 
52  virtual HMatrixQP* clone() const override {return new HMatrixQP(*this);}
53 
55  virtual bool isEqual(const genfit::AbsHMatrix& other) const override {return (dynamic_cast<const HMatrixQP*>(&other) != nullptr);}
56 
58  virtual void Print(const Option_t* = "") const override;
59  };
60 
62 }
Belle2::HMatrixQP::Hv
TVectorD Hv(const TVectorD &v) const override
Calculate H * v = v_0.
Definition: HMatrixQP.cc:26
Belle2::HMatrixQP::MHt
TMatrixD MHt(const TMatrixDSym &M) const override
Calculate M * H^T = first column of M.
Definition: HMatrixQP.cc:38
Belle2::HMatrixQP
AbsHMatrix implementation for one-dimensional MeasurementOnPlane and RKTrackRep parameterization.
Definition: HMatrixQP.h:37
Belle2::HMatrixQP::clone
virtual HMatrixQP * clone() const override
Clone the matrix.
Definition: HMatrixQP.h:60
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::HMatrixQP::getMatrix
const TMatrixD & getMatrix() const override
Return the underlying matrix.
Definition: HMatrixQP.cc:16
Belle2::HMatrixQP::HMatrixQP
HMatrixQP()
Constructor.
Definition: HMatrixQP.h:42
Belle2::HMatrixQP::isEqual
virtual bool isEqual(const genfit::AbsHMatrix &other) const override
Check for equality.
Definition: HMatrixQP.h:63
Belle2::HMatrixQP::HMHt
void HMHt(TMatrixDSym &M) const override
Calculate H * M * H^T = M_00.
Definition: HMatrixQP.cc:66
Belle2::HMatrixQP::Print
virtual void Print(const Option_t *="") const override
Print a symbol for the matrix for debugging.
Definition: HMatrixQP.cc:74
genfit::AbsHMatrix
HMatrix for projecting from AbsTrackRep parameters to measured parameters in a DetPlane.
Definition: AbsHMatrix.h:37