#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 66 of file L1TriggerLutFile.h.
References m_fin.
Referenced by lumiQTWidget.ApplicationWindow::fileQuit(), esMonitoring.AsyncLineReaderMixin::handle_close(), esMonitoring.FDJsonServer::handle_close(), Vispa.Gui.BoxContentDialog.BoxContentDialog::keyPressEvent(), Vispa.Gui.FindDialog.FindDialog::keyPressEvent(), L1MuDTPtaLut::load(), L1MuDTPhiLut::load(), L1MuDTEtaPatternLut::load(), L1MuDTQualPatternLut::load(), L1MuDTExtLut::load(), L1TMuonBarrelParamsESProducer::load_ext(), L1TMuonBarrelParamsESProducer::load_phi(), and L1TMuonBarrelParamsESProducer::load_pt().
|
inline |
return filename
Definition at line 54 of file L1TriggerLutFile.h.
References m_file.
Referenced by plotting.Plot::draw().
|
inline |
return status of file stream
Definition at line 60 of file L1TriggerLutFile.h.
References m_fin.
Referenced by L1MuDTPhiLut::load(), L1MuDTPtaLut::load(), L1MuDTEtaPatternLut::load(), L1MuDTQualPatternLut::load(), L1MuDTExtLut::load(), L1TMuonBarrelParamsESProducer::load_ext(), L1TMuonBarrelParamsESProducer::load_phi(), and L1TMuonBarrelParamsESProducer::load_pt().
void L1TriggerLutFile::ignoreLines | ( | int | n | ) |
read and ignore n lines from file
Definition at line 90 of file L1TriggerLutFile.cc.
References i, m_fin, and gen::n.
Referenced by L1MuDTEtaPatternLut::load(), and L1MuDTQualPatternLut::load().
int L1TriggerLutFile::open | ( | ) |
open file
Definition at line 72 of file L1TriggerLutFile.cc.
References gather_cfg::cout, cmsHarvester::file_name, recoMuon::in, m_file, and m_fin.
Referenced by Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController::importConfig(), L1MuDTPtaLut::load(), L1MuDTPhiLut::load(), L1MuDTEtaPatternLut::load(), L1MuDTQualPatternLut::load(), L1MuDTExtLut::load(), L1TMuonBarrelParamsESProducer::load_ext(), L1TMuonBarrelParamsESProducer::load_phi(), and L1TMuonBarrelParamsESProducer::load_pt().
L1TriggerLutFile & L1TriggerLutFile::operator= | ( | const L1TriggerLutFile & | lut | ) |
int L1TriggerLutFile::readHex | ( | ) |
int L1TriggerLutFile::readInteger | ( | ) |
read one integer from file
Definition at line 101 of file L1TriggerLutFile.cc.
Referenced by L1MuDTPhiLut::load(), L1MuDTPtaLut::load(), L1MuDTEtaPatternLut::load(), L1MuDTQualPatternLut::load(), L1MuDTExtLut::load(), L1TMuonBarrelParamsESProducer::load_ext(), L1TMuonBarrelParamsESProducer::load_phi(), and L1TMuonBarrelParamsESProducer::load_pt().
string L1TriggerLutFile::readString | ( | ) |
read one string from file
Definition at line 125 of file L1TriggerLutFile.cc.
Referenced by L1MuDTEtaPatternLut::load().
|
private |
Definition at line 83 of file L1TriggerLutFile.h.
Referenced by getName(), open(), and operator=().
|
private |
Definition at line 82 of file L1TriggerLutFile.h.
Referenced by bad(), close(), good(), ignoreLines(), open(), readHex(), readInteger(), and readString().