CMS 3D CMS Logo

DYTParamObject.h
Go to the documentation of this file.
1 #ifndef DytParamObject_h
2 #define DytParamObject_h
3 
4 #include <vector>
7 
9 public:
11  DYTParamObject(uint32_t id, std::vector<double>& params) : m_id(id), m_params(params) {}
12  ~DYTParamObject() { m_params.clear(); };
13 
14  // Return raw id
15  uint32_t id() const { return m_id; };
16 
17  // Return param i (i from 0 to size-1)
18  double parameter(unsigned int iParam) const;
19 
20  // Return param vector size (i from 0 to size-1)
21  unsigned int paramSize() const { return m_params.size(); };
22 
23 private:
24  uint32_t m_id;
25  std::vector<double> m_params;
26 
28 };
29 
30 #endif
double parameter(unsigned int iParam) const
unsigned int paramSize() const
DYTParamObject(uint32_t id, std::vector< double > &params)
std::vector< double > m_params
#define COND_SERIALIZABLE
Definition: Serializable.h:39
uint32_t id() const