Main Page
Namespaces
Classes
Package Documentation
CondFormats
Common
interface
BasicPayload.h
Go to the documentation of this file.
1
#ifndef Cond_BasicPayload_h
2
#define Cond_BasicPayload_h
3
4
#include "
CondFormats/Serialization/interface/Serializable.h
"
5
6
namespace
cond
{
7
10
class
BasicPayload
{
11
public
:
12
BasicPayload
():
m_data0
(0.),
m_data1
(0.),
m_vec
(){
13
}
14
BasicPayload
(
float
d0
,
float
d1,
size_t
vecSize):
m_data0
(d0),
m_data1
(d1),
m_vec
(vecSize,0){
15
for
(
size_t
i
=0;
i
<vecSize;
i
++)
m_vec
[
i
] = d0*
i
+d1;
16
}
17
virtual
~BasicPayload
(){}
18
19
void
print
() {
20
for
(
size_t
i
=0;
i
<10;
i
++ ) {
21
for
(
size_t
j=0;j<10;j++ ){
22
size_t
ind =
i
*10+j;
23
std::cout
<<ind<<
":"
<<
m_vec
[ind]<<
" "
;
24
}
25
std::cout
<<std::endl;
26
}
27
}
28
29
public
:
30
float
m_data0
;
31
float
m_data1
;
32
std::vector<float>
m_vec
;
33
34
COND_SERIALIZABLE
;
35
};
36
37
}
38
39
#endif
cond::BasicPayload::print
void print()
Definition:
BasicPayload.h:19
mps_fire.i
i
Definition:
mps_fire.py:156
cond::BasicPayload::m_vec
std::vector< float > m_vec
Definition:
BasicPayload.h:32
cond::BasicPayload::BasicPayload
BasicPayload(float d0, float d1, size_t vecSize)
Definition:
BasicPayload.h:14
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition:
Serializable.h:38
cond
Definition:
plugin.cc:24
allConversions_cfi.d0
d0
Definition:
allConversions_cfi.py:30
cond::BasicPayload::m_data1
float m_data1
Definition:
BasicPayload.h:31
gather_cfg.cout
cout
Definition:
gather_cfg.py:145
cond::BasicPayload::BasicPayload
BasicPayload()
Definition:
BasicPayload.h:12
Serializable.h
cond::BasicPayload::m_data0
float m_data0
Definition:
BasicPayload.h:30
cond::BasicPayload
Definition:
BasicPayload.h:10
cond::BasicPayload::~BasicPayload
virtual ~BasicPayload()
Definition:
BasicPayload.h:17
Generated for CMSSW Reference Manual by
1.8.11