#include <MTDBaseNumber.h>
Public Member Functions | |
void | addLevel (const std::string &name, const int ©Number) |
int | getCapacity () |
int | getCopyNumber (int level) const |
int | getCopyNumber (const std::string &levelName) const |
std::string 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 > | _sortedName |
int | _theLevels |
Static Protected Attributes | |
static 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 20 of file MTDBaseNumber.h.
References addLevel(), getCapacity(), getCopyNumber(), getLevelName(), getLevels(), hcalDigis_cfi::level, fwlog::levelName(), dataset::name, reset(), setSize(), findQualityFiles::size, and AlCaHLTBitMon_QueryRunRegistry::string.
void MTDBaseNumber::addLevel | ( | const std::string & | name, |
const int & | copyNumber | ||
) |
Definition at line 22 of file MTDBaseNumber.cc.
References _sortedCopyNumber, _sortedName, _theLevels, Exception, MAXLEVEL, and dataset::name.
Referenced by MtdSD::getBaseNumber(), and ~MTDBaseNumber().
int MTDBaseNumber::getCapacity | ( | ) |
Definition at line 55 of file MTDBaseNumber.cc.
References _sortedName.
Referenced by MtdSD::getBaseNumber(), and ~MTDBaseNumber().
int MTDBaseNumber::getCopyNumber | ( | int | level | ) | const |
Definition at line 37 of file MTDBaseNumber.cc.
References _sortedCopyNumber, and hcalDigis_cfi::level.
Referenced by BTLNumberingScheme::getUnitID(), ETLNumberingScheme::getUnitID(), and ~MTDBaseNumber().
int MTDBaseNumber::getCopyNumber | ( | const std::string & | levelName | ) | const |
Definition at line 42 of file MTDBaseNumber.cc.
References _sortedCopyNumber, _sortedName, and _theLevels.
std::string const & MTDBaseNumber::getLevelName | ( | int | level | ) | const |
Definition at line 50 of file MTDBaseNumber.cc.
References _sortedName, and hcalDigis_cfi::level.
Referenced by BTLNumberingScheme::getUnitID(), ETLNumberingScheme::getUnitID(), and ~MTDBaseNumber().
int MTDBaseNumber::getLevels | ( | ) | const |
Definition at line 32 of file MTDBaseNumber.cc.
References _theLevels.
Referenced by BTLNumberingScheme::getUnitID(), ETLNumberingScheme::getUnitID(), and ~MTDBaseNumber().
void MTDBaseNumber::reset | ( | void | ) |
Definition at line 60 of file MTDBaseNumber.cc.
References _theLevels.
Referenced by MtdSD::getBaseNumber(), and ~MTDBaseNumber().
void MTDBaseNumber::setSize | ( | const int & | size | ) |
Definition at line 10 of file MTDBaseNumber.cc.
References _sortedCopyNumber, _sortedName, and MAXLEVEL.
Referenced by MtdSD::getBaseNumber(), and ~MTDBaseNumber().
|
protected |
Definition at line 37 of file MTDBaseNumber.h.
Referenced by addLevel(), getCopyNumber(), and setSize().
|
protected |
Definition at line 36 of file MTDBaseNumber.h.
Referenced by addLevel(), getCapacity(), getCopyNumber(), getLevelName(), and setSize().
|
protected |
Definition at line 38 of file MTDBaseNumber.h.
Referenced by addLevel(), getCopyNumber(), getLevels(), and reset().
|
staticprotected |
Definition at line 34 of file MTDBaseNumber.h.
Referenced by addLevel(), and setSize().