File indexing completed on 2025-12-17 09:20:44
0001 #ifndef TRACKBASEHISTORIC_SVTXALIGNMENTSTATE_V1_H
0002 #define TRACKBASEHISTORIC_SVTXALIGNMENTSTATE_V1_H
0003
0004 #include "SvtxAlignmentState.h"
0005
0006 #include <cmath>
0007 #include <iostream>
0008
0009 class PHObject;
0010
0011 class SvtxAlignmentState_v1 : public SvtxAlignmentState
0012 {
0013 public:
0014 SvtxAlignmentState_v1();
0015 ~SvtxAlignmentState_v1() override {}
0016
0017 void identify(std::ostream& os = std::cout) const override;
0018 void Reset() override { *this = SvtxAlignmentState_v1(); }
0019 int isValid() const override { return 1; }
0020 PHObject* CloneMe() const override { return new SvtxAlignmentState_v1(*this); }
0021
0022 void set_residual(const ResidualVector& res) override
0023 {
0024 m_residual = res;
0025 }
0026 void set_local_derivative_matrix(const LocalMatrix& d) override
0027 {
0028 m_localDeriv = d;
0029 }
0030 void set_global_derivative_matrix(const GlobalMatrix& d) override
0031 {
0032 m_globalDeriv = d;
0033 }
0034 void set_cluster_key(const TrkrDefs::cluskey key) override
0035 {
0036 m_cluskey = key;
0037 }
0038
0039 const ResidualVector& get_residual() const override { return m_residual; }
0040 const LocalMatrix& get_local_derivative_matrix() const override { return m_localDeriv; }
0041 const GlobalMatrix& get_global_derivative_matrix() const override { return m_globalDeriv; }
0042 TrkrDefs::cluskey get_cluster_key() const override { return m_cluskey; }
0043
0044 private:
0045 ResidualVector m_residual;
0046 LocalMatrix m_localDeriv;
0047 GlobalMatrix m_globalDeriv;
0048 TrkrDefs::cluskey m_cluskey;
0049
0050 ClassDefOverride(SvtxAlignmentState_v1, 1)
0051 };
0052
0053 #endif