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 "tmEventSetup/esCut.hh"
17 
18 #include <string>
19 
23 class L1TUtmCut {
24 public:
27  int object_type,
28  int cut_type,
29  L1TUtmCutValue minimum,
30  L1TUtmCutValue maximum,
33  unsigned int vers)
34  : name_(name),
35  object_type_(object_type),
37  minimum_(minimum),
38  maximum_(maximum),
39  data_(data),
40  key_(key),
41  version(vers) {}
42 
43  L1TUtmCut(const tmeventsetup::esCut& esC)
44  : L1TUtmCut(esC.getName(),
45  esC.getObjectType(),
46  esC.getCutType(),
49  esC.getData(),
50  esC.getKey(),
51  0) {};
52 
53  virtual ~L1TUtmCut() = default;
54 
56  void setName(const std::string& name) { name_ = name; };
57 
59  void setObjectType(const int type) { object_type_ = type; };
60 
62  void setCutType(const int type) { cut_type_ = type; };
63 
65  void setMinimumValue(const double value) { minimum_.value = value; };
66 
68  void setMinimumIndex(const unsigned int index) { minimum_.index = index; };
69 
71  void setMinimum(const L1TUtmCutValue& minimum) { minimum_ = minimum; };
72 
74  void setMaximumValue(const double value) { maximum_.value = value; };
75 
77  void setMaximumIndex(const unsigned int index) { maximum_.index = index; };
78 
80  void setMaximum(const L1TUtmCutValue& maximum) { maximum_ = maximum; };
81 
83  void setPrecision(const unsigned int precision) {
86  }; // HACK
87 
89  const std::string& getName() const { return name_; };
90 
92  const int getObjectType() const { return object_type_; };
93 
95  const int getCutType() const { return cut_type_; };
96 
98  const L1TUtmCutValue& getMinimum() const { return minimum_; };
99 
101  const L1TUtmCutValue& getMaximum() const { return maximum_; };
102 
104  const double getMinimumValue() const { return minimum_.value; };
105 
107  const double getMaximumValue() const { return maximum_.value; };
108 
110  const unsigned int getMinimumIndex() const { return minimum_.index; };
111 
113  const unsigned int getMaximumIndex() const { return maximum_.index; };
114 
116  const std::string& getData() const { return data_; };
117 
119  const std::string& getKey() const { return key_; };
120 
122  const unsigned int getPrecision() const { return getMinimumIndex(); }; // HACK
123 
124 protected:
127  int cut_type_;
132  unsigned int version;
134 };
135 
136 #endif // tmEventSetup_L1TUtmCut_hh
void setPrecision(const unsigned int precision)
Definition: L1TUtmCut.h:83
void setMaximum(const L1TUtmCutValue &maximum)
Definition: L1TUtmCut.h:80
unsigned int version
Definition: L1TUtmCut.h:132
L1TUtmCut(const tmeventsetup::esCut &esC)
Definition: L1TUtmCut.h:43
L1TUtmCutValue maximum_
Definition: L1TUtmCut.h:129
unsigned int index
int cut_type_
Definition: L1TUtmCut.h:127
virtual ~L1TUtmCut()=default
void setCutType(const int type)
Definition: L1TUtmCut.h:62
void setMaximumIndex(const unsigned int index)
Definition: L1TUtmCut.h:77
const unsigned int getMaximumIndex() const
Definition: L1TUtmCut.h:113
void setMinimum(const L1TUtmCutValue &minimum)
Definition: L1TUtmCut.h:71
const double getMinimumValue() const
Definition: L1TUtmCut.h:104
const int getObjectType() const
Definition: L1TUtmCut.h:92
void setMaximumValue(const double value)
Definition: L1TUtmCut.h:74
L1TUtmCut()
Definition: L1TUtmCut.h:25
void setMinimumValue(const double value)
Definition: L1TUtmCut.h:65
void setMinimumIndex(const unsigned int index)
Definition: L1TUtmCut.h:68
const double getMaximumValue() const
Definition: L1TUtmCut.h:107
const L1TUtmCutValue & getMinimum() const
Definition: L1TUtmCut.h:98
key
prepare the HTCondor submission files and eventually submit them
L1TUtmCutValue minimum_
Definition: L1TUtmCut.h:128
Definition: value.py:1
const L1TUtmCutValue & getMaximum() const
Definition: L1TUtmCut.h:101
int object_type_
Definition: L1TUtmCut.h:126
const std::string & getKey() const
Definition: L1TUtmCut.h:119
const std::string & getName() const
Definition: L1TUtmCut.h:89
std::string name_
Definition: L1TUtmCut.h:122
const std::string & getData() const
Definition: L1TUtmCut.h:116
const int getCutType() const
Definition: L1TUtmCut.h:95
void setObjectType(const int type)
Definition: L1TUtmCut.h:59
void setName(const std::string &name)
Definition: L1TUtmCut.h:56
#define COND_SERIALIZABLE
Definition: Serializable.h:39
const unsigned int getMinimumIndex() const
Definition: L1TUtmCut.h:110
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80
const unsigned int getPrecision() const
Definition: L1TUtmCut.h:122
std::string key_
Definition: L1TUtmCut.h:131
std::string data_
Definition: L1TUtmCut.h:130
L1TUtmCut(std::string name, int object_type, int cut_type, L1TUtmCutValue minimum, L1TUtmCutValue maximum, std::string data, std::string key, unsigned int vers)
Definition: L1TUtmCut.h:26