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 //
12 #ifndef tmEventSetup_L1TUtmCut_hh
13 #define tmEventSetup_L1TUtmCut_hh
14 
15 /*====================================================================*
16  * declarations
17  *====================================================================*/
18 /*-----------------------------------------------------------------*
19  * headers
20  *-----------------------------------------------------------------*/
21 #include <string>
23 
25 
26 
27 /*-----------------------------------------------------------------*
28  * constants
29  *-----------------------------------------------------------------*/
30 /* nope */
31 
32 
36 class L1TUtmCut
37 {
38  public:
39  // ctor
41  : name_(), object_type_(), cut_type_(),
42  minimum_(), maximum_(), data_(), key_(), version(0) { };
43 
44  // dtor
45  virtual ~L1TUtmCut() { };
46 
47 
49  void setName(const std::string& name) { name_ = name; };
50 
52  void setObjectType(const int type) { object_type_ = type; };
53 
55  void setCutType(const int type) { cut_type_ = type; };
56 
58  void setMinimumValue(const double value) { minimum_.value = value; };
59 
61  void setMinimumIndex(const unsigned int index) { minimum_.index = index; };
62 
64  void setMinimum(const L1TUtmCutValue& minimum) { minimum_ = minimum; };
65 
67  void setMaximumValue(const double value) { maximum_.value = value; };
68 
70  void setMaximumIndex(const unsigned int index) { maximum_.index = index; };
71 
73  void setMaximum(const L1TUtmCutValue& maximum) { maximum_ = maximum; };
74 
76  void setPrecision(const unsigned int precision) { setMaximumIndex(precision); setMinimumIndex(precision); }; // HACK
77 
79  const std::string& getName() const { return name_; };
80 
82  const int getObjectType() const { return object_type_; };
83 
85  const int getCutType() const { return cut_type_; };
86 
88  const L1TUtmCutValue& getMinimum() const { return minimum_; };
89 
91  const L1TUtmCutValue& getMaximum() const { return maximum_; };
92 
94  const double getMinimumValue() const { return minimum_.value; };
95 
97  const double getMaximumValue() const { return maximum_.value; };
98 
100  const unsigned int getMinimumIndex() const { return minimum_.index; };
101 
103  const unsigned int getMaximumIndex() const { return maximum_.index; };
104 
106  const std::string& getData() const { return data_; };
107 
109  const std::string& getKey() const { return key_; };
110 
112  const unsigned int getPrecision() const { return getMinimumIndex(); }; // HACK
113 
114 
115  protected:
118  int cut_type_;
123  unsigned int version;
125 };
126 
127 #endif // tmEventSetup_L1TUtmCut_hh
128 /* eof */
void setPrecision(const unsigned int precision)
Definition: L1TUtmCut.h:76
const unsigned int getMaximumIndex() const
Definition: L1TUtmCut.h:103
type
Definition: HCALResponse.h:21
void setMaximum(const L1TUtmCutValue &maximum)
Definition: L1TUtmCut.h:73
unsigned int version
Definition: L1TUtmCut.h:123
const int getObjectType() const
Definition: L1TUtmCut.h:82
L1TUtmCutValue maximum_
Definition: L1TUtmCut.h:120
unsigned int index
int cut_type_
Definition: L1TUtmCut.h:118
void setCutType(const int type)
Definition: L1TUtmCut.h:55
const int getCutType() const
Definition: L1TUtmCut.h:85
void setMaximumIndex(const unsigned int index)
Definition: L1TUtmCut.h:70
void setMinimum(const L1TUtmCutValue &minimum)
Definition: L1TUtmCut.h:64
void setMaximumValue(const double value)
Definition: L1TUtmCut.h:67
L1TUtmCut()
Definition: L1TUtmCut.h:40
void setMinimumValue(const double value)
Definition: L1TUtmCut.h:58
void setMinimumIndex(const unsigned int index)
Definition: L1TUtmCut.h:61
const std::string & getData() const
Definition: L1TUtmCut.h:106
const std::string & getKey() const
Definition: L1TUtmCut.h:109
const std::string & getName() const
Definition: L1TUtmCut.h:79
const unsigned int getMinimumIndex() const
Definition: L1TUtmCut.h:100
const L1TUtmCutValue & getMinimum() const
Definition: L1TUtmCut.h:88
L1TUtmCutValue minimum_
Definition: L1TUtmCut.h:119
Definition: value.py:1
const unsigned int getPrecision() const
Definition: L1TUtmCut.h:112
int object_type_
Definition: L1TUtmCut.h:117
const double getMaximumValue() const
Definition: L1TUtmCut.h:97
std::string name_
Definition: L1TUtmCut.h:112
void setObjectType(const int type)
Definition: L1TUtmCut.h:52
void setName(const std::string &name)
Definition: L1TUtmCut.h:49
#define COND_SERIALIZABLE
Definition: Serializable.h:38
const L1TUtmCutValue & getMaximum() const
Definition: L1TUtmCut.h:91
virtual ~L1TUtmCut()
Definition: L1TUtmCut.h:45
const double getMinimumValue() const
Definition: L1TUtmCut.h:94
std::string key_
Definition: L1TUtmCut.h:122
std::string data_
Definition: L1TUtmCut.h:121