00001 #ifndef _Q_LC_TRIGGER_FINDER_HH_ 00002 #define _Q_LC_TRIGGER_FINDER_HH_ 00003 00004 #include "QTriggerFinder.hh" 00005 00006 #include "QEvent.hh" 00007 #include "QCuore.hh" 00008 #include "QBuilderDefs.hh" 00009 00010 #include <map> 00011 00012 class QLCTriggerFinder: public QTriggerFinder 00013 { 00014 public: 00015 00017 QLCTriggerFinder(); 00018 00020 virtual ~QLCTriggerFinder(); 00021 00023 virtual bool Consolidate(); 00024 00025 protected: 00026 virtual void CheckExtraBits(const QBuilderInfo_t& info, 00027 const unsigned long long sampleIndex, 00028 const long data); 00029 00030 virtual void SetAuxData(QEvent* ev); 00031 00032 private: 00033 std::map<unsigned short, std::map<long long, unsigned short> > fTimeMap; 00034 std::map<unsigned short, unsigned short> fLastId; 00035 00036 unsigned short GetConfigId(const unsigned short lg, 00037 const long long time) const; 00038 }; 00039 00040 #endif