Changeset 9901 for trunk/Mars
- Timestamp:
- 08/30/10 09:52:12 (14 years ago)
- Location:
- trunk/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/Changelog
r9900 r9901 26 26 * mgeom/MGeomCamFACT.cc: 27 27 - changed default distance from 4.8887 to 4.90 28 29 * mbase/MLut.cc: 30 - added possibility to have comment (ignored) lines 28 31 29 32 -
trunk/Mars/mbase/MLut.cc
r9518 r9901 286 286 // The lines can have a different number of entries. 287 287 // 288 // Lines which first(!) character is a # are ignored (as they are not 289 // existing in the file) 290 // 288 291 Int_t MLut::ReadStream(istream &fin) 289 292 { … … 293 296 294 297 Int_t n = 0; 298 Int_t l = 0; 295 299 296 300 while (1) … … 301 305 break; 302 306 307 l++; 308 309 if (line[0]=='#') 310 continue; 311 303 312 n++; 304 313 305 314 if (line.Contains(reg)) 306 315 { 307 gLog << warn << "WARNING - MLut::ReadStream: Line #" << n<< " contains invalid character... ignored." << endl;316 gLog << warn << "WARNING - MLut::ReadStream: Line #" << l << " contains invalid character... ignored." << endl; 308 317 continue; 309 318 }
Note:
See TracChangeset
for help on using the changeset viewer.