Belle II Software development
KinkFinderModule::CDCForwardBackwardWallLine Struct Reference

Structure to store the information about forward and backward walls of CDC. More...

Public Member Functions

void setLine (const double tangent, const double offset)
 Set parameters of slopping line.
 
double getLine (const double x) const
 Return the y value of the sloping line based on the x value.
 

Private Attributes

double m_tangent
 tangent of the sloping line
 
double m_offset
 offset of the sloping line [cm]
 

Detailed Description

Structure to store the information about forward and backward walls of CDC.

CDC has a shape of two trapezoids, so the geometry of forward and backward walls is two sloping lines. This structure handles one sloping line.

Definition at line 133 of file KinkFinderModule.h.

Member Function Documentation

◆ getLine()

double getLine ( const double  x) const
inline

Return the y value of the sloping line based on the x value.

It is used in ifInCDC function to check if the track point is inside CDC.

Parameters
xcoordinate [cm]
Returns
y value of the sloping line

Definition at line 152 of file KinkFinderModule.h.

153 {
154 return m_tangent * x + m_offset;
155 }
double m_offset
offset of the sloping line [cm]

◆ setLine()

void setLine ( const double  tangent,
const double  offset 
)
inline

Set parameters of slopping line.

Parameters
tangenttangent of the sloping line
offsetoffset of the sloping line [cm]

Definition at line 140 of file KinkFinderModule.h.

141 {
142 m_tangent = tangent;
143 m_offset = offset;
144 }

Member Data Documentation

◆ m_offset

double m_offset
private

offset of the sloping line [cm]

Definition at line 159 of file KinkFinderModule.h.

◆ m_tangent

double m_tangent
private

tangent of the sloping line

Definition at line 158 of file KinkFinderModule.h.


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