CMS 3D CMS Logo

L1TUtmTriggerMenu.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 //
11 #ifndef tmEventSetup_L1TUtmTriggerMenu_hh
12 #define tmEventSetup_L1TUtmTriggerMenu_hh
13 
18 
19 #include "tmEventSetup/esTriggerMenu.hh"
20 
21 #include <map>
22 #include <string>
23 
28 public:
30  : algorithm_map_(),
32  scale_map_(),
33  external_map_(),
35  name_(),
36  version_(),
37  comment_(),
38  datetime_(),
41  n_modules_(),
42  version(0){};
43  L1TUtmTriggerMenu(std::map<std::string, L1TUtmAlgorithm> algorithm_map,
44  std::map<std::string, L1TUtmCondition> condition_map,
45  std::map<std::string, L1TUtmScale> scale_map,
47  std::string ver_s,
48  std::string comment,
49  std::string datetime,
50  std::string uuid_firmware,
51  std::string scale_set_name,
52  unsigned int n_modules,
53  unsigned int ver_i)
54  : algorithm_map_(algorithm_map),
55  condition_map_(condition_map),
56  scale_map_(scale_map),
57  external_map_(),
59  name_(name),
60  version_(ver_s),
61  comment_(comment),
62  datetime_(datetime),
63  uuid_firmware_(uuid_firmware),
64  scale_set_name_(scale_set_name),
65  n_modules_(n_modules),
66  version(ver_i){};
67 
68  L1TUtmTriggerMenu(const tmeventsetup::esTriggerMenu& esMenu)
69  : external_map_(), //These are null to my best knowledge
70  token_to_condition_(), //These are null to my best knowledge
71  name_(esMenu.getName()),
72  version_(esMenu.getVersion()),
73  comment_(esMenu.getComment()),
74  datetime_(esMenu.getDatetime()),
77  n_modules_(esMenu.getNmodules()),
78  version(0) {
79  for (const auto& it : esMenu.getAlgorithmMap())
80  algorithm_map_.emplace(std::make_pair(it.first, L1TUtmAlgorithm(it.second)));
81  for (const auto& it : esMenu.getConditionMap())
82  condition_map_.emplace(std::make_pair(it.first, L1TUtmCondition(it.second)));
83  for (const auto& it : esMenu.getScaleMap())
84  scale_map_.emplace(std::make_pair(it.first, L1TUtmScale(it.second)));
85  };
86 
87  virtual ~L1TUtmTriggerMenu() = default;
88 
93  const std::map<std::string, L1TUtmAlgorithm>& getAlgorithmMap() const { return algorithm_map_; };
94 
99  const std::map<std::string, L1TUtmCondition>& getConditionMap() const { return condition_map_; };
100 
105  const std::map<std::string, L1TUtmScale>& getScaleMap() const { return scale_map_; };
106 
111  const std::string& getName() const { return name_; };
112 
117  const std::string& getVersion() const { return version_; };
118 
123  const std::string& getComment() const { return comment_; };
124 
129  const std::string& getDatetime() const { return datetime_; };
130 
135  const std::string& getFirmwareUuid() const { return uuid_firmware_; };
136 
141  const unsigned long getFirmwareUuidHashed() const;
142 
147  const std::string& getScaleSetName() const { return scale_set_name_; };
148 
153  const unsigned int getNmodules() const { return n_modules_; };
154 
159  void setName(const std::string& value) { name_ = value; };
160 
166 
172 
178 
184 
190 
195  void setNmodules(const unsigned int value) { n_modules_ = value; };
196 
201  static unsigned long murmurHashNeutral2(const void* key, int len, unsigned int seed);
202 
203 protected:
204  std::map<std::string, L1TUtmAlgorithm> algorithm_map_;
205  std::map<std::string, L1TUtmCondition> condition_map_;
206  std::map<std::string, L1TUtmScale> scale_map_;
207  std::map<std::string, unsigned int> external_map_;
208  std::map<std::string, std::string>
216  unsigned int n_modules_;
217  unsigned int version;
219 };
220 
221 #endif // tmEventSetup_L1TUtmTriggerMenu_hh
const unsigned int getNmodules() const
void setDatetime(const std::string &value)
const std::string & getName() const
const std::string & getComment() const
std::map< std::string, L1TUtmAlgorithm > algorithm_map_
std::string uuid_firmware_
void setNmodules(const unsigned int value)
std::map< std::string, std::string > token_to_condition_
const std::string & getScaleSetName() const
static unsigned long murmurHashNeutral2(const void *key, int len, unsigned int seed)
const std::map< std::string, L1TUtmScale > & getScaleMap() const
std::string scale_set_name_
virtual ~L1TUtmTriggerMenu()=default
std::map< std::string, unsigned int > external_map_
std::map< std::string, L1TUtmCondition > condition_map_
void setComment(const std::string &value)
void setFirmwareUuid(const std::string &value)
key
prepare the HTCondor submission files and eventually submit them
Definition: value.py:1
const std::map< std::string, L1TUtmCondition > & getConditionMap() const
L1TUtmTriggerMenu(std::map< std::string, L1TUtmAlgorithm > algorithm_map, std::map< std::string, L1TUtmCondition > condition_map, std::map< std::string, L1TUtmScale > scale_map, std::string name, std::string ver_s, std::string comment, std::string datetime, std::string uuid_firmware, std::string scale_set_name, unsigned int n_modules, unsigned int ver_i)
void setName(const std::string &value)
void setScaleSetName(const std::string &value)
const std::string & getFirmwareUuid() const
unsigned int n_modules_
std::map< std::string, L1TUtmScale > scale_map_
#define COND_SERIALIZABLE
Definition: Serializable.h:39
void setVersion(const std::string &value)
const unsigned long getFirmwareUuidHashed() const
const std::map< std::string, L1TUtmAlgorithm > & getAlgorithmMap() const
const std::string & getVersion() const
L1TUtmTriggerMenu(const tmeventsetup::esTriggerMenu &esMenu)
const std::string & getDatetime() const