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 10 of file BasicPayload.h.

Constructor & Destructor Documentation

cond::BasicPayload::BasicPayload ( )
inline

Definition at line 12 of file BasicPayload.h.

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

Definition at line 14 of file BasicPayload.h.

References mps_fire::i, and m_vec.

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

Definition at line 17 of file BasicPayload.h.

17 {}

Member Function Documentation

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

Definition at line 19 of file BasicPayload.h.

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

19  {
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  }
std::vector< float > m_vec
Definition: BasicPayload.h:32
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 34 of file BasicPayload.h.

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

Definition at line 34 of file BasicPayload.h.

Member Data Documentation

float cond::BasicPayload::m_data0

Definition at line 30 of file BasicPayload.h.

float cond::BasicPayload::m_data1

Definition at line 31 of file BasicPayload.h.

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

Definition at line 32 of file BasicPayload.h.

Referenced by BasicPayload(), and print().