CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Private Member Functions | Friends
cond::BasicPayload Class Reference

#include <BasicPayload.h>

Public Member Functions

 BasicPayload ()
 
 BasicPayload (float d0, float d1, size_t vecSize)
 
void print ()
 
virtual ~BasicPayload ()
 

Public Attributes

float m_data0
 
float m_data1
 
std::vector< float > m_vec
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

Detailed Description

Test class for condition payload

Definition at line 11 of file BasicPayload.h.

Constructor & Destructor Documentation

cond::BasicPayload::BasicPayload ( )
inline

Definition at line 13 of file BasicPayload.h.

13  :m_data0(0.),m_data1(0.),m_vec(){
14  }
std::vector< float > m_vec
Definition: BasicPayload.h:33
cond::BasicPayload::BasicPayload ( float  d0,
float  d1,
size_t  vecSize 
)
inline

Definition at line 15 of file BasicPayload.h.

References mps_fire::i, and m_vec.

15  :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  }
std::vector< float > m_vec
Definition: BasicPayload.h:33
virtual cond::BasicPayload::~BasicPayload ( )
inlinevirtual

Definition at line 18 of file BasicPayload.h.

18 {}

Member Function Documentation

void cond::BasicPayload::print ( void  )
inline

Definition at line 20 of file BasicPayload.h.

References gather_cfg::cout, mps_fire::i, and m_vec.

20  {
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  }
std::vector< float > m_vec
Definition: BasicPayload.h:33
template<class Archive >
void cond::BasicPayload::serialize ( Archive &  ar,
const unsigned int  version 
)
private

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 35 of file BasicPayload.h.

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 35 of file BasicPayload.h.

Member Data Documentation

float cond::BasicPayload::m_data0

Definition at line 31 of file BasicPayload.h.

float cond::BasicPayload::m_data1

Definition at line 32 of file BasicPayload.h.

std::vector<float> cond::BasicPayload::m_vec

Definition at line 33 of file BasicPayload.h.

Referenced by BasicPayload(), and print().