#include <CSCComparatorCodeLUT.h>
Public Types | |
enum | ReadCodes { SUCCESS = 0, NO_ENTRIES = 1, DUP_ENTRIES = 2, MISS_ENTRIES = 3, MAX_ADDRESS_OUTOFRANGE = 4, NO_HEADER = 5 } |
Public Member Functions | |
unsigned | checkedInput (unsigned in, unsigned maxWidth) const |
CSCComparatorCodeLUT (const std::string &) | |
float | data (unsigned int address) const |
bool | empty () const |
void | initialize () |
int | load (const std::string &inFileName) |
float | lookup (int code) const |
float | lookupPacked (const int input) const |
unsigned int | maxSize () const |
unsigned int | nrBitsAddress () const |
unsigned int | nrBitsData () const |
int | read (std::istream &stream) |
void | save (std::ofstream &output) |
void | write (std::ostream &stream) const |
~CSCComparatorCodeLUT () | |
Private Member Functions | |
int | readHeader (std::istream &) |
Private Attributes | |
unsigned int | addressMask_ |
std::vector< float > | data_ |
unsigned int | dataMask_ |
int | m_codeInWidth |
bool | m_initialized |
unsigned | m_outWidth |
unsigned int | nrBitsAddress_ |
unsigned int | nrBitsData_ |
Definition at line 14 of file CSCComparatorCodeLUT.h.
Enumerator | |
---|---|
SUCCESS | |
NO_ENTRIES | |
DUP_ENTRIES | |
MISS_ENTRIES | |
MAX_ADDRESS_OUTOFRANGE | |
NO_HEADER |
Definition at line 16 of file CSCComparatorCodeLUT.h.
|
explicit |
Definition at line 5 of file CSCComparatorCodeLUT.cc.
References alignmentValidation::fname, initialize(), load(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
inline |
Definition at line 28 of file CSCComparatorCodeLUT.h.
unsigned CSCComparatorCodeLUT::checkedInput | ( | unsigned | in, |
unsigned | maxWidth | ||
) | const |
Definition at line 64 of file CSCComparatorCodeLUT.cc.
References recoMuon::in, and SiStripMonitorCluster_cfi::maxWidth.
float CSCComparatorCodeLUT::data | ( | unsigned int | address | ) | const |
Definition at line 17 of file CSCComparatorCodeLUT.cc.
References addressMask_, and data_.
Referenced by lookupPacked(), and write().
|
inline |
void CSCComparatorCodeLUT::initialize | ( | void | ) |
Definition at line 51 of file CSCComparatorCodeLUT.cc.
References empty(), recoMuon::in, lookup(), m_codeInWidth, m_initialized, m_outWidth, MillePedeFileConverter_cfg::out, read(), and cms::cuda::stream.
Referenced by CSCComparatorCodeLUT().
int CSCComparatorCodeLUT::load | ( | const std::string & | inFileName | ) |
Definition at line 21 of file CSCComparatorCodeLUT.cc.
References Exception, contentValuesFiles::fullPath, m_initialized, and read().
Referenced by CSCComparatorCodeLUT().
float CSCComparatorCodeLUT::lookup | ( | int | code | ) | const |
Definition at line 36 of file CSCComparatorCodeLUT.cc.
References lookupPacked(), and m_initialized.
Referenced by initialize().
float CSCComparatorCodeLUT::lookupPacked | ( | const int | input | ) | const |
Definition at line 43 of file CSCComparatorCodeLUT.cc.
References data(), Exception, input, and m_initialized.
Referenced by lookup().
unsigned int CSCComparatorCodeLUT::maxSize | ( | ) | const |
Definition at line 130 of file CSCComparatorCodeLUT.cc.
References addressMask_, and SiStripPI::max.
|
inline |
|
inline |
int CSCComparatorCodeLUT::read | ( | std::istream & | stream | ) |
Definition at line 69 of file CSCComparatorCodeLUT.cc.
References a, addressMask_, b, data_, DUP_ENTRIES, mps_splice::entry, spr::find(), mps_splice::line, SiStripPI::max, MAX_ADDRESS_OUTOFRANGE, MISS_ENTRIES, NO_ENTRIES, readHeader(), jetUpdater_cfi::sort, cms::cuda::stream, AlCaHLTBitMon_QueryRunRegistry::string, SUCCESS, HcalDetIdTransform::transform(), and x.
Referenced by edmIntegrityCheck.PublishToFileSystem::get(), initialize(), and load().
|
private |
Definition at line 134 of file CSCComparatorCodeLUT.cc.
References addressMask_, dataMask_, mps_splice::line, NO_HEADER, nrBitsAddress_, nrBitsData_, cms::cuda::stream, AlCaHLTBitMon_QueryRunRegistry::string, SUCCESS, and BeamSplash_cfg::version.
Referenced by read().
void CSCComparatorCodeLUT::save | ( | std::ofstream & | output | ) |
Definition at line 15 of file CSCComparatorCodeLUT.cc.
References convertSQLitetoXML_cfg::output, and write().
void CSCComparatorCodeLUT::write | ( | std::ostream & | stream | ) | const |
Definition at line 123 of file CSCComparatorCodeLUT.cc.
References addressMask_, data(), data_, nrBitsAddress_, nrBitsData_, and cms::cuda::stream.
Referenced by save().
|
private |
Definition at line 57 of file CSCComparatorCodeLUT.h.
Referenced by data(), maxSize(), read(), readHeader(), and write().
|
private |
|
private |
Definition at line 58 of file CSCComparatorCodeLUT.h.
Referenced by readHeader().
|
private |
Definition at line 62 of file CSCComparatorCodeLUT.h.
Referenced by initialize().
|
private |
Definition at line 64 of file CSCComparatorCodeLUT.h.
Referenced by initialize(), load(), lookup(), and lookupPacked().
|
private |
Definition at line 63 of file CSCComparatorCodeLUT.h.
Referenced by initialize().
|
private |
Definition at line 55 of file CSCComparatorCodeLUT.h.
Referenced by nrBitsAddress(), readHeader(), and write().
|
private |
Definition at line 56 of file CSCComparatorCodeLUT.h.
Referenced by nrBitsData(), readHeader(), and write().