Changeset 11188
- Timestamp:
- 06/24/11 17:38:02 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/EventBuilderWrapper.h
r11186 r11188 949 949 case kDebug: file = new DataFileDebug(runid); break; 950 950 case kFits: file = new DataFileFits(runid); break; 951 case kRaw: file = new DataFile Raw(runid);break;951 case kRaw: file = new DataFileNone(runid); break; 952 952 } 953 953 … … 1088 1088 // 1089 1089 if (!fDebugRead || ibyte==0) 1090 1090 return; 1091 1091 1092 1092 if (!fDumpRead.is_open()) … … 1453 1453 } 1454 1454 1455 vector<uint> fNumConnected; 1456 1455 1457 void debugHead(int socket, const FAD::EventHeader &h) 1456 1458 { … … 1459 1461 return; 1460 1462 1461 const FAD::EventHeader old = fVecHeader[id]; 1462 1463 if (fNumConnected.size()!=40) 1464 fNumConnected.resize(40); 1465 1466 vector<uint> con(gi_NumConnect, gi_NumConnect+40); 1467 1468 bool changed = con!=fNumConnected; 1469 1470 fNumConnected = con; 1471 1472 1473 const FAD::EventHeader old = fVecHeader[id]; 1463 1474 fVecHeader[id] = h; 1464 1475 1465 if (old.fVersion != h.fVersion )1476 if (old.fVersion != h.fVersion || changed) 1466 1477 { 1467 1478 const pair<bool, boost::array<uint16_t,43>> ver = Compare(&h, &h.fVersion); … … 1494 1505 */ 1495 1506 1496 if (old.fTriggerType != h.fTriggerType )1507 if (old.fTriggerType != h.fTriggerType || changed) 1497 1508 { 1498 1509 const pair<bool, boost::array<uint16_t,43>> typ = Compare(&h, &h.fTriggerType); … … 1500 1511 } 1501 1512 1502 if (old.fRunNumber != h.fRunNumber )1513 if (old.fRunNumber != h.fRunNumber || changed) 1503 1514 { 1504 1515 const pair<bool, boost::array<uint32_t,43>> run = Compare(&h, &h.fRunNumber); … … 1506 1517 } 1507 1518 1508 if (old.fDNA != h.fDNA )1519 if (old.fDNA != h.fDNA || changed) 1509 1520 { 1510 1521 const pair<bool, boost::array<uint64_t,43>> dna = Compare(&h, &h.fDNA); … … 1513 1524 } 1514 1525 1515 if (old.fStatus != h.fStatus )1526 if (old.fStatus != h.fStatus || changed) 1516 1527 { 1517 1528 const boost::array<uint16_t,42> sts = CompareBits(&h, &h.fStatus); 1518 1529 fDimStatus.setData(const_cast<uint16_t*>(sts.data()), 42*sizeof(uint16_t)); 1519 1530 fDimStatus.updateService(); 1520 1531 } 1521 1532 } 1522 1533 }; … … 1544 1555 void factOut(int severity, int err, const char *message) 1545 1556 { 1546 EventBuilderWrapper::This->factOut(severity, err, message); 1557 if (severity!=99) 1558 EventBuilderWrapper::This->factOut(severity, err, message); 1547 1559 } 1548 1560
Note:
See TracChangeset
for help on using the changeset viewer.