LDMX Software
ldmx::LdmxSpacePoint Class Reference

Public Member Functions

 LdmxSpacePoint (float x_, float y_, float z_, float t, int layer_)
 
 LdmxSpacePoint (float x_, float y_, float z_, float t, int layer_, float edep, float vR, float vZ, int id)
 
 LdmxSpacePoint (const std::vector< float > &gp, float t, int layer_, const std::vector< float > &cv, int id)
 
float x () const
 
float y () const
 
float z () const
 
float t () const
 
float r () const
 
float edep () const
 
float varianceR () const
 
float varianceZ () const
 
int layer () const
 
int id () const
 
void setGlobalPosition (float x_, float y_, float z_)
 
void setLocalPosition (float u, float v)
 
void setLocalPosition (const Acts::Vector2 &local)
 
void setLocalCovariance (float vR, float vZ)
 
void setProjector ()
 
const Acts::SquareMatrix2 getLocalCovariance () const
 
const Acts::Vector3 getGlobalPosition () const
 
const Acts::Vector2 getLocalPosition () const
 

Public Attributes

Acts::Vector3 global_pos_
 
Acts::Vector2 local_pos_
 
Acts::SquareMatrix2 local_cov_
 
Acts::ActsMatrix< 2, 6 > projector_
 

Private Member Functions

void initialize ()
 

Private Attributes

float m_x_
 
float m_y_
 
float m_z_
 
float m_t_
 
float m_r_
 
float m_edep_
 
float m_variance_r_
 
float m_variance_z_
 
int m_id_
 
int m_layer_
 

Detailed Description

Definition at line 19 of file LdmxSpacePoint.h.

Constructor & Destructor Documentation

◆ LdmxSpacePoint() [1/3]

ldmx::LdmxSpacePoint::LdmxSpacePoint ( float x_,
float y_,
float z_,
float t,
int layer_ )
inline

Definition at line 22 of file LdmxSpacePoint.h.

22 {
23 m_x_ = x_;
24 m_y_ = y_;
25 m_z_ = z_;
26 m_t_ = t;
27 m_edep_ = 0.;
28 m_layer_ = layer_;
29 m_id_ = -999;
30 m_variance_r_ = 0.050;
31 m_variance_z_ = 0.050;
32 initialize();
33 }

◆ LdmxSpacePoint() [2/3]

ldmx::LdmxSpacePoint::LdmxSpacePoint ( float x_,
float y_,
float z_,
float t,
int layer_,
float edep,
float vR,
float vZ,
int id )
inline

Definition at line 36 of file LdmxSpacePoint.h.

37 {
38 m_x_ = x_;
39 m_y_ = y_;
40 m_z_ = z_;
41 m_t_ = t;
42 m_edep_ = edep;
43 m_variance_r_ = vR;
44 m_variance_z_ = vZ;
45 m_layer_ = layer_;
46 m_id_ = id;
47 initialize();
48 }

◆ LdmxSpacePoint() [3/3]

ldmx::LdmxSpacePoint::LdmxSpacePoint ( const std::vector< float > & gp,
float t,
int layer_,
const std::vector< float > & cv,
int id )
inline

Definition at line 50 of file LdmxSpacePoint.h.

51 {
52 m_x_ = gp[0];
53 m_y_ = gp[1];
54 m_z_ = gp[2];
55 m_t_ = t;
56 m_edep_ = 0.;
57 m_layer_ = layer_;
58 m_id_ = id;
59 m_variance_r_ = cv[0];
60 m_variance_z_ = cv[1];
61 initialize();
62 }

Member Function Documentation

◆ edep()

float ldmx::LdmxSpacePoint::edep ( ) const
inline

Definition at line 69 of file LdmxSpacePoint.h.

69{ return m_edep_; }

◆ getGlobalPosition()

const Acts::Vector3 ldmx::LdmxSpacePoint::getGlobalPosition ( ) const
inline

Definition at line 106 of file LdmxSpacePoint.h.

106{ return global_pos_; };

◆ getLocalCovariance()

const Acts::SquareMatrix2 ldmx::LdmxSpacePoint::getLocalCovariance ( ) const
inline

Definition at line 105 of file LdmxSpacePoint.h.

105{ return local_cov_; };

◆ getLocalPosition()

const Acts::Vector2 ldmx::LdmxSpacePoint::getLocalPosition ( ) const
inline

Definition at line 107 of file LdmxSpacePoint.h.

107{ return local_pos_; };

◆ id()

int ldmx::LdmxSpacePoint::id ( ) const
inline

Definition at line 73 of file LdmxSpacePoint.h.

73{ return m_id_; }

◆ initialize()

void ldmx::LdmxSpacePoint::initialize ( )
inlineprivate

Definition at line 120 of file LdmxSpacePoint.h.

120 {
121 setGlobalPosition(m_x_, m_y_, m_z_);
122 m_r_ = std::sqrt(m_x_ * m_x_ + m_y_ * m_y_);
123 setLocalCovariance(m_variance_r_, m_variance_z_);
124 setProjector();
125 };

◆ layer()

int ldmx::LdmxSpacePoint::layer ( ) const
inline

Definition at line 72 of file LdmxSpacePoint.h.

72{ return m_layer_; }

◆ r()

float ldmx::LdmxSpacePoint::r ( ) const
inline

Definition at line 68 of file LdmxSpacePoint.h.

68{ return m_r_; }

◆ setGlobalPosition()

void ldmx::LdmxSpacePoint::setGlobalPosition ( float x_,
float y_,
float z_ )
inline

Definition at line 75 of file LdmxSpacePoint.h.

75 {
76 global_pos_.setZero();
77 global_pos_(0) = x_;
78 global_pos_(1) = y_;
79 global_pos_(2) = z_;
80 }

◆ setLocalCovariance()

void ldmx::LdmxSpacePoint::setLocalCovariance ( float vR,
float vZ )
inline

Definition at line 90 of file LdmxSpacePoint.h.

90 {
91 local_cov_.setZero();
92 local_cov_(0, 0) = vR;
93 local_cov_(1, 1) = vZ;
94 }

◆ setLocalPosition() [1/2]

void ldmx::LdmxSpacePoint::setLocalPosition ( const Acts::Vector2 & local)
inline

Definition at line 88 of file LdmxSpacePoint.h.

88{ local_pos_ = local; }

◆ setLocalPosition() [2/2]

void ldmx::LdmxSpacePoint::setLocalPosition ( float u,
float v )
inline

Definition at line 82 of file LdmxSpacePoint.h.

82 {
83 local_pos_.setZero();
84 local_pos_(0) = u;
85 local_pos_(1) = v;
86 }

◆ setProjector()

void ldmx::LdmxSpacePoint::setProjector ( )
inline

Definition at line 99 of file LdmxSpacePoint.h.

99 {
100 projector_.setZero();
101 projector_(0, 0) = 1;
102 projector_(1, 1) = 1;
103 }

◆ t()

float ldmx::LdmxSpacePoint::t ( ) const
inline

Definition at line 67 of file LdmxSpacePoint.h.

67{ return m_t_; }

◆ varianceR()

float ldmx::LdmxSpacePoint::varianceR ( ) const
inline

Definition at line 70 of file LdmxSpacePoint.h.

70{ return m_variance_r_; }

◆ varianceZ()

float ldmx::LdmxSpacePoint::varianceZ ( ) const
inline

Definition at line 71 of file LdmxSpacePoint.h.

71{ return m_variance_z_; }

◆ x()

float ldmx::LdmxSpacePoint::x ( ) const
inline

Definition at line 64 of file LdmxSpacePoint.h.

64{ return m_x_; }

◆ y()

float ldmx::LdmxSpacePoint::y ( ) const
inline

Definition at line 65 of file LdmxSpacePoint.h.

65{ return m_y_; }

◆ z()

float ldmx::LdmxSpacePoint::z ( ) const
inline

Definition at line 66 of file LdmxSpacePoint.h.

66{ return m_z_; }

Member Data Documentation

◆ global_pos_

Acts::Vector3 ldmx::LdmxSpacePoint::global_pos_

Definition at line 109 of file LdmxSpacePoint.h.

◆ local_cov_

Acts::SquareMatrix2 ldmx::LdmxSpacePoint::local_cov_

Definition at line 112 of file LdmxSpacePoint.h.

◆ local_pos_

Acts::Vector2 ldmx::LdmxSpacePoint::local_pos_

Definition at line 110 of file LdmxSpacePoint.h.

◆ m_edep_

float ldmx::LdmxSpacePoint::m_edep_
private

Definition at line 132 of file LdmxSpacePoint.h.

◆ m_id_

int ldmx::LdmxSpacePoint::m_id_
private

Definition at line 135 of file LdmxSpacePoint.h.

◆ m_layer_

int ldmx::LdmxSpacePoint::m_layer_
private

Definition at line 136 of file LdmxSpacePoint.h.

◆ m_r_

float ldmx::LdmxSpacePoint::m_r_
private

Definition at line 131 of file LdmxSpacePoint.h.

◆ m_t_

float ldmx::LdmxSpacePoint::m_t_
private

Definition at line 130 of file LdmxSpacePoint.h.

◆ m_variance_r_

float ldmx::LdmxSpacePoint::m_variance_r_
private

Definition at line 133 of file LdmxSpacePoint.h.

◆ m_variance_z_

float ldmx::LdmxSpacePoint::m_variance_z_
private

Definition at line 134 of file LdmxSpacePoint.h.

◆ m_x_

float ldmx::LdmxSpacePoint::m_x_
private

Definition at line 127 of file LdmxSpacePoint.h.

◆ m_y_

float ldmx::LdmxSpacePoint::m_y_
private

Definition at line 128 of file LdmxSpacePoint.h.

◆ m_z_

float ldmx::LdmxSpacePoint::m_z_
private

Definition at line 129 of file LdmxSpacePoint.h.

◆ projector_

Acts::ActsMatrix<2, 6> ldmx::LdmxSpacePoint::projector_

Definition at line 117 of file LdmxSpacePoint.h.


The documentation for this class was generated from the following file: