File indexing completed on 2024-04-06 12:02:27
0001 #ifndef PerformanceWorkingPoint_h
0002 #define PerformanceWorkingPoint_h
0003
0004 #include "CondFormats/Serialization/interface/Serializable.h"
0005
0006 #include "string"
0007
0008 class PerformanceWorkingPoint {
0009 public:
0010 PerformanceWorkingPoint() {}
0011 PerformanceWorkingPoint(float c, std::string s) : cut_(c), dname_(s) {}
0012 float cut() const { return cut_; }
0013 std::string discriminantName() const { return dname_; }
0014 bool cutBased() const {
0015 if (cut_ == -9999)
0016 return false;
0017 return true;
0018 }
0019
0020 private:
0021 float cut_;
0022 std::string dname_;
0023
0024 COND_SERIALIZABLE;
0025 };
0026
0027 #endif