CMS 3D CMS Logo

L1TUtmAlgorithm.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_L1TUtmAlgorithm_hh
11 #define tmEventSetup_L1TUtmAlgorithm_hh
12 
13 #include <set>
14 #include <string>
15 #include <vector>
17 #include "tmEventSetup/esAlgorithm.hh"
18 
23 public:
25  : name_(),
26  expression_(),
28  rpn_vector_(),
29  index_(),
30  module_id_(),
31  module_index_(),
32  version(0){};
34  std::string expression,
35  std::string expression_in_condition,
36  std::vector<std::string> rpn_vector,
37  unsigned int index,
38  unsigned int module_id,
39  unsigned int module_index,
40  unsigned int ver)
41  : name_(name),
42  expression_(expression),
43  expression_in_condition_(expression_in_condition),
44  rpn_vector_(rpn_vector),
45  index_(index),
46  module_id_(module_id),
47  module_index_(module_index),
48  version(ver){};
49 
50  L1TUtmAlgorithm(const tmeventsetup::esAlgorithm& esAlg)
51  : L1TUtmAlgorithm(esAlg.getName(),
52  esAlg.getExpression(),
54  esAlg.getRpnVector(),
55  esAlg.getIndex(),
56  esAlg.getModuleId(),
57  esAlg.getModuleIndex(),
58  0 //There is no version retrieval in esAlgorithm. However, it seems pretty hard coded to 0
59  ){};
60 
61  virtual ~L1TUtmAlgorithm() = default;
62 
64  void setRpnVector(const std::vector<std::string>& x) { rpn_vector_ = x; };
65 
67  const std::string& getName() const { return name_; };
68 
70  const std::string& getExpression() const { return expression_; };
71 
74 
76  const std::vector<std::string>& getRpnVector() const { return rpn_vector_; };
77 
79  unsigned int getIndex() const { return index_; };
80 
82  unsigned int getModuleId() const { return module_id_; };
83 
85  unsigned int getModuleIndex() const { return module_index_; };
86 
87 protected:
91  std::vector<std::string> rpn_vector_;
92  unsigned int index_;
93  unsigned int module_id_;
94  unsigned int module_index_;
95  unsigned int version;
96 
98 };
99 
100 #endif // tmEventSetup_L1TUtmAlgorithm_hh
unsigned int module_index_
const std::string & getName() const
std::vector< std::string > rpn_vector_
unsigned int getModuleId() const
std::string name_
unsigned int getModuleIndex() const
unsigned int index_
std::string expression_in_condition_
const std::string & getExpression() const
std::string expression_
const std::vector< std::string > & getRpnVector() const
void setRpnVector(const std::vector< std::string > &x)
L1TUtmAlgorithm(const tmeventsetup::esAlgorithm &esAlg)
const std::string & getExpressionInCondition() const
#define COND_SERIALIZABLE
Definition: Serializable.h:39
unsigned int version
unsigned int module_id_
virtual ~L1TUtmAlgorithm()=default
L1TUtmAlgorithm(std::string name, std::string expression, std::string expression_in_condition, std::vector< std::string > rpn_vector, unsigned int index, unsigned int module_id, unsigned int module_index, unsigned int ver)
unsigned int getIndex() const