Changeset 11542 for trunk/FACT++/src


Ignore:
Timestamp:
07/22/11 22:39:32 (13 years ago)
Author:
tbretz
Message:
Replaced BOARDID in fits header by just id (BOARDID is too long); made error messages compile again; another fix to fix the temperature min/max transmission
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/EventBuilderWrapper.h

    r11539 r11542  
    306306        {
    307307            ostringstream str;
    308             str << "ofstream::write() failed for '" << name << "': " << strerror(errno) << " [errno=" << errno << "]";
     308
     309            str << "ofstream::write() failed for '" << GetFileName() << "': " << strerror(errno) << " [errno=" << errno << "]";
    309310            Error(str);
    310311
     
    317318        {
    318319            ostringstream str;
    319             str << "ofstream::close() failed for '" << name << "': " << strerror(errno) << " [errno=" << errno << "]";
     320            str << "ofstream::close() failed for '" << GetFileName() << "': " << strerror(errno) << " [errno=" << errno << "]";
    320321            Error(str);
    321322
     
    544545
    545546            // Header values whihc won't change during the run
    546             WriteKey("BOARDID", i, hh.board_id,   "ID");
    547             WriteKey("DNA",     i, hh.DNA,        "DNA");
    548             WriteKey("FWVER",   i, hh.version_no, "Firmware Version");
     547            WriteKey("ID",    i, hh.board_id,   "Board ID");
     548            WriteKey("DNA",   i, hh.DNA,        "DNA");
     549            WriteKey("FWVER", i, hh.version_no, "Firmware Version");
    549550        }
    550551
     
    15781579            }
    15791580
    1580             if (*val<*min)
    1581                 min = val;
    1582 
    1583             if (*val>*max)
    1584                 max = val;
     1581            if (*ref<*min)
     1582                min = ref;
     1583
     1584            if (*ref>*max)
     1585                max = ref;
    15851586
    15861587            if (*val!=*ref)
     
    17061707        if (old.fStatus != h.fStatus || changed)
    17071708        {
     1709            cout << "Send" << endl;
    17081710            const array<uint16_t,42> sts = CompareBits(&h, &h.fStatus);
    17091711            Update(fDimStatus, sts);
     
    17411743            data.insert(data.end(), tmp[0].data(), tmp[0].data()+40);   // val: 42-81
    17421744
    1743             for (int j=0; j<=3; j++)
     1745            for (int j=1; j<=3; j++)
    17441746            {
    17451747                const array<int16_t,42> &ref = tmp[j];
     
    17501752
    17511753                // Global max
    1752                 if (ref[41]>data[40])          // 41=max
    1753                     data[40] = ref[41];
    1754 
    1755                 for (int i=0; i<40; i++)       
     1754                if (ref[41]>data[41])          // 41=max
     1755                    data[41] = ref[41];
     1756
     1757                for (int i=0; i<40; i++)
    17561758                {
    17571759                    // min per board
     
    17631765                        data[i+42] = ref[i];   // ref:   0-39
    17641766                }
    1765             }
     1767
     1768
     1769           }
    17661770
    17671771            vector<float> deg(82);              //  0: global min,  1-40: min
Note: See TracChangeset for help on using the changeset viewer.