CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Protected Attributes | Private Member Functions | Friends
PhysicsPerformancePayload Class Reference

#include <PhysicsPerformancePayload.h>

Public Types

typedef std::vector< float > Row
 

Public Member Functions

Row getRow (int n) const
 
int nRows () const
 
std::vector< float > payload () const
 
 PhysicsPerformancePayload ()
 
 PhysicsPerformancePayload (int stride, const std::vector< float > &table)
 
int stride ()
 
virtual ~PhysicsPerformancePayload ()
 

Protected Attributes

int stride_
 
std::vector< float > table_
 

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

Definition at line 13 of file PhysicsPerformancePayload.h.

Member Typedef Documentation

◆ Row

typedef std::vector<float> PhysicsPerformancePayload::Row

Definition at line 19 of file PhysicsPerformancePayload.h.

Constructor & Destructor Documentation

◆ PhysicsPerformancePayload() [1/2]

PhysicsPerformancePayload::PhysicsPerformancePayload ( )
inline

Definition at line 15 of file PhysicsPerformancePayload.h.

15 {}

◆ PhysicsPerformancePayload() [2/2]

PhysicsPerformancePayload::PhysicsPerformancePayload ( int  stride,
const std::vector< float > &  table 
)

Definition at line 13 of file PhysicsPerformancePayload.cc.

14  : stride_(stride), table_(table) {}

◆ ~PhysicsPerformancePayload()

virtual PhysicsPerformancePayload::~PhysicsPerformancePayload ( )
inlinevirtual

Definition at line 26 of file PhysicsPerformancePayload.h.

26 {}

Member Function Documentation

◆ getRow()

PhysicsPerformancePayload::Row PhysicsPerformancePayload::getRow ( int  n) const

Definition at line 7 of file PhysicsPerformancePayload.cc.

7  {
8  Row temp;
9  copy(table_.begin() + (n * stride_), table_.begin() + (n + 1) * stride_, back_inserter(temp));
10  return temp;
11 }

References filterCSVwithJSON::copy, dqmiodumpmetadata::n, stride_, table_, and groupFilesInBlocks::temp.

Referenced by PerformancePayloadFromTable::getResult(), and PerformancePayloadFromTable::isInPayload().

◆ nRows()

int PhysicsPerformancePayload::nRows ( ) const

Definition at line 5 of file PhysicsPerformancePayload.cc.

5 { return table_.size() / stride_; }

References stride_, and table_.

Referenced by PerformancePayloadFromTable::getResult(), and PerformancePayloadFromTable::isInPayload().

◆ payload()

std::vector<float> PhysicsPerformancePayload::payload ( ) const
inline

Definition at line 24 of file PhysicsPerformancePayload.h.

24 { return table_; }

References table_.

◆ serialize()

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

◆ stride()

int PhysicsPerformancePayload::stride ( )
inline

Definition at line 17 of file PhysicsPerformancePayload.h.

17 { return stride_; }

References stride_.

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 32 of file PhysicsPerformancePayload.h.

◆ cond::serialization::access

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

Definition at line 32 of file PhysicsPerformancePayload.h.

Member Data Documentation

◆ stride_

int PhysicsPerformancePayload::stride_
protected

Definition at line 29 of file PhysicsPerformancePayload.h.

Referenced by getRow(), nRows(), and stride().

◆ table_

std::vector<float> PhysicsPerformancePayload::table_
protected

Definition at line 30 of file PhysicsPerformancePayload.h.

Referenced by getRow(), nRows(), and payload().

PhysicsPerformancePayload::table_
std::vector< float > table_
Definition: PhysicsPerformancePayload.h:30
PhysicsPerformancePayload::Row
std::vector< float > Row
Definition: PhysicsPerformancePayload.h:19
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
filterCSVwithJSON.copy
copy
Definition: filterCSVwithJSON.py:36
groupFilesInBlocks.temp
list temp
Definition: groupFilesInBlocks.py:142
PhysicsPerformancePayload::stride
int stride()
Definition: PhysicsPerformancePayload.h:17
PhysicsPerformancePayload::stride_
int stride_
Definition: PhysicsPerformancePayload.h:29
TableParser.table
table
Definition: TableParser.py:111