CMS 3D CMS Logo

Public Types | Public Member Functions | Protected Attributes

PhysicsPerformancePayload Class Reference

#include <PhysicsPerformancePayload.h>

List of all members.

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, std::vector< float > table)
int stride ()
virtual ~PhysicsPerformancePayload ()

Protected Attributes

int stride_
std::vector< float > table_

Detailed Description

Definition at line 11 of file PhysicsPerformancePayload.h.


Member Typedef Documentation

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

Definition at line 18 of file PhysicsPerformancePayload.h.


Constructor & Destructor Documentation

PhysicsPerformancePayload::PhysicsPerformancePayload ( ) [inline]

Definition at line 14 of file PhysicsPerformancePayload.h.

{}
PhysicsPerformancePayload::PhysicsPerformancePayload ( int  stride,
std::vector< float >  table 
)

Definition at line 15 of file PhysicsPerformancePayload.cc.

virtual PhysicsPerformancePayload::~PhysicsPerformancePayload ( ) [inline, virtual]

Definition at line 26 of file PhysicsPerformancePayload.h.

{}

Member Function Documentation

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

Definition at line 9 of file PhysicsPerformancePayload.cc.

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

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

                                                                         {
  Row temp;
  copy (table_.begin()+(n*stride_) ,table_.begin()+(n+1)*stride_, back_inserter(temp));
  return temp;
}
int PhysicsPerformancePayload::nRows ( ) const

Definition at line 5 of file PhysicsPerformancePayload.cc.

References stride_, and table_.

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

                                           {
  return table_.size()/stride_;
}
std::vector<float> PhysicsPerformancePayload::payload ( ) const [inline]

Definition at line 23 of file PhysicsPerformancePayload.h.

References table_.

{return table_;}
int PhysicsPerformancePayload::stride ( ) [inline]

Definition at line 16 of file PhysicsPerformancePayload.h.

References stride_.

{return stride_;}

Member Data Documentation

Definition at line 30 of file PhysicsPerformancePayload.h.

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

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

Definition at line 31 of file PhysicsPerformancePayload.h.

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