CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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::DYTParamObject ( )
inline

Definition at line 11 of file DYTParamObject.h.

11 { };
DYTParamObject::DYTParamObject ( uint32_t  id,
std::vector< double > &  params 
)
inline

Definition at line 12 of file DYTParamObject.h.

13  : m_id(id) , m_params(params) { };
std::vector< double > m_params
DYTParamObject::~DYTParamObject ( )
inline

Definition at line 14 of file DYTParamObject.h.

References m_params.

14 { m_params.clear(); };
std::vector< double > m_params

Member Function Documentation

uint32_t DYTParamObject::id ( void  ) const
inline

Definition at line 17 of file DYTParamObject.h.

References m_id.

17 {return m_id;};
double DYTParamObject::parameter ( unsigned int  iParam) const

Definition at line 4 of file DYTParamObject.cc.

References m_params, and paramSize().

5 {
6 
7  if (iParam >= paramSize())
8  {
9  edm::LogWarning("DYTParamObject")
10  << "The requested parameter (" << (iParam + 1)
11  << ") is outside size range (" << paramSize() << ").";
12  return 0.;
13  }
14 
15  return m_params.at(iParam);
16 
17 }
std::vector< double > m_params
unsigned int paramSize() const
unsigned int DYTParamObject::paramSize ( ) const
inline

Definition at line 23 of file DYTParamObject.h.

References m_params.

Referenced by parameter().

23 { return m_params.size(); };
std::vector< double > m_params
template<class Archive >
void DYTParamObject::serialize ( Archive &  ar,
const unsigned int  version 
)
private

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 30 of file DYTParamObject.h.

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

Definition at line 30 of file DYTParamObject.h.

Member Data Documentation

uint32_t DYTParamObject::m_id
private

Definition at line 23 of file DYTParamObject.h.

Referenced by id().

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

Definition at line 28 of file DYTParamObject.h.

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