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

◆ BasicPayload() [1/2]

cond::BasicPayload::BasicPayload ( )
inline

Definition at line 13 of file BasicPayload.h.

13 : m_data0(0.), m_data1(0.), m_vec() {}
std::vector< float > m_vec
Definition: BasicPayload.h:33

◆ BasicPayload() [2/2]

cond::BasicPayload::BasicPayload ( float  d0,
float  d1,
size_t  vecSize 
)
inline

Definition at line 14 of file BasicPayload.h.

References d0, d1, 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++)
16  m_vec[i] = d0 * i + d1;
17  }
std::vector< float > m_vec
Definition: BasicPayload.h:33
static constexpr float d0
static constexpr float d1

◆ ~BasicPayload()

virtual cond::BasicPayload::~BasicPayload ( )
inlinevirtual

Definition at line 18 of file BasicPayload.h.

18 {}

Member Function Documentation

◆ print()

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

Definition at line 20 of file BasicPayload.h.

References gather_cfg::cout, mps_fire::i, dqmiolumiharvest::j, 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

◆ serialize()

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

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 35 of file BasicPayload.h.

◆ cond::serialization::access

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

Definition at line 35 of file BasicPayload.h.

Member Data Documentation

◆ m_data0

float cond::BasicPayload::m_data0

Definition at line 31 of file BasicPayload.h.

◆ m_data1

float cond::BasicPayload::m_data1

Definition at line 32 of file BasicPayload.h.

◆ m_vec

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

Definition at line 33 of file BasicPayload.h.

Referenced by BasicPayload(), and print().