CMS 3D CMS Logo

Functions
AlignPCLThresholdsHGImpl Namespace Reference

Functions

template<typename T >
const TgetParam (const std::vector< T > &params, size_t index)
 
template<typename T >
void setParam (std::vector< T > &params, size_t index, const T &value)
 

Function Documentation

◆ getParam()

template<typename T >
const T& AlignPCLThresholdsHGImpl::getParam ( const std::vector< T > &  params,
size_t  index 
)

Definition at line 11 of file AlignPCLThresholdsHG.cc.

References submitPVValidationJobs::params, and to_string().

Referenced by AlignPCLThresholdsHG::getFractionCut().

11  {
12  if (index >= params.size())
13  throw std::out_of_range("Parameter with index " + std::to_string(index) + " is out of range.");
14  return params[index];
15  }
static std::string to_string(const XMLCh *ch)

◆ setParam()

template<typename T >
void AlignPCLThresholdsHGImpl::setParam ( std::vector< T > &  params,
size_t  index,
const T value 
)

Definition at line 18 of file AlignPCLThresholdsHG.cc.

References submitPVValidationJobs::params, to_string(), and relativeConstraints::value.

Referenced by AlignPCLThresholdsHG::setFractionCut().

18  {
19  if (index >= params.size())
20  throw std::out_of_range("Parameter with index " + std::to_string(index) + " is out of range.");
21  params[index] = value;
22  }
static std::string to_string(const XMLCh *ch)