File indexing completed on 2023-03-17 10:47:20
0001 #include "CondFormats/PhysicsToolsObjects/interface/PhysicsPerformancePayload.h"
0002
0003
0004
0005 int PhysicsPerformancePayload::nRows() const { return table_.size() / stride_; }
0006
0007 PhysicsPerformancePayload::Row PhysicsPerformancePayload::getRow(int n) const {
0008 Row temp;
0009 copy(table_.begin() + (n * stride_), table_.begin() + (n + 1) * stride_, back_inserter(temp));
0010 return temp;
0011 }
0012
0013 PhysicsPerformancePayload::PhysicsPerformancePayload(int stride, const std::vector<float>& table)
0014 : stride_(stride), table_(table) {}
0015
0016 #include "FWCore/Utilities/interface/typelookup.h"
0017
0018 TYPELOOKUP_DATA_REG(PhysicsPerformancePayload);