CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
MTDBaseNumber.h
Go to the documentation of this file.
1 #ifndef MTDCommonData_MTDBaseNumber_h
2 #define MTDCommonData_MTDBaseNumber_h
3 
9 #include <vector>
10 #include <string>
11 
14 
16 public:
17  MTDBaseNumber();
18  MTDBaseNumber(const MTDBaseNumber& aBaseNumber);
20 
21  void setSize(const int size);
22  void addLevel(const std::string_view name, const int copyNumber);
23 
24  int getLevels() const;
25  int getCopyNumber(int level) const;
26  int getCopyNumber(const std::string_view levelName) const;
27  std::string_view const& getLevelName(int level) const;
28  int getCapacity();
29 
30  void reset();
31 
32 protected:
33  static constexpr int MAXLEVEL = 20;
34 
35  std::vector<std::string_view> _sortedName;
36  std::vector<int> _sortedCopyNumber;
38 };
39 
40 #endif
void addLevel(const std::string_view name, const int copyNumber)
std::vector< int > _sortedCopyNumber
Definition: MTDBaseNumber.h:36
int getLevels() const
static constexpr int MAXLEVEL
Definition: MTDBaseNumber.h:33
const char * levelName(LogLevel)
Definition: fwLog.cc:32
int getCopyNumber(int level) const
std::string_view const & getLevelName(int level) const
tuple level
Definition: testEve_cfg.py:47
tuple size
Write out results.
void setSize(const int size)
std::vector< std::string_view > _sortedName
Definition: MTDBaseNumber.h:35