#include <CSCLUTReader.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 |
CSCLUTReader (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 |
~CSCLUTReader () | |
Private Member Functions | |
int | readHeader (std::istream &) |
Private Attributes | |
unsigned int | addressMask_ |
std::vector< float > | data_ |
unsigned int | dataMask_ |
std::string | fname_ |
int | m_codeInWidth |
bool | m_initialized |
unsigned | m_outWidth |
unsigned int | nrBitsAddress_ |
unsigned int | nrBitsData_ |
Definition at line 14 of file CSCLUTReader.h.
Enumerator | |
---|---|
SUCCESS | |
NO_ENTRIES | |
DUP_ENTRIES | |
MISS_ENTRIES | |
MAX_ADDRESS_OUTOFRANGE | |
NO_HEADER |
Definition at line 16 of file CSCLUTReader.h.
|
explicit |
Definition at line 5 of file CSCLUTReader.cc.
References alignmentValidation::fname, initialize(), load(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
inline |
Definition at line 27 of file CSCLUTReader.h.
unsigned CSCLUTReader::checkedInput | ( | unsigned | in, |
unsigned | maxWidth | ||
) | const |
Definition at line 74 of file CSCLUTReader.cc.
References recoMuon::in, and SiStripMonitorCluster_cfi::maxWidth.
float CSCLUTReader::data | ( | unsigned int | address | ) | const |
Definition at line 24 of file CSCLUTReader.cc.
References addressMask_, and data_.
Referenced by lookupPacked(), and write().
|
inline |
void CSCLUTReader::initialize | ( | void | ) |
Definition at line 61 of file CSCLUTReader.cc.
References empty(), recoMuon::in, lookup(), m_codeInWidth, m_initialized, m_outWidth, MillePedeFileConverter_cfg::out, read(), and cms::cuda::stream.
Referenced by CSCLUTReader().
int CSCLUTReader::load | ( | const std::string & | inFileName | ) |
Definition at line 28 of file CSCLUTReader.cc.
References contentValuesFiles::fullPath, m_initialized, and read().
Referenced by CSCLUTReader().
float CSCLUTReader::lookup | ( | int | code | ) | const |
Definition at line 43 of file CSCLUTReader.cc.
References fname_, lookupPacked(), and m_initialized.
Referenced by initialize().
float CSCLUTReader::lookupPacked | ( | const int | input | ) | const |
Definition at line 52 of file CSCLUTReader.cc.
References data(), input, and m_initialized.
Referenced by lookup().
unsigned int CSCLUTReader::maxSize | ( | ) | const |
Definition at line 142 of file CSCLUTReader.cc.
References addressMask_, and SiStripPI::max.
|
inline |
|
inline |
int CSCLUTReader::read | ( | std::istream & | stream | ) |
Definition at line 79 of file CSCLUTReader.cc.
References a, addressMask_, b, data_, DUP_ENTRIES, mps_splice::entry, spr::find(), fname_, 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 146 of file CSCLUTReader.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 CSCLUTReader::save | ( | std::ofstream & | output | ) |
Definition at line 22 of file CSCLUTReader.cc.
References convertSQLitetoXML_cfg::output, and write().
void CSCLUTReader::write | ( | std::ostream & | stream | ) | const |
Definition at line 135 of file CSCLUTReader.cc.
References addressMask_, data(), data_, nrBitsAddress_, nrBitsData_, and cms::cuda::stream.
Referenced by save().
|
private |
Definition at line 57 of file CSCLUTReader.h.
Referenced by data(), maxSize(), read(), readHeader(), and write().
|
private |
|
private |
Definition at line 58 of file CSCLUTReader.h.
Referenced by readHeader().
|
private |
Definition at line 52 of file CSCLUTReader.h.
|
private |
Definition at line 62 of file CSCLUTReader.h.
Referenced by initialize().
|
private |
Definition at line 64 of file CSCLUTReader.h.
Referenced by initialize(), load(), lookup(), and lookupPacked().
|
private |
Definition at line 63 of file CSCLUTReader.h.
Referenced by initialize().
|
private |
Definition at line 55 of file CSCLUTReader.h.
Referenced by nrBitsAddress(), readHeader(), and write().
|
private |
Definition at line 56 of file CSCLUTReader.h.
Referenced by nrBitsData(), readHeader(), and write().