LDMX Software
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
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_varianceR
 
float m_varianceZ
 
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_varianceR = 0.050;
31 m_varianceZ = 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_varianceR = vR;
44 m_varianceZ = 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_varianceR = cv[0];
60 m_varianceZ = 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_varianceR, m_varianceZ);
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_varianceR; }

◆ varianceZ()

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

Definition at line 71 of file LdmxSpacePoint.h.

71{ return m_varianceZ; }

◆ 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_varianceR

float ldmx::LdmxSpacePoint::m_varianceR
private

Definition at line 133 of file LdmxSpacePoint.h.

◆ m_varianceZ

float ldmx::LdmxSpacePoint::m_varianceZ
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: