#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 L1TriggerLutFile &) | |
copy constructor More... | |
L1TriggerLutFile (const std::string name="") | |
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 esMonitoring.AsyncLineReaderMixin::handle_close(), and esMonitoring.FDJsonServer::handle_close().
|
inline |
return filename
Definition at line 52 of file L1TriggerLutFile.h.
References m_file.
Referenced by plotting.Plot::draw().
|
inline |
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.
int L1TriggerLutFile::open | ( | ) |
open file
Definition at line 68 of file L1TriggerLutFile.cc.
References gather_cfg::cout, contentValuesCheck::file_name, recoMuon::in, m_file, and m_fin.
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.
string L1TriggerLutFile::readString | ( | ) |
read one string from file
Definition at line 109 of file L1TriggerLutFile.cc.
References m_fin, and createJobs::tmp.
|
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().