CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes | Friends
DYTParamObject Class Reference

#include <DYTParamObject.h>

Public Member Functions

 DYTParamObject ()
 
 DYTParamObject (uint32_t id, std::vector< double > &params)
 
uint32_t id () const
 
double parameter (unsigned int iParam) const
 
unsigned int paramSize () const
 
 ~DYTParamObject ()
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

uint32_t m_id
 
std::vector< double > m_params
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

Detailed Description

Definition at line 8 of file DYTParamObject.h.

Constructor & Destructor Documentation

◆ DYTParamObject() [1/2]

DYTParamObject::DYTParamObject ( )
inline

Definition at line 10 of file DYTParamObject.h.

10 {};

◆ DYTParamObject() [2/2]

DYTParamObject::DYTParamObject ( uint32_t  id,
std::vector< double > &  params 
)
inline

Definition at line 11 of file DYTParamObject.h.

11 : m_id(id), m_params(params){};

◆ ~DYTParamObject()

DYTParamObject::~DYTParamObject ( )
inline

Definition at line 12 of file DYTParamObject.h.

12 { m_params.clear(); };

References m_params.

Member Function Documentation

◆ id()

uint32_t DYTParamObject::id ( ) const
inline

Definition at line 15 of file DYTParamObject.h.

15 { return m_id; };

References m_id.

◆ parameter()

double DYTParamObject::parameter ( unsigned int  iParam) const

Definition at line 4 of file DYTParamObject.cc.

4  {
5  if (iParam >= paramSize()) {
6  edm::LogWarning("DYTParamObject") << "The requested parameter (" << (iParam + 1) << ") is outside size range ("
7  << paramSize() << ").";
8  return 0.;
9  }
10 
11  return m_params.at(iParam);
12 }

References m_params, and paramSize().

◆ paramSize()

unsigned int DYTParamObject::paramSize ( ) const
inline

Definition at line 21 of file DYTParamObject.h.

21 { return m_params.size(); };

References m_params.

Referenced by parameter().

◆ serialize()

template<class Archive >
void DYTParamObject::serialize ( Archive &  ar,
const unsigned int  version 
)
private

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 27 of file DYTParamObject.h.

◆ cond::serialization::access

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 27 of file DYTParamObject.h.

Member Data Documentation

◆ m_id

uint32_t DYTParamObject::m_id
private

Definition at line 21 of file DYTParamObject.h.

Referenced by id().

◆ m_params

std::vector<double> DYTParamObject::m_params
private

Definition at line 25 of file DYTParamObject.h.

Referenced by parameter(), paramSize(), and ~DYTParamObject().

CalibrationSummaryClient_cfi.params
params
Definition: CalibrationSummaryClient_cfi.py:14
DYTParamObject::paramSize
unsigned int paramSize() const
Definition: DYTParamObject.h:21
edm::LogWarning
Definition: MessageLogger.h:141
DYTParamObject::m_params
std::vector< double > m_params
Definition: DYTParamObject.h:25
DYTParamObject::m_id
uint32_t m_id
Definition: DYTParamObject.h:21