#include <L1TriggerLutFile.h>
Public Member Functions | |
bool | bad () |
return status of file stream More... | |
void | close () |
close file More... | |
const std::string & | getName () const |
return filename More... | |
bool | good () |
return status of file stream More... | |
void | ignoreLines (int n) |
read and ignore n lines from file More... | |
L1TriggerLutFile (const std::string name="") | |
constructor More... | |
L1TriggerLutFile (const L1TriggerLutFile &) | |
copy constructor More... | |
int | open () |
open file More... | |
L1TriggerLutFile & | operator= (const L1TriggerLutFile &) |
assignment operator More... | |
int | readHex () |
read one hex from file More... | |
int | readInteger () |
read one integer from file More... | |
std::string | readString () |
read one string from file More... | |
virtual | ~L1TriggerLutFile () |
destructor More... | |
Private Attributes | |
std::string | m_file |
std::ifstream | m_fin |
Auxiliary class to handle Look-up table files
N. Neumeister CERN EP
Definition at line 37 of file L1TriggerLutFile.h.
L1TriggerLutFile::L1TriggerLutFile | ( | const std::string | name = "" | ) |
constructor
L1TriggerLutFile::L1TriggerLutFile | ( | const L1TriggerLutFile & | in | ) |
|
virtual |
|
inline |
|
inline |
close file
Definition at line 64 of file L1TriggerLutFile.h.
References m_fin.
Referenced by L1MuBMTEtaPatternLut::getIgnoredLines(), L1MuBMTQualPatternLut::getIgnoredLines(), esMonitoring.AsyncLineReaderMixin::handle_close(), esMonitoring.FDJsonServer::handle_close(), L1MuDTPtaLut::load(), L1MuDTPhiLut::load(), L1MuDTEtaPatternLut::load(), L1MuBMTEtaPatternLut::load(), L1MuDTQualPatternLut::load(), L1MuBMTQualPatternLut::load(), L1MuDTExtLut::load(), L1TMuonBarrelParamsHelper::load_ext(), L1TMuonBarrelParamsHelper::load_phi(), and L1TMuonBarrelParamsHelper::load_pt().
|
inline |
return filename
Definition at line 52 of file L1TriggerLutFile.h.
References m_file.
Referenced by plotting.Plot::draw().
|
inline |
return status of file stream
Definition at line 58 of file L1TriggerLutFile.h.
References m_fin.
Referenced by L1MuBMTEtaPatternLut::getIgnoredLines(), L1MuBMTQualPatternLut::getIgnoredLines(), L1MuDTPtaLut::load(), L1MuDTPhiLut::load(), L1MuDTEtaPatternLut::load(), L1MuBMTEtaPatternLut::load(), L1MuDTQualPatternLut::load(), L1MuBMTQualPatternLut::load(), L1MuDTExtLut::load(), L1TMuonBarrelParamsHelper::load_ext(), L1TMuonBarrelParamsHelper::load_phi(), and L1TMuonBarrelParamsHelper::load_pt().
void L1TriggerLutFile::ignoreLines | ( | int | n | ) |
read and ignore n lines from file
Definition at line 82 of file L1TriggerLutFile.cc.
References visDQMUpload::buf, mps_fire::i, m_fin, and dqmiodumpmetadata::n.
Referenced by L1MuDTEtaPatternLut::load(), L1MuBMTEtaPatternLut::load(), L1MuDTQualPatternLut::load(), and L1MuBMTQualPatternLut::load().
int L1TriggerLutFile::open | ( | ) |
open file
Definition at line 68 of file L1TriggerLutFile.cc.
References gather_cfg::cout, cmsHarvester::file_name, recoMuon::in, m_file, and m_fin.
Referenced by L1MuBMTEtaPatternLut::getIgnoredLines(), L1MuBMTQualPatternLut::getIgnoredLines(), L1MuDTPtaLut::load(), L1MuDTPhiLut::load(), L1MuDTEtaPatternLut::load(), L1MuBMTEtaPatternLut::load(), L1MuDTQualPatternLut::load(), L1MuBMTQualPatternLut::load(), L1MuDTExtLut::load(), L1TMuonBarrelParamsHelper::load_ext(), L1TMuonBarrelParamsHelper::load_phi(), and L1TMuonBarrelParamsHelper::load_pt().
L1TriggerLutFile & L1TriggerLutFile::operator= | ( | const L1TriggerLutFile & | lut | ) |
int L1TriggerLutFile::readHex | ( | ) |
read one hex from file
Definition at line 100 of file L1TriggerLutFile.cc.
References m_fin, and createJobs::tmp.
int L1TriggerLutFile::readInteger | ( | ) |
read one integer from file
Definition at line 91 of file L1TriggerLutFile.cc.
References m_fin, and createJobs::tmp.
Referenced by L1MuDTPtaLut::load(), L1MuDTPhiLut::load(), L1MuDTEtaPatternLut::load(), L1MuBMTEtaPatternLut::load(), L1MuDTQualPatternLut::load(), L1MuBMTQualPatternLut::load(), L1MuDTExtLut::load(), L1TMuonBarrelParamsHelper::load_ext(), L1TMuonBarrelParamsHelper::load_phi(), and L1TMuonBarrelParamsHelper::load_pt().
string L1TriggerLutFile::readString | ( | ) |
read one string from file
Definition at line 109 of file L1TriggerLutFile.cc.
References m_fin, and createJobs::tmp.
Referenced by L1MuBMTEtaPatternLut::getIgnoredLines(), L1MuBMTQualPatternLut::getIgnoredLines(), L1MuDTEtaPatternLut::load(), and L1MuBMTEtaPatternLut::load().
|
private |
Definition at line 80 of file L1TriggerLutFile.h.
Referenced by getName(), open(), and operator=().
|
private |
Definition at line 79 of file L1TriggerLutFile.h.
Referenced by bad(), close(), good(), ignoreLines(), open(), readHex(), readInteger(), and readString().