Changeset 11420
- Timestamp:
- 07/15/11 15:23:47 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/EventBuilderWrapper.h
r11381 r11420 63 63 { 64 64 ostringstream name; 65 name << Time().NightAsInt() << ' .' << setfill('0') << setw(3) << runid << '.' << extension;65 name << Time().NightAsInt() << '_' << setfill('0') << setw(3) << runid << '.' << extension; 66 66 return name.str(); 67 67 } … … 502 502 //now the events header related variables 503 503 WriteKey("VERSION", h->Version, "Builder version"); 504 WriteKey("NIGHT", Time().NightAsInt(), "Night as int"); 505 WriteKey("RUNID", GetRunId(), "Run number"); 504 506 WriteKey("RUNTYPE", h->RunType, "Type of run"); 505 507 WriteKey("NBOARD", h->NBoard, "Number of acquisition boards"); … … 507 509 WriteKey("NTM", h->NTm, "Number of Time marks"); 508 510 WriteKey("NROI", h->Nroi, "Number of slices per pixels"); 511 WriteKey("CAMERA", "MGeomCamFact", ""); 509 512 /* 510 513 //now the boards related keywords … … 770 773 DimDescribedService fDimDNA; 771 774 DimDescribedService fDimTemperature; 775 DimDescribedService fDimPrescaler; 772 776 DimDescribedService fDimRefClock; 773 777 DimDescribedService fDimStatistics1; … … 819 823 fDimDNA ("FAD_CONTROL/DNA", "X:40", ""), 820 824 fDimTemperature ("FAD_CONTROL/TEMPERATURE", "F:82", ""), 825 fDimPrescaler ("FAD_CONTROL/PRESCALER", "S:42", ""), 821 826 fDimRefClock ("FAD_CONTROL/REFERENCE_CLOCK", "I:42", ""), 822 827 fDimStatistics1 ("FAD_CONTROL/STATISTICS1", "I:3;I:2;X:4;I:3;I:1;I:2;C:40;I:40;I:40;X:40", ""), … … 1367 1372 } 1368 1373 1374 set<uint32_t> fStartedRuns; 1375 1376 bool IsRunStarted(uint32_t runno) const 1377 { 1378 return fStartedRuns.find(runno)!=fStartedRuns.end(); 1379 } 1380 1381 void gotNewRun(int runnr, PEVNT_HEADER *headers) 1382 { 1383 fStartedRuns.insert(runnr); 1384 } 1385 1369 1386 map<boost::thread::id, string> fLastMessage; 1370 1387 … … 1635 1652 const boost::array<uint32_t,42> run = Compare(&h, &h.fRunNumber); 1636 1653 fDimRunNumber.Update(run); 1654 } 1655 1656 if (old.fTriggerGeneratorPrescaler != h.fTriggerGeneratorPrescaler || changed) 1657 { 1658 const boost::array<uint16_t,42> pre = Compare(&h, &h.fTriggerGeneratorPrescaler); 1659 fDimPrescaler.Update(pre); 1637 1660 } 1638 1661 … … 1780 1803 return EventBuilderWrapper::This->eventCheck(fadhd, event); 1781 1804 } 1805 1806 void gotNewRun( int runnr, PEVNT_HEADER *headers ) 1807 { 1808 return EventBuilderWrapper::This->gotNewRun(runnr, headers); 1809 } 1782 1810 } 1783 1811
Note:
See TracChangeset
for help on using the changeset viewer.