File indexing completed on 2024-04-06 12:02:27
0001 #ifndef PhysicsPerformancePayload_h
0002 #define PhysicsPerformancePayload_h
0003
0004
0005
0006
0007
0008
0009 #include "CondFormats/Serialization/interface/Serializable.h"
0010
0011 #include <vector>
0012
0013 class PhysicsPerformancePayload {
0014 public:
0015 PhysicsPerformancePayload() {}
0016 PhysicsPerformancePayload(int stride, const std::vector<float>& table);
0017 int stride() { return stride_; }
0018
0019 typedef std::vector<float> Row;
0020
0021 Row getRow(int n) const;
0022 int nRows() const;
0023
0024 std::vector<float> payload() const { return table_; }
0025
0026 virtual ~PhysicsPerformancePayload() {}
0027
0028 protected:
0029 int stride_;
0030 std::vector<float> table_;
0031
0032 COND_SERIALIZABLE;
0033 };
0034
0035 #endif