Changeset 11819
- Timestamp:
- 08/06/11 16:38:52 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/EventBuilderWrapper.h
r11758 r11819 414 414 // size_t GetUsedMemory() const { return gi_usedMem; } 415 415 416 void LoadDrsCalibration(const char *fname) 417 { 418 DataCalib::ReadFits(fname, fMsg); 419 } 420 416 421 virtual int CloseOpenFiles() { CloseRunFile(0, 0, 0); return 0; } 417 422 … … 704 709 for (const FAD::EventHeader *ptr=beg; ptr!=end; ptr++) 705 710 { 706 // Event incomplete 707 //if (ptr->fStartDelimiter==0) 708 // return -1; 709 710 // Either one of 711 // * fStatus 712 // * fRunNumber 713 // * fEventCounter 714 // * fAdcClockPhaseShift 715 // * fTriggerGeneratorPrescaler 716 // * fDac 717 // inconsistent 718 719 // FIXME: Produce some output, only once per run or 720 // minute 711 // FIXME: Compare with expectations!!! 712 if (ptr->fStartDelimiter==0) 713 { 714 if (ptr==beg) 715 beg++; 716 continue; 717 } 718 719 if (beg->fStatus != ptr->fStatus) 720 { 721 fMsg.Error("Inconsistency in FAD status detected.... closing run."); 722 CloseRunFile(runNr, 0, 0); 723 return -1; 724 } 725 726 if (beg->fRunNumber != ptr->fRunNumber) 727 { 728 fMsg.Error("Inconsistent run number detected.... closing run."); 729 CloseRunFile(runNr, 0, 0); 730 return -1; 731 } 721 732 722 733 /* 723 if (*ptr != *beg) 734 if (beg->fVersion != ptr->fVersion) 735 { 736 Error("Inconsist firmware version detected.... closing run."); 737 CloseRunFile(runNr, 0, 0); 738 break; 739 } 740 if (beg->fEventCounter != ptr->fEventCounter) 741 { 742 Error("Inconsist run number detected.... closing run."); 743 CloseRunFile(runNr, 0, 0); 744 break; 745 } 746 if (beg->fTriggerCounter != ptr->fTriggerCounter) 747 { 748 Error("Inconsist trigger number detected.... closing run."); 749 CloseRunFile(runNr, 0, 0); 750 break; 751 }*/ 752 753 if (beg->fAdcClockPhaseShift != ptr->fAdcClockPhaseShift) 754 { 755 fMsg.Error("Inconsistent phase shift detected.... closing run."); 756 CloseRunFile(runNr, 0, 0); 724 757 return -1; 725 726 if (ptr->fTriggerType != beg->fTriggerType) 758 } 759 760 if (memcmp(beg->fDac, ptr->fDac, sizeof(beg->fDac))) 761 { 762 fMsg.Error("Inconsistent DAC values detected.... closing run."); 763 CloseRunFile(runNr, 0, 0); 727 764 return -1; 728 if (ptr->fTriggerId != beg->fTriggerId) 765 } 766 767 if (beg->fTriggerType != ptr->fTriggerType) 768 { 769 fMsg.Error("Inconsistent trigger type detected.... closing run."); 770 CloseRunFile(runNr, 0, 0); 729 771 return -1; 730 if (ptr->fVersion != beg->fVersion) 731 return -1; 732 */ 772 } 733 773 } 734 774
Note:
See TracChangeset
for help on using the changeset viewer.