CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_5/src/CondFormats/PhysicsToolsObjects/src/PhysicsPerformancePayload.cc

Go to the documentation of this file.
00001 #include "CondFormats/PhysicsToolsObjects/interface/PhysicsPerformancePayload.h"
00002 
00003 //#include <iostream>
00004 
00005 int PhysicsPerformancePayload::nRows() const {
00006   return table_.size()/stride_;
00007 }
00008 
00009 PhysicsPerformancePayload::Row PhysicsPerformancePayload::getRow(int n) const{
00010   Row temp;
00011   copy (table_.begin()+(n*stride_) ,table_.begin()+(n+1)*stride_, back_inserter(temp));
00012   return temp;
00013 }
00014 
00015 PhysicsPerformancePayload::PhysicsPerformancePayload(int stride, std::vector<float> table) : stride_(stride), 
00016                                                                                                                   table_(table)
00017 {}
00018 
00019 
00020 #include "FWCore/Utilities/interface/typelookup.h"
00021 
00022 TYPELOOKUP_DATA_REG(PhysicsPerformancePayload);