CMS 3D CMS Logo

L1TUtmCut.h
Go to the documentation of this file.
1 //
2 // NOTE: This file was automatically generated from UTM library via import_utm.pl
3 // DIRECT EDITS MIGHT BE LOST.
4 //
10 #ifndef tmEventSetup_L1TUtmCut_hh
11 #define tmEventSetup_L1TUtmCut_hh
12 
15 
16 #include <string>
17 
21 class L1TUtmCut {
22 public:
24 
25  virtual ~L1TUtmCut() = default;
26 
28  void setName(const std::string& name) { name_ = name; };
29 
31  void setObjectType(const int type) { object_type_ = type; };
32 
34  void setCutType(const int type) { cut_type_ = type; };
35 
37  void setMinimumValue(const double value) { minimum_.value = value; };
38 
40  void setMinimumIndex(const unsigned int index) { minimum_.index = index; };
41 
43  void setMinimum(const L1TUtmCutValue& minimum) { minimum_ = minimum; };
44 
46  void setMaximumValue(const double value) { maximum_.value = value; };
47 
49  void setMaximumIndex(const unsigned int index) { maximum_.index = index; };
50 
52  void setMaximum(const L1TUtmCutValue& maximum) { maximum_ = maximum; };
53 
55  void setPrecision(const unsigned int precision) {
58  }; // HACK
59 
61  const std::string& getName() const { return name_; };
62 
64  const int getObjectType() const { return object_type_; };
65 
67  const int getCutType() const { return cut_type_; };
68 
70  const L1TUtmCutValue& getMinimum() const { return minimum_; };
71 
73  const L1TUtmCutValue& getMaximum() const { return maximum_; };
74 
76  const double getMinimumValue() const { return minimum_.value; };
77 
79  const double getMaximumValue() const { return maximum_.value; };
80 
82  const unsigned int getMinimumIndex() const { return minimum_.index; };
83 
85  const unsigned int getMaximumIndex() const { return maximum_.index; };
86 
88  const std::string& getData() const { return data_; };
89 
91  const std::string& getKey() const { return key_; };
92 
94  const unsigned int getPrecision() const { return getMinimumIndex(); }; // HACK
95 
96 protected:
99  int cut_type_;
104  unsigned int version;
106 };
107 
108 #endif // tmEventSetup_L1TUtmCut_hh
void setPrecision(const unsigned int precision)
Definition: L1TUtmCut.h:55
void setMaximum(const L1TUtmCutValue &maximum)
Definition: L1TUtmCut.h:52
unsigned int version
Definition: L1TUtmCut.h:104
L1TUtmCutValue maximum_
Definition: L1TUtmCut.h:101
unsigned int index
int cut_type_
Definition: L1TUtmCut.h:99
virtual ~L1TUtmCut()=default
void setCutType(const int type)
Definition: L1TUtmCut.h:34
void setMaximumIndex(const unsigned int index)
Definition: L1TUtmCut.h:49
const unsigned int getMaximumIndex() const
Definition: L1TUtmCut.h:85
void setMinimum(const L1TUtmCutValue &minimum)
Definition: L1TUtmCut.h:43
const double getMinimumValue() const
Definition: L1TUtmCut.h:76
const int getObjectType() const
Definition: L1TUtmCut.h:64
void setMaximumValue(const double value)
Definition: L1TUtmCut.h:46
L1TUtmCut()
Definition: L1TUtmCut.h:23
void setMinimumValue(const double value)
Definition: L1TUtmCut.h:37
void setMinimumIndex(const unsigned int index)
Definition: L1TUtmCut.h:40
const double getMaximumValue() const
Definition: L1TUtmCut.h:79
const L1TUtmCutValue & getMinimum() const
Definition: L1TUtmCut.h:70
L1TUtmCutValue minimum_
Definition: L1TUtmCut.h:100
Definition: value.py:1
const L1TUtmCutValue & getMaximum() const
Definition: L1TUtmCut.h:73
int object_type_
Definition: L1TUtmCut.h:98
const std::string & getKey() const
Definition: L1TUtmCut.h:91
const std::string & getName() const
Definition: L1TUtmCut.h:61
std::string name_
Definition: L1TUtmCut.h:94
const std::string & getData() const
Definition: L1TUtmCut.h:88
const int getCutType() const
Definition: L1TUtmCut.h:67
void setObjectType(const int type)
Definition: L1TUtmCut.h:31
void setName(const std::string &name)
Definition: L1TUtmCut.h:28
#define COND_SERIALIZABLE
Definition: Serializable.h:39
const unsigned int getMinimumIndex() const
Definition: L1TUtmCut.h:82
const unsigned int getPrecision() const
Definition: L1TUtmCut.h:94
std::string key_
Definition: L1TUtmCut.h:103
std::string data_
Definition: L1TUtmCut.h:102