Changeset 11542 for trunk/FACT++
- Timestamp:
- 07/22/11 22:39:32 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/EventBuilderWrapper.h
r11539 r11542 306 306 { 307 307 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 << "]"; 309 310 Error(str); 310 311 … … 317 318 { 318 319 ostringstream str; 319 str << "ofstream::close() failed for '" << name<< "': " << strerror(errno) << " [errno=" << errno << "]";320 str << "ofstream::close() failed for '" << GetFileName() << "': " << strerror(errno) << " [errno=" << errno << "]"; 320 321 Error(str); 321 322 … … 544 545 545 546 // Header values whihc won't change during the run 546 WriteKey(" BOARDID", i, hh.board_id, "ID");547 WriteKey("DNA", 548 WriteKey("FWVER", 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"); 549 550 } 550 551 … … 1578 1579 } 1579 1580 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; 1585 1586 1586 1587 if (*val!=*ref) … … 1706 1707 if (old.fStatus != h.fStatus || changed) 1707 1708 { 1709 cout << "Send" << endl; 1708 1710 const array<uint16_t,42> sts = CompareBits(&h, &h.fStatus); 1709 1711 Update(fDimStatus, sts); … … 1741 1743 data.insert(data.end(), tmp[0].data(), tmp[0].data()+40); // val: 42-81 1742 1744 1743 for (int j= 0; j<=3; j++)1745 for (int j=1; j<=3; j++) 1744 1746 { 1745 1747 const array<int16_t,42> &ref = tmp[j]; … … 1750 1752 1751 1753 // Global max 1752 if (ref[41]>data[4 0]) // 41=max1753 data[4 0] = 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++) 1756 1758 { 1757 1759 // min per board … … 1763 1765 data[i+42] = ref[i]; // ref: 0-39 1764 1766 } 1765 } 1767 1768 1769 } 1766 1770 1767 1771 vector<float> deg(82); // 0: global min, 1-40: min
Note:
See TracChangeset
for help on using the changeset viewer.