#include <L1TriggerLutFile.h>
Public Member Functions | |
bool | bad () |
return status of file stream | |
void | close () |
close file | |
const std::string & | getName () const |
return filename | |
bool | good () |
return status of file stream | |
void | ignoreLines (int n) |
read and ignore n lines from file | |
L1TriggerLutFile (const std::string name="") | |
constructor | |
L1TriggerLutFile (const L1TriggerLutFile &) | |
copy constructor | |
int | open () |
open file | |
L1TriggerLutFile & | operator= (const L1TriggerLutFile &) |
assignment operator | |
int | readHex () |
read one hex from file | |
int | readInteger () |
read one integer from file | |
std::string | readString () |
read one string from file | |
virtual | ~L1TriggerLutFile () |
destructor | |
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 | ) |
L1TriggerLutFile::~L1TriggerLutFile | ( | ) | [virtual] |
bool L1TriggerLutFile::bad | ( | ) | [inline] |
return status of file stream
Definition at line 63 of file L1TriggerLutFile.h.
References m_fin.
{ return m_fin.bad(); }
void L1TriggerLutFile::close | ( | void | ) | [inline] |
close file
Definition at line 66 of file L1TriggerLutFile.h.
References m_fin.
Referenced by L1MuDTPtaLut::load(), L1MuDTEtaPatternLut::load(), L1MuDTExtLut::load(), L1MuDTPhiLut::load(), and L1MuDTQualPatternLut::load().
{ m_fin.close(); }
const std::string& L1TriggerLutFile::getName | ( | ) | const [inline] |
return filename
Definition at line 54 of file L1TriggerLutFile.h.
References m_file.
{ return m_file; }
bool L1TriggerLutFile::good | ( | ) | [inline] |
return status of file stream
Definition at line 60 of file L1TriggerLutFile.h.
References m_fin.
Referenced by L1MuDTPtaLut::load(), L1MuDTEtaPatternLut::load(), L1MuDTExtLut::load(), L1MuDTPhiLut::load(), and L1MuDTQualPatternLut::load().
{ return m_fin.good(); }
void L1TriggerLutFile::ignoreLines | ( | int | n | ) |
read and ignore n lines from file
Definition at line 90 of file L1TriggerLutFile.cc.
Referenced by L1MuDTEtaPatternLut::load(), and L1MuDTQualPatternLut::load().
int L1TriggerLutFile::open | ( | ) |
open file
Definition at line 72 of file L1TriggerLutFile.cc.
References gather_cfg::cout, cmsPerfSuiteHarvest::file_name, recoMuon::in, m_file, and m_fin.
Referenced by L1MuDTPtaLut::load(), L1MuDTEtaPatternLut::load(), L1MuDTExtLut::load(), L1MuDTPhiLut::load(), and L1MuDTQualPatternLut::load().
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 L1MuDTPtaLut::load(), L1MuDTEtaPatternLut::load(), L1MuDTExtLut::load(), L1MuDTPhiLut::load(), and L1MuDTQualPatternLut::load().
string L1TriggerLutFile::readString | ( | ) |
read one string from file
Definition at line 125 of file L1TriggerLutFile.cc.
Referenced by L1MuDTEtaPatternLut::load().
std::string L1TriggerLutFile::m_file [private] |
Definition at line 83 of file L1TriggerLutFile.h.
Referenced by getName(), open(), and operator=().
std::ifstream L1TriggerLutFile::m_fin [private] |
Definition at line 82 of file L1TriggerLutFile.h.
Referenced by bad(), close(), good(), ignoreLines(), open(), readHex(), readInteger(), and readString().