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 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  }
static std::string to_string(const XMLCh *ch)

◆ getOneParam()

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

Definition at line 21 of file BeamSpotOnlineObjects.cc.

References SurfaceOrientation::inner, mergeVDriftHistosByStation::name, submitPVValidationJobs::params, and to_string().

Referenced by BeamSpotOnlineObjects::creationTime(), BeamSpotOnlineObjects::endTime(), BeamSpotOnlineObjects::endTimeStamp(), BeamSpotOnlineObjects::lumiRange(), BeamSpotOnlineObjects::maxPVs(), BeamSpotOnlineObjects::meanErrorPV(), BeamSpotOnlineObjects::meanPV(), BeamSpotOnlineObjects::numPVs(), BeamSpotOnlineObjects::numTracks(), BeamSpotOnlineObjects::rmsErrorPV(), BeamSpotOnlineObjects::rmsPV(), BeamSpotOnlineObjects::startTime(), BeamSpotOnlineObjects::startTimeStamp(), and BeamSpotOnlineObjects::usedEvents().

21  {
22  if (index >= params.size())
23  throw std::out_of_range("Parameter with index " + std::to_string(index) + " is out of range.");
24  const std::vector<T>& inner = params[index];
25  if (inner.empty())
26  throw std::out_of_range("Parameter with index " + std::to_string(index) + " type=" + typeid(T).name() +
27  " has no value stored.");
28  return inner[0];
29  }
static std::string to_string(const XMLCh *ch)
long double T

◆ 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 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  }
static std::string to_string(const XMLCh *ch)

◆ 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, 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  }
static std::string to_string(const XMLCh *ch)