CondFormats
RecoMuonObjects
interface
DYTParamObject.h
Go to the documentation of this file.
1
#ifndef DytParamObject_h
2
#define DytParamObject_h
3
4
#include <vector>
5
#include "
DataFormats/DetId/interface/DetId.h
"
6
#include "
CondFormats/Serialization/interface/Serializable.h
"
7
8
class
DYTParamObject
{
9
public
:
10
DYTParamObject
(){};
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
27
COND_SERIALIZABLE
;
28
};
29
30
#endif
DYTParamObject
Definition:
DYTParamObject.h:8
CalibrationSummaryClient_cfi.params
params
Definition:
CalibrationSummaryClient_cfi.py:14
DYTParamObject::~DYTParamObject
~DYTParamObject()
Definition:
DYTParamObject.h:12
DYTParamObject::paramSize
unsigned int paramSize() const
Definition:
DYTParamObject.h:21
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition:
Serializable.h:39
DYTParamObject::DYTParamObject
DYTParamObject(uint32_t id, std::vector< double > ¶ms)
Definition:
DYTParamObject.h:11
DYTParamObject::id
uint32_t id() const
Definition:
DYTParamObject.h:15
Serializable.h
DYTParamObject::DYTParamObject
DYTParamObject()
Definition:
DYTParamObject.h:10
DYTParamObject::m_params
std::vector< double > m_params
Definition:
DYTParamObject.h:25
DetId.h
DYTParamObject::m_id
uint32_t m_id
Definition:
DYTParamObject.h:21
DYTParamObject::parameter
double parameter(unsigned int iParam) const
Definition:
DYTParamObject.cc:4
Generated for CMSSW Reference Manual by
1.8.16