CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
mkfit::IterationLayerConfig Class Reference

#include <IterationConfig.h>

Public Member Functions

const std::vector< float > & get_window_params (bool forward, bool fallback_to_other) const
 
 IterationLayerConfig ()
 
float max_dphi () const
 
float max_dq () const
 
float min_dphi () const
 
float min_dq () const
 
void set_selection_limits (float p1, float p2, float q1, float q2)
 

Public Attributes

int m_layer = -1
 
float m_select_max_dphi
 
float m_select_max_dq
 
float m_select_min_dphi
 
float m_select_min_dq
 
std::vector< float > m_winpars_bkw
 
std::vector< float > m_winpars_fwd
 

Detailed Description

Definition at line 35 of file IterationConfig.h.

Constructor & Destructor Documentation

◆ IterationLayerConfig()

mkfit::IterationLayerConfig::IterationLayerConfig ( )
inline

Definition at line 77 of file IterationConfig.h.

77 {}

Member Function Documentation

◆ get_window_params()

const std::vector<float>& mkfit::IterationLayerConfig::get_window_params ( bool  forward,
bool  fallback_to_other 
) const
inline

Definition at line 58 of file IterationConfig.h.

References m_winpars_bkw, and m_winpars_fwd.

Referenced by mkfit::MkFinder::getHitSelDynamicChi2Cut(), and mkfit::MkFinder::getHitSelDynamicWindows().

58  {
59  if (fallback_to_other) {
60  // Empty vector is a valid result, we do not need to check both.
61  if (forward)
62  return m_winpars_fwd.empty() ? m_winpars_bkw : m_winpars_fwd;
63  else
64  return m_winpars_bkw.empty() ? m_winpars_fwd : m_winpars_bkw;
65  } else {
66  return forward ? m_winpars_fwd : m_winpars_bkw;
67  }
68  }
std::vector< float > m_winpars_bkw
std::vector< float > m_winpars_fwd

◆ max_dphi()

float mkfit::IterationLayerConfig::max_dphi ( ) const
inline

Definition at line 54 of file IterationConfig.h.

References m_select_max_dphi.

Referenced by mkfit::MkFinder::selectHitIndices().

◆ max_dq()

float mkfit::IterationLayerConfig::max_dq ( ) const
inline

Definition at line 56 of file IterationConfig.h.

References m_select_max_dq.

Referenced by mkfit::MkFinder::selectHitIndices().

◆ min_dphi()

float mkfit::IterationLayerConfig::min_dphi ( ) const
inline

Definition at line 53 of file IterationConfig.h.

References m_select_min_dphi.

Referenced by mkfit::MkFinder::selectHitIndices().

◆ min_dq()

float mkfit::IterationLayerConfig::min_dq ( ) const
inline

Definition at line 55 of file IterationConfig.h.

References m_select_min_dq.

Referenced by mkfit::MkFinder::selectHitIndices().

◆ set_selection_limits()

void mkfit::IterationLayerConfig::set_selection_limits ( float  p1,
float  p2,
float  q1,
float  q2 
)
inline

Member Data Documentation

◆ m_layer

int mkfit::IterationLayerConfig::m_layer = -1

Definition at line 37 of file IterationConfig.h.

◆ m_select_max_dphi

float mkfit::IterationLayerConfig::m_select_max_dphi

Definition at line 40 of file IterationConfig.h.

Referenced by max_dphi(), and set_selection_limits().

◆ m_select_max_dq

float mkfit::IterationLayerConfig::m_select_max_dq

Definition at line 42 of file IterationConfig.h.

Referenced by max_dq(), and set_selection_limits().

◆ m_select_min_dphi

float mkfit::IterationLayerConfig::m_select_min_dphi

Definition at line 39 of file IterationConfig.h.

Referenced by min_dphi(), and set_selection_limits().

◆ m_select_min_dq

float mkfit::IterationLayerConfig::m_select_min_dq

Definition at line 41 of file IterationConfig.h.

Referenced by min_dq(), and set_selection_limits().

◆ m_winpars_bkw

std::vector<float> mkfit::IterationLayerConfig::m_winpars_bkw

Definition at line 73 of file IterationConfig.h.

Referenced by get_window_params().

◆ m_winpars_fwd

std::vector<float> mkfit::IterationLayerConfig::m_winpars_fwd

Definition at line 72 of file IterationConfig.h.

Referenced by get_window_params().