36 LdmxSpacePoint(
float x,
float y,
float z,
float t,
int layer,
float edep,
37 float vR,
float vZ,
int id) {
51 const std::vector<float>& cv,
int id) {
64 float x()
const {
return m_x; }
65 float y()
const {
return m_y; }
66 float z()
const {
return m_z; }
67 float t()
const {
return m_t; }
68 float r()
const {
return m_r; }
69 float edep()
const {
return m_edep; }
70 float varianceR()
const {
return m_varianceR; }
71 float varianceZ()
const {
return m_varianceZ; }
72 int layer()
const {
return m_layer; }
73 int id()
const {
return m_id; }
75 void setGlobalPosition(
float x,
float y,
float z) {
76 global_pos_.setZero();
82 void setLocalPosition(
float u,
float v) {
88 void setLocalPosition(
const Acts::Vector2& local) { local_pos_ = local; }
90 void setLocalCovariance(
float vR,
float vZ) {
92 local_cov_(0, 0) = vR;
93 local_cov_(1, 1) = vZ;
100 projector_.setZero();
101 projector_(0, 0) = 1;
102 projector_(1, 1) = 1;
105 const Acts::SquareMatrix2 getLocalCovariance()
const {
return local_cov_; };
106 const Acts::Vector3 getGlobalPosition()
const {
return global_pos_; };
107 const Acts::Vector2 getLocalPosition()
const {
return local_pos_; };
109 Acts::Vector3 global_pos_;
110 Acts::Vector2 local_pos_;
112 Acts::SquareMatrix2 local_cov_;
117 Acts::ActsMatrix<2, 6> projector_;
121 setGlobalPosition(m_x, m_y, m_z);
122 m_r = std::sqrt(m_x * m_x + m_y * m_y);
123 setLocalCovariance(m_varianceR, m_varianceZ);