DYTParamObject

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
#ifndef DytParamObject_h
#define DytParamObject_h

#include <vector>
#include "DataFormats/DetId/interface/DetId.h"
#include "CondFormats/Serialization/interface/Serializable.h"

class DYTParamObject {
public:
  DYTParamObject() {}
  DYTParamObject(uint32_t id, std::vector<double>& params) : m_id(id), m_params(params) {}
  ~DYTParamObject() { m_params.clear(); };

  // Return raw id
  uint32_t id() const { return m_id; };

  // Return param i (i from 0 to size-1)
  double parameter(unsigned int iParam) const;

  // Return param vector size (i from 0 to size-1)
  unsigned int paramSize() const { return m_params.size(); };

private:
  uint32_t m_id;
  std::vector<double> m_params;

  COND_SERIALIZABLE;
};

#endif