Changeset 11202
- Timestamp:
- 06/27/11 17:21:58 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/EventBuilderWrapper.h
r11200 r11202 1227 1227 */ 1228 1228 1229 bool ok_verno;1230 bool ok_runno;1231 // uint16_t ok_bitmask;1232 /*1233 const vector<uint16_t> verno = CheckVals(fadhd, &fadhd->version_no, ok_verno);1234 const vector<uint32_t> runno = CheckVals(fadhd, &fadhd->runnumber, ok_runno);1235 // const vector<uint8_t> bitmask = CheckBits(fadhd, &fadhd->PLLLCK, ok_bitmask);1236 1237 static vector<uint16_t> fStoreVersion;1238 1239 if (verno!=fStoreVersion)1240 {1241 vector<float> data(40);1242 for (int i=0; i<40; i++)1243 {1244 ostringstream ver;1245 ver << (verno[i]&0xff) << '.' << (verno[i]>>8); // WARNING: No byte-swap yet!1246 data[i] = atof(ver.str().c_str());1247 }1248 fDimFwVersion.Update(data);1249 fStoreVersion=verno;1250 }1251 */1252 1229 /* 1253 1230 uint16_t start_package_flag; … … 1347 1324 // array[4] enthaelt wieviele bytes im Buffer aktuell belegt sind; daran 1348 1325 // kannst Du pruefen, ob die 100MB voll sind .... 1349 1350 /*1351 stat[0]= qwait;1352 stat[1]= qskip;1353 stat[2]= qdel ;1354 stat[3]= qtot ;1355 stat[4]= gi_usedMem ;1356 stat[5]= qread;1357 stat[6]= qconn;1358 */1359 1326 1360 1327 ostringstream str; … … 1520 1487 } 1521 1488 1489 if (old.fDNA != h.fDNA || changed) 1490 { 1491 const boost::array<uint64_t,42> dna = Compare(&h, &h.fDNA); 1492 Update(fDimDNA, dna, 40); 1493 } 1494 1495 if (old.fStatus != h.fStatus || changed) 1496 { 1497 const boost::array<uint16_t,42> sts = CompareBits(&h, &h.fStatus); 1498 Update(fDimStatus, sts); 1499 } 1500 1522 1501 /* 1523 1502 uint16_t fTriggerType; … … 1529 1508 uint16_t fTriggerGeneratorPrescaler; 1530 1509 uint32_t fTimeStamp; 1531 uint32_t fRunNumber;1532 1510 int16_t fTempDrs[kNumTemp]; // In units of 1/16 deg(?) 1533 1511 uint16_t fDac[kNumDac]; 1534 1512 */ 1535 1536 if (old.fTriggerType != h.fTriggerType || changed)1537 {1538 const boost::array<uint16_t,42> typ = Compare(&h, &h.fTriggerType);1539 //Print("Typ", typ);1540 }1541 1542 if (old.fDNA != h.fDNA || changed)1543 {1544 const boost::array<uint64_t,42> dna = Compare(&h, &h.fDNA);1545 Update(fDimDNA, dna, 40);1546 }1547 1548 if (old.fStatus != h.fStatus || changed)1549 {1550 const boost::array<uint16_t,42> sts = CompareBits(&h, &h.fStatus);1551 Update(fDimStatus, sts);1552 }1553 1513 } 1554 1514 };
Note:
See TracChangeset
for help on using the changeset viewer.