Changeset 12050 for trunk/FACT++/gui


Ignore:
Timestamp:
09/08/11 22:25:59 (13 years ago)
Author:
tbretz
Message:
Replaced build in FACTmapV5(a) by a program otpion.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/gui/FactGui.h

    r12046 r12050  
    36303630        // --------------------------------------------------------------------------
    36313631
    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;
    36353635            exit(-1);
    36363636        }
    36373637
    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  */
    36813638        // --------------------------------------------------------------------------
    36823639
Note: See TracChangeset for help on using the changeset viewer.