#include <MTDBaseNumber.h>
Public Member Functions | |
void | addLevel (const std::string_view name, const int copyNumber) |
int | getCapacity () |
int | getCopyNumber (int level) const |
int | getCopyNumber (const std::string_view levelName) const |
std::string_view const & | getLevelName (int level) const |
int | getLevels () const |
MTDBaseNumber () | |
MTDBaseNumber (const MTDBaseNumber &aBaseNumber) | |
void | reset () |
void | setSize (const int size) |
~MTDBaseNumber () | |
Protected Attributes | |
std::vector< int > | _sortedCopyNumber |
std::vector< std::string_view > | _sortedName |
int | _theLevels |
Static Protected Attributes | |
static constexpr int | MAXLEVEL = 20 |
Cloned from the EcalBaseNumber class
Definition at line 15 of file MTDBaseNumber.h.
MTDBaseNumber::MTDBaseNumber | ( | ) |
Definition at line 3 of file MTDBaseNumber.cc.
MTDBaseNumber::MTDBaseNumber | ( | const MTDBaseNumber & | aBaseNumber | ) |
Definition at line 5 of file MTDBaseNumber.cc.
|
inline |
Definition at line 19 of file MTDBaseNumber.h.
void MTDBaseNumber::addLevel | ( | const std::string_view | name, |
const int | copyNumber | ||
) |
Definition at line 21 of file MTDBaseNumber.cc.
References _sortedCopyNumber, _sortedName, _theLevels, Exception, MAXLEVEL, and Skims_PA_cff::name.
Referenced by MtdSD::getBaseNumber().
int MTDBaseNumber::getCapacity | ( | ) |
Definition at line 45 of file MTDBaseNumber.cc.
References _sortedName.
Referenced by MtdSD::getBaseNumber().
int MTDBaseNumber::getCopyNumber | ( | int | level | ) | const |
Definition at line 32 of file MTDBaseNumber.cc.
References _sortedCopyNumber, and personalPlayback::level.
Referenced by ETLNumberingScheme::getUnitID(), and BTLNumberingScheme::getUnitID().
int MTDBaseNumber::getCopyNumber | ( | const std::string_view | levelName | ) | const |
Definition at line 34 of file MTDBaseNumber.cc.
References _sortedCopyNumber, _sortedName, _theLevels, and fwlog::levelName().
std::string_view const & MTDBaseNumber::getLevelName | ( | int | level | ) | const |
Definition at line 43 of file MTDBaseNumber.cc.
References _sortedName, and personalPlayback::level.
Referenced by ETLNumberingScheme::getUnitID(), and BTLNumberingScheme::getUnitID().
int MTDBaseNumber::getLevels | ( | ) | const |
Definition at line 30 of file MTDBaseNumber.cc.
References _theLevels.
Referenced by ETLNumberingScheme::getUnitID(), and BTLNumberingScheme::getUnitID().
void MTDBaseNumber::reset | ( | void | ) |
Definition at line 47 of file MTDBaseNumber.cc.
References _theLevels.
Referenced by MtdSD::getBaseNumber().
void MTDBaseNumber::setSize | ( | const int | size | ) |
Definition at line 10 of file MTDBaseNumber.cc.
References _sortedCopyNumber, _sortedName, MAXLEVEL, and findQualityFiles::size.
Referenced by MtdSD::getBaseNumber().
|
protected |
Definition at line 36 of file MTDBaseNumber.h.
Referenced by addLevel(), getCopyNumber(), and setSize().
|
protected |
Definition at line 35 of file MTDBaseNumber.h.
Referenced by addLevel(), getCapacity(), getCopyNumber(), getLevelName(), and setSize().
|
protected |
Definition at line 37 of file MTDBaseNumber.h.
Referenced by addLevel(), getCopyNumber(), getLevels(), and reset().
|
staticprotected |
Definition at line 33 of file MTDBaseNumber.h.
Referenced by addLevel(), and setSize().