Changeset 12050 for trunk/FACT++/gui
- Timestamp:
- 09/08/11 22:25:59 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/FactGui.h
r12046 r12050 3630 3630 // -------------------------------------------------------------------------- 3631 3631 3632 if (!fPixelMap.Read( "FACTmapV5a.txt"))3633 { 3634 cerr << "ERROR - Problems reading FACTmapV5a.txt"<< endl;3632 if (!fPixelMap.Read(conf.Get<string>("pixel-map-file"))) 3633 { 3634 cerr << "ERROR - Problems reading " << conf.Get<string>("pixel-map-file") << endl; 3635 3635 exit(-1); 3636 3636 } 3637 3637 3638 /*3639 ifstream fin0("FACTmapV5.txt");3640 3641 int l = 0;3642 3643 string buf;3644 while (getline(fin0, buf, '\n'))3645 {3646 if (l>1439)3647 break;3648 3649 buf = Tools::Trim(buf);3650 if (buf[0]=='#')3651 continue;3652 3653 stringstream str(buf);3654 3655 int idummy;3656 float fdummy;3657 3658 PixelMapEntry entry;3659 3660 str >> entry.index;3661 str >> entry.cbpx;3662 str >> idummy;3663 str >> idummy;3664 str >> entry.gapd;3665 str >> fdummy;3666 str >> entry.hv_board;3667 str >> entry.hv_channel;3668 str >> fdummy;3669 str >> fdummy;3670 str >> fdummy;3671 3672 fPixelMap[l++] = entry;3673 }3674 3675 if (l!=1440)3676 {3677 cerr << "ERROR - Problems reading FACTmapV5.txt" << endl;3678 exit(-1);3679 }3680 */3681 3638 // -------------------------------------------------------------------------- 3682 3639
Note:
See TracChangeset
for help on using the changeset viewer.