CMS 3D CMS Logo

BasicPayload.h
Go to the documentation of this file.
1 #ifndef Cond_BasicPayload_h
2 #define Cond_BasicPayload_h
3 
5 
6 namespace cond {
7 
10  class BasicPayload {
11  public:
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 
35 };
36 
37 }
38 
39 #endif
std::vector< float > m_vec
Definition: BasicPayload.h:32
BasicPayload(float d0, float d1, size_t vecSize)
Definition: BasicPayload.h:14
#define COND_SERIALIZABLE
Definition: Serializable.h:38
Definition: plugin.cc:24
virtual ~BasicPayload()
Definition: BasicPayload.h:17