90 string defaultPath =
"L1TriggerConfig/DTTrackFinder/parameters/";
91 string eau_dir =
"L1TriggerData/DTTrackFinder/Eau/";
99 if ( file.
open() != 0 )
return -1;
107 while ( file.
good() ) {
110 if ( !file.
good() )
break;
112 if ( !file.
good() )
break;
114 if ( !file.
good() )
break;
116 if ( !file.
good() )
break;
121 if ( !file.
good() ) { file.
close();
break; }
138 cout <<
"L1 barrel Track Finder ETA Pattern look-up table :" << endl;
139 cout <<
"==================================================" << endl;
142 cout <<
"ETF Patterns : " << m_lut.size() << endl;
143 cout <<
"======================" << endl;
146 LUT::const_iterator
iter = m_lut.begin();
147 while ( iter != m_lut.end() ) {
148 cout << (*iter).second << endl;
162 LUT::const_iterator it = m_lut.find(
id);
163 if ( it == m_lut.end() ) {
164 cerr <<
"Error: L1MuDTEtaPatternLut: pattern not found : " <<
id << endl;
L1MuDTEtaPatternLut()
constructor
void reset()
reset pattern look-up table
bool good()
return status of file stream
int load()
load pattern look-up table
L1MuDTEtaPattern getPattern(int id) const
get pattern with a given ID
virtual ~L1MuDTEtaPatternLut()
destructor
void ignoreLines(int n)
read and ignore n lines from file
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