File indexing completed on 2021-02-14 12:51:18
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef tmEventSetup_L1TUtmCut_hh
0011 #define tmEventSetup_L1TUtmCut_hh
0012
0013 #include "CondFormats/L1TObjects/interface/L1TUtmCutValue.h"
0014 #include "CondFormats/Serialization/interface/Serializable.h"
0015
0016 #include <string>
0017
0018
0019
0020
0021 class L1TUtmCut {
0022 public:
0023 L1TUtmCut() : name_(), object_type_(), cut_type_(), minimum_(), maximum_(), data_(), key_(), version(0){};
0024
0025 virtual ~L1TUtmCut() = default;
0026
0027
0028 void setName(const std::string& name) { name_ = name; };
0029
0030
0031 void setObjectType(const int type) { object_type_ = type; };
0032
0033
0034 void setCutType(const int type) { cut_type_ = type; };
0035
0036
0037 void setMinimumValue(const double value) { minimum_.value = value; };
0038
0039
0040 void setMinimumIndex(const unsigned int index) { minimum_.index = index; };
0041
0042
0043 void setMinimum(const L1TUtmCutValue& minimum) { minimum_ = minimum; };
0044
0045
0046 void setMaximumValue(const double value) { maximum_.value = value; };
0047
0048
0049 void setMaximumIndex(const unsigned int index) { maximum_.index = index; };
0050
0051
0052 void setMaximum(const L1TUtmCutValue& maximum) { maximum_ = maximum; };
0053
0054
0055 void setPrecision(const unsigned int precision) {
0056 setMaximumIndex(precision);
0057 setMinimumIndex(precision);
0058 };
0059
0060
0061 const std::string& getName() const { return name_; };
0062
0063
0064 const int getObjectType() const { return object_type_; };
0065
0066
0067 const int getCutType() const { return cut_type_; };
0068
0069
0070 const L1TUtmCutValue& getMinimum() const { return minimum_; };
0071
0072
0073 const L1TUtmCutValue& getMaximum() const { return maximum_; };
0074
0075
0076 const double getMinimumValue() const { return minimum_.value; };
0077
0078
0079 const double getMaximumValue() const { return maximum_.value; };
0080
0081
0082 const unsigned int getMinimumIndex() const { return minimum_.index; };
0083
0084
0085 const unsigned int getMaximumIndex() const { return maximum_.index; };
0086
0087
0088 const std::string& getData() const { return data_; };
0089
0090
0091 const std::string& getKey() const { return key_; };
0092
0093
0094 const unsigned int getPrecision() const { return getMinimumIndex(); };
0095
0096 protected:
0097 std::string name_;
0098 int object_type_;
0099 int cut_type_;
0100 L1TUtmCutValue minimum_;
0101 L1TUtmCutValue maximum_;
0102 std::string data_;
0103 std::string key_;
0104 unsigned int version;
0105 COND_SERIALIZABLE;
0106 };
0107
0108 #endif