Changeset 12219
- Timestamp:
- 10/20/11 13:40:44 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/EventBuilderWrapper.h
r12091 r12219 868 868 return; 869 869 870 /*871 870 // Workaround to find a valid header..... 872 871 const FAD::EventHeader *beg = reinterpret_cast<FAD::EventHeader*>(fadhd); … … 875 874 // FIMXE: Compare with target configuration 876 875 877 for (const FAD::EventHeader *ptr=beg; ptr!=end; ptr++, beg++) 878 if (ptr->fStartDelimiter!=0) 879 break; 876 for (const FAD::EventHeader *ptr=beg; ptr!=end; ptr++) 877 { 878 if (ptr->fStartDelimiter==0) 879 continue; 880 881 if (!ptr->HasTriggerLPext() && !ptr->HasTriggerLPint()) 882 return; 883 } 880 884 881 885 if (ptr->fStartDelimiter==0) 882 886 return; 883 */884 /*885 // FIXME: Time limit?!886 static Time oldt(boost::date_time::neg_infin);887 Time newt;888 889 // FIXME: Only send events if the have newer run-numbers890 if (newt<oldt+boost::posix_time::milliseconds(100))891 return;892 893 oldt = newt;894 */895 896 // FIXME: Check event type here897 887 898 888 vector<float> data(event->Roi*1440); 899 900 889 DataCalib::Apply(data.data(), event->Adc_Data, event->StartPix, event->Roi); 901 890
Note:
See TracChangeset
for help on using the changeset viewer.