CMS 3D CMS Logo

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 
18  MTDBaseNumber();
19  MTDBaseNumber( const MTDBaseNumber & aBaseNumber );
21 
22  void setSize(const int & size);
23  void addLevel(const std::string& name, const int & copyNumber);
24 
25  int getLevels() const;
26  int getCopyNumber(int level) const;
27  int getCopyNumber(const std::string& levelName) const;
28  std::string const & getLevelName(int level) const;
29  int getCapacity();
30 
31  void reset();
32 
33  protected:
34  static constexpr int MAXLEVEL=20;
35 
36  std::vector<std::string> _sortedName;
37  std::vector<int> _sortedCopyNumber;
39 
40 };
41 
42 #endif
size
Write out results.
std::vector< std::string > _sortedName
Definition: MTDBaseNumber.h:36
static int MAXLEVEL
Definition: MTDBaseNumber.h:34
std::vector< int > _sortedCopyNumber
Definition: MTDBaseNumber.h:37
#define constexpr
int getLevels() const
const char * levelName(LogLevel)
Definition: fwLog.cc:34
void setSize(const int &size)
int getCopyNumber(int level) const
void addLevel(const std::string &name, const int &copyNumber)
std::string const & getLevelName(int level) const