CMS 3D CMS Logo

Functions
LHCInfoImpl Namespace Reference

Functions

cond::Time_t getNextIov (cond::Time_t prevIov, unsigned int samplingInterval)
 
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

cond::Time_t LHCInfoImpl::getNextIov ( cond::Time_t  prevIov,
unsigned int  samplingInterval 
)

Definition at line 46 of file LHCInfoPopConSourceHandler.cc.

References cond::time::pack(), and cond::time::unpack().

Referenced by LHCInfoPopConSourceHandler::getNewObjects().

46  {
47  cond::UnpackedTime ut = cond::time::unpack( prevIov );
48  ut.first += samplingInterval;
49  return cond::time::pack( ut );
50  }
cond::Time_t pack(cond::UnpackedTime iValue)
std::pair< unsigned int, unsigned int > UnpackedTime
Definition: Time.h:17
cond::UnpackedTime unpack(cond::Time_t iValue)
template<typename T >
const T& LHCInfoImpl::getOneParam ( const std::vector< std::vector< T > > &  params,
size_t  index 
)
template<typename T >
const T& LHCInfoImpl::getParams ( const std::vector< T > &  params,
size_t  index 
)

Definition at line 123 of file LHCInfo.cc.

Referenced by LHCInfo::beam1RF(), LHCInfo::beam1VC(), LHCInfo::beam2RF(), LHCInfo::beam2VC(), LHCInfo::lumiPerBX(), and QTestConfigurationParser::qtestsConfig().

123  {
124  if( index >= params.size() ) throw std::out_of_range("Parameter with index "+std::to_string(index)+" is out of range.");
125  return params[index];
126  }
template<typename T >
void LHCInfoImpl::setOneParam ( std::vector< std::vector< T > > &  params,
size_t  index,
const T value 
)
template<typename T >
void LHCInfoImpl::setParams ( std::vector< T > &  params,
size_t  index,
const T value 
)

Definition at line 140 of file LHCInfo.cc.

References relativeConstraints::value.

Referenced by LHCInfo::setBeam1RF(), LHCInfo::setBeam1VC(), LHCInfo::setBeam2RF(), LHCInfo::setBeam2VC(), and LHCInfo::setLumiPerBX().

140  {
141  if( index >= params.size() ) throw std::out_of_range("Parameter with index "+std::to_string(index)+" is out of range.");
142  params[ index ] = value;
143  }