Changeset 11179 for trunk/FACT++/src
- Timestamp:
- 06/24/11 15:46:00 (13 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/EventBuilderWrapper.h
r11177 r11179 722 722 DimDescribedService fDimFwVersion; 723 723 DimDescribedService fDimStatus; 724 DimDescribedService fDimDNA; 724 725 DimDescribedService fDimStatistics; 725 726 … … 742 743 fDimFwVersion ("FAD_CONTROL/FIRMWARE_VERSION", "F:43", ""), 743 744 fDimStatus ("FAD_CONTROL/STATUS", "S:42", ""), 745 fDimDNA ("FAD_CONTROL/DNA", "X:40", ""), 744 746 fDimStatistics ("FAD_CONTROL/STATISTICS", "X:8", ""), 745 747 fDebugStream(false), fDebugRead(false) … … 1453 1455 { 1454 1456 const pair<bool, boost::array<uint16_t,43>> ver = Compare(&h, &h.fVersion); 1455 //Print("Ver", ver);1456 1457 1457 1458 pair<bool, boost::array<float,43>> data; … … 1467 1468 } 1468 1469 1470 /* 1471 uint16_t fTriggerType; 1472 uint32_t fTriggerId; 1473 uint32_t fEventCounter; 1474 uint32_t fFreqRefClock; 1475 uint16_t fAdcClockPhaseShift; 1476 uint16_t fNumTriggersToGenerate; 1477 uint16_t fTriggerGeneratorPrescaler; 1478 uint64_t fDNA; // Xilinx DNA 1479 uint32_t fTimeStamp; 1480 uint32_t fRunNumber; 1481 int16_t fTempDrs[kNumTemp]; // In units of 1/16 deg(?) 1482 uint16_t fDac[kNumDac]; 1483 */ 1484 1469 1485 if (old.fTriggerType != h.fTriggerType) 1470 1486 { … … 1477 1493 const pair<bool, boost::array<uint32_t,43>> run = Compare(&h, &h.fRunNumber); 1478 1494 Print("Run", run); 1495 } 1496 1497 if (old.fDNA != h.fDNA) 1498 { 1499 const pair<bool, boost::array<uint64_t,43>> dna = Compare(&h, &h.fDNA); 1500 fDimDNA.setData(const_cast<uint64_t*>(dna.second.data())+3, 40*sizeof(uint64_t)); 1501 fDimDNA.updateService(); 1479 1502 } 1480 1503 -
trunk/FACT++/src/fad.cc
r11161 r11179 324 324 fHeader.fBoardId = (fBoardId%10) | ((fBoardId/10)<<8); 325 325 fHeader.fRunNumber = 1; 326 fHeader.fDNA = reinterpret_cast<uint64_t>(this); 326 327 fHeader.fStatus = 0xf<<12 | 327 328 FAD::EventHeader::kDenable | … … 330 331 FAD::EventHeader::kDcmReady | 331 332 FAD::EventHeader::kSpiSclk; 333 332 334 333 335 fStartTime = Time(Time::utc).UnixTime();
Note:
See TracChangeset
for help on using the changeset viewer.