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:
10 
12  DYTParamObject(uint32_t id, std::vector<double> & params)
13  : m_id(id) , m_params(params) { };
14  ~DYTParamObject() { m_params.clear(); };
15 
16  // Return raw id
17  uint32_t id() const {return m_id;};
18 
19  // Return param i (i from 0 to size-1)
20  double parameter(unsigned int iParam) const;
21 
22  // Return param vector size (i from 0 to size-1)
23  unsigned int paramSize() const { return m_params.size(); };
24 
25  private:
26 
27  uint32_t m_id;
28  std::vector<double> m_params;
29 
31 
32 };
33 
34 #endif
uint32_t id() const
DYTParamObject(uint32_t id, std::vector< double > &params)
std::vector< double > m_params
#define COND_SERIALIZABLE
Definition: Serializable.h:38
double parameter(unsigned int iParam) const
unsigned int paramSize() const