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
#include <iostream>
6
7
namespace
cond
{
8
11
class
BasicPayload
{
12
public
:
13
BasicPayload
():
m_data0
(0.),
m_data1
(0.),
m_vec
(){
14
}
15
BasicPayload
(
float
d0
,
float
d1,
size_t
vecSize):
m_data0
(d0),
m_data1
(d1),
m_vec
(vecSize,0){
16
for
(
size_t
i
=0;
i
<vecSize;
i
++)
m_vec
[
i
] = d0*
i
+d1;
17
}
18
virtual
~BasicPayload
(){}
19
20
void
print
() {
21
for
(
size_t
i
=0;
i
<10;
i
++ ) {
22
for
(
size_t
j=0;j<10;j++ ){
23
size_t
ind =
i
*10+j;
24
std::cout
<<ind<<
":"
<<
m_vec
[ind]<<
" "
;
25
}
26
std::cout
<<std::endl;
27
}
28
}
29
30
public
:
31
float
m_data0
;
32
float
m_data1
;
33
std::vector<float>
m_vec
;
34
35
COND_SERIALIZABLE
;
36
};
37
38
}
39
40
#endif
cond::BasicPayload::print
void print()
Definition:
BasicPayload.h:20
mps_fire.i
i
Definition:
mps_fire.py:269
cond::BasicPayload::m_vec
std::vector< float > m_vec
Definition:
BasicPayload.h:33
cond::BasicPayload::BasicPayload
BasicPayload(float d0, float d1, size_t vecSize)
Definition:
BasicPayload.h:15
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:32
gather_cfg.cout
cout
Definition:
gather_cfg.py:145
cond::BasicPayload::BasicPayload
BasicPayload()
Definition:
BasicPayload.h:13
Serializable.h
cond::BasicPayload::m_data0
float m_data0
Definition:
BasicPayload.h:31
cond::BasicPayload
Definition:
BasicPayload.h:11
cond::BasicPayload::~BasicPayload
virtual ~BasicPayload()
Definition:
BasicPayload.h:18
Generated for CMSSW Reference Manual by
1.8.11