CMS 3D CMS Logo

L1TUtmObject.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_L1TUtmObject_hh
13 #define tmEventSetup_L1TUtmObject_hh
14 
15 /*====================================================================*
16  * declarations
17  *====================================================================*/
18 /*-----------------------------------------------------------------*
19  * headers
20  *-----------------------------------------------------------------*/
21 #include <string>
22 #include <vector>
23 #include <limits>
25 
27 
28 /*-----------------------------------------------------------------*
29  * constants
30  *-----------------------------------------------------------------*/
31 /* nope */
32 
36 class L1TUtmObject {
37 public:
38  // ctor
40  : name_(),
41  type_(),
43  bx_offset_(),
44  threshold_(),
46  ext_channel_id_(std::numeric_limits<unsigned int>::max()),
47  cuts_(),
48  version(0){};
49 
50  // dtor
51  virtual ~L1TUtmObject(){};
52 
54  void setName(const std::string& x) { name_ = x; };
55 
57  void setType(const int x) { type_ = x; };
58 
61 
63  void setBxOffset(const int x) { bx_offset_ = x; };
64 
66  void setThreshold(double x) { threshold_ = x; };
67 
70 
72  void setExternalChannelId(const unsigned int x) { ext_channel_id_ = x; };
73 
75  void setCuts(const std::vector<L1TUtmCut>& x) { cuts_ = x; };
76 
78  const std::string& getName() const { return name_; };
79 
81  const int getType() const { return type_; };
82 
84  const int getComparisonOperator() const { return comparison_operator_; };
85 
87  const int getBxOffset() const { return bx_offset_; };
88 
90  const double getThreshold() const { return threshold_; };
91 
94 
96  const unsigned int getExternalChannelId() const { return ext_channel_id_; };
97 
99  const std::vector<L1TUtmCut>& getCuts() const { return cuts_; };
100 
101 protected:
103  int type_;
106  double threshold_;
108  unsigned int ext_channel_id_;
109  std::vector<L1TUtmCut> cuts_;
110  unsigned int version;
112 };
113 
114 #endif // tmEventSetup_L1TUtmObject_hh
115 /* eof */
void setComparisonOperator(const int x)
Definition: L1TUtmObject.h:60
void setBxOffset(const int x)
Definition: L1TUtmObject.h:63
std::vector< L1TUtmCut > cuts_
Definition: L1TUtmObject.h:109
void setType(const int x)
Definition: L1TUtmObject.h:57
void setCuts(const std::vector< L1TUtmCut > &x)
Definition: L1TUtmObject.h:75
void setExternalChannelId(const unsigned int x)
Definition: L1TUtmObject.h:72
void setThreshold(double x)
Definition: L1TUtmObject.h:66
const std::vector< L1TUtmCut > & getCuts() const
Definition: L1TUtmObject.h:99
virtual ~L1TUtmObject()
Definition: L1TUtmObject.h:51
const std::string & getExternalSignalName() const
Definition: L1TUtmObject.h:93
const unsigned int getExternalChannelId() const
Definition: L1TUtmObject.h:96
void setExternalSignalName(const std::string &x)
Definition: L1TUtmObject.h:69
int comparison_operator_
Definition: L1TUtmObject.h:104
void setName(const std::string &x)
Definition: L1TUtmObject.h:54
#define COND_SERIALIZABLE
Definition: Serializable.h:38
const int getType() const
Definition: L1TUtmObject.h:81
const double getThreshold() const
Definition: L1TUtmObject.h:90
const int getComparisonOperator() const
Definition: L1TUtmObject.h:84
const std::string & getName() const
Definition: L1TUtmObject.h:78
std::string ext_signal_name_
Definition: L1TUtmObject.h:107
double threshold_
Definition: L1TUtmObject.h:106
unsigned int version
Definition: L1TUtmObject.h:110
std::string name_
Definition: L1TUtmObject.h:99
unsigned int ext_channel_id_
Definition: L1TUtmObject.h:108
const int getBxOffset() const
Definition: L1TUtmObject.h:87