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 cond::impl::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  }
std::string to_string(const V &value)
Definition: OMSAccess.h:71

◆ 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, cond::impl::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  }
std::string to_string(const V &value)
Definition: OMSAccess.h:71