77 string defaultPath =
"L1Trigger/";
78 string eau_dir =
"L1TMuon/data/bmtf_luts/LUTs_Ass/";
92 int skip2 = getIgnoredLines(
file);
93 file.ignoreLines(skip2);
97 int id =
file.readInteger();
100 string pat =
file.readString();
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()) {
163 string str =
file.readString();
164 if (
str.find(
'#') == 0)
L1MuBMTEtaPatternLut()
constructor
int getIgnoredLines(L1TriggerLutFile file) const
void print() const
print pattern look-up table
std::string fullPath() const
int load()
load pattern look-up table
L1MuDTEtaPattern getPattern(int id) const
get pattern with a given ID
Log< level::Error, false > LogError
virtual ~L1MuBMTEtaPatternLut()
destructor
void reset()
reset pattern look-up table