77 string defaultPath =
"L1Trigger/";
78 string eau_dir =
"L1TMuon/data/bmtf_luts/LUTs_Ass/";
92 int skip2 = getIgnoredLines(file);
111 m_lut[pattern.
id()] = pattern;
129 cout <<
"L1 barrel Track Finder ETA Pattern look-up table :" << endl;
130 cout <<
"==================================================" << endl;
133 cout <<
"ETF Patterns : " << m_lut.size() << endl;
134 cout <<
"======================" << endl;
137 LUT::const_iterator iter = m_lut.begin();
138 while (iter != m_lut.end()) {
139 cout << (*iter).second << endl;
150 LUT::const_iterator it = m_lut.find(
id);
151 if (it == m_lut.end()) {
153 <<
"Error: L1MuBMTEtaPatternLut: pattern not found : " <<
id << endl;
159 if (file.
open() != 0)
162 while (file.
good()) {
164 if (str.find(
'#') == 0)
L1MuBMTEtaPatternLut()
constructor
int load()
load pattern look-up table
L1MuDTEtaPattern getPattern(int id) const
get pattern with a given ID
bool good()
return status of file stream
Log< level::Error, false > LogError
virtual ~L1MuBMTEtaPatternLut()
destructor
void ignoreLines(int n)
read and ignore n lines from file
int getIgnoredLines(L1TriggerLutFile file) const
void print() const
print pattern look-up table
std::string readString()
read one string from file
int readInteger()
read one integer from file
std::string fullPath() const
void reset()
reset pattern look-up table