PerformancePayload

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
#ifndef PerformancePayload_h
#define PerformancePayload_h

#include "CondFormats/Serialization/interface/Serializable.h"

//#include "CondFormats/PerformanceDBObjects/interface/PhysicsPerformancePayload.h"
#include "CondFormats/PhysicsToolsObjects/interface/BinningPointByMap.h"
#include "CondFormats/PhysicsToolsObjects/interface/PerformanceResult.h"

#include <string>
#include <vector>
#include <iostream>

class PerformancePayload
// : public PhysicsPerformancePayload
{
public:
  static const float InvalidResult;

  //    PerformancePayload(int stride_, std::string columns_,std::vector<float> table) : PhysicsPerformancePayload(stride_, columns_, table) {}

  PerformancePayload() {}
  virtual ~PerformancePayload() {}

  virtual void initialize() {}

  virtual float getResult(PerformanceResult::ResultType,
                          const BinningPointByMap&) const = 0;  // gets from the full payload
  virtual bool isInPayload(PerformanceResult::ResultType, const BinningPointByMap&) const = 0;

protected:
  COND_SERIALIZABLE;
};

#endif