Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:02:26

0001 #ifndef PerformancePayload_h
0002 #define PerformancePayload_h
0003 
0004 #include "CondFormats/Serialization/interface/Serializable.h"
0005 
0006 //#include "CondFormats/PerformanceDBObjects/interface/PhysicsPerformancePayload.h"
0007 #include "CondFormats/PhysicsToolsObjects/interface/BinningPointByMap.h"
0008 #include "CondFormats/PhysicsToolsObjects/interface/PerformanceResult.h"
0009 
0010 #include <string>
0011 #include <vector>
0012 #include <iostream>
0013 
0014 class PerformancePayload
0015 // : public PhysicsPerformancePayload
0016 {
0017 public:
0018   static const float InvalidResult;
0019 
0020   //    PerformancePayload(int stride_, std::string columns_,std::vector<float> table) : PhysicsPerformancePayload(stride_, columns_, table) {}
0021 
0022   PerformancePayload() {}
0023   virtual ~PerformancePayload(){};
0024 
0025   virtual void initialize() {}
0026 
0027   virtual float getResult(PerformanceResult::ResultType,
0028                           const BinningPointByMap&) const = 0;  // gets from the full payload
0029   virtual bool isInPayload(PerformanceResult::ResultType, const BinningPointByMap&) const = 0;
0030 
0031 protected:
0032   COND_SERIALIZABLE;
0033 };
0034 
0035 #endif