CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

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

Definition at line 14 of file BeamSpotOnlineObjects.cc.

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  }
template<typename T >
const T& BeamSpotOnlineObjectsImpl::getOneParam ( const std::vector< std::vector< T > > &  params,
size_t  index 
)
template<typename T >
const T& BeamSpotOnlineObjectsImpl::getParams ( const std::vector< T > &  params,
size_t  index 
)

Definition at line 7 of file BeamSpotOnlineObjects.cc.

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  }
template<typename T >
void BeamSpotOnlineObjectsImpl::setOneParam ( std::vector< std::vector< T > > &  params,
size_t  index,
const T value 
)
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 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  }