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  MTDBaseNumber();
18  MTDBaseNumber(const MTDBaseNumber& aBaseNumber);
20 
21  void setSize(const int& size);
22  void addLevel(const std::string& name, const int& copyNumber);
23 
24  int getLevels() const;
25  int getCopyNumber(int level) const;
26  int getCopyNumber(const std::string& levelName) const;
27  std::string 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> _sortedName;
36  std::vector<int> _sortedCopyNumber;
38 };
39 
40 #endif
personalPlayback.level
level
Definition: personalPlayback.py:22
MessageLogger.h
MTDBaseNumber::getCapacity
int getCapacity()
Definition: MTDBaseNumber.cc:45
MTDBaseNumber
Definition: MTDBaseNumber.h:15
MTDBaseNumber::_sortedName
std::vector< std::string > _sortedName
Definition: MTDBaseNumber.h:35
MTDBaseNumber::getCopyNumber
int getCopyNumber(int level) const
Definition: MTDBaseNumber.cc:32
MTDBaseNumber::getLevels
int getLevels() const
Definition: MTDBaseNumber.cc:30
MTDBaseNumber::getLevelName
std::string const & getLevelName(int level) const
Definition: MTDBaseNumber.cc:43
MTDBaseNumber::_sortedCopyNumber
std::vector< int > _sortedCopyNumber
Definition: MTDBaseNumber.h:36
MTDBaseNumber::~MTDBaseNumber
~MTDBaseNumber()
Definition: MTDBaseNumber.h:19
MTDBaseNumber::addLevel
void addLevel(const std::string &name, const int &copyNumber)
Definition: MTDBaseNumber.cc:21
MTDBaseNumber::_theLevels
int _theLevels
Definition: MTDBaseNumber.h:37
MTDBaseNumber::setSize
void setSize(const int &size)
Definition: MTDBaseNumber.cc:10
fwlog::levelName
const char * levelName(LogLevel)
Definition: fwLog.cc:32
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
MTDBaseNumber::reset
void reset()
Definition: MTDBaseNumber.cc:47
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
Exception.h
MTDBaseNumber::MAXLEVEL
static constexpr int MAXLEVEL
Definition: MTDBaseNumber.h:33
MTDBaseNumber::MTDBaseNumber
MTDBaseNumber()
Definition: MTDBaseNumber.cc:3
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443