CMS 3D CMS Logo

Functions
BeamSpotOnlineObjectsImpl Namespace Reference

Functions

template<typename T >
TaccessParams (std::vector< T > &params, size_t index)
 
template<typename T >
const TgetOneParam (const std::vector< std::vector< T > > &params, size_t index)
 
template<typename T >
const TgetParams (const std::vector< T > &params, size_t index)
 
template<typename T >
void setOneParam (std::vector< std::vector< T > > &params, size_t index, const T &value)
 
template<typename T >
void setParams (std::vector< T > &params, size_t index, const T &value)
 

Function Documentation

◆ accessParams()

template<typename T >
T& BeamSpotOnlineObjectsImpl::accessParams ( std::vector< T > &  params,
size_t  index 
)

Definition at line 14 of file BeamSpotOnlineObjects.cc.

References submitPVValidationJobs::params, and cond::impl::to_string().

14  {
15  if (index >= params.size())
16  throw std::out_of_range("Parameter with index " + std::to_string(index) + " is out of range.");
17  return params[index];
18  }
std::string to_string(const V &value)
Definition: OMSAccess.h:71

◆ getOneParam()

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

◆ getParams()

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

Definition at line 7 of file BeamSpotOnlineObjects.cc.

References submitPVValidationJobs::params, and cond::impl::to_string().

7  {
8  if (index >= params.size())
9  throw std::out_of_range("Parameter with index " + std::to_string(index) + " is out of range.");
10  return params[index];
11  }
std::string to_string(const V &value)
Definition: OMSAccess.h:71

◆ setOneParam()

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

◆ setParams()

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

Definition at line 39 of file BeamSpotOnlineObjects.cc.

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

39  {
40  if (index >= params.size())
41  throw std::out_of_range("Parameter with index " + std::to_string(index) + " is out of range.");
42  params[index] = value;
43  }
std::string to_string(const V &value)
Definition: OMSAccess.h:71