00001 #ifndef CAFUTIL_FINDDUPLICATEEVENTS_HPP__ 00002 #define CAFUTIL_FINDDUPLICATEEVENTS_HPP__ 00003 00004 #include "cafe/Event.hpp" 00005 #include "cafe/Processor.hpp" 00006 00007 namespace caf_util { 00008 00028 class FindDuplicateEvents : public cafe::Processor 00029 { 00030 public: 00031 00032 ClassDef(FindDuplicateEvents, 0) ; // ROOT magic 00033 00034 FindDuplicateEvents(const char *name); 00035 ~FindDuplicateEvents() {}; 00036 bool processEvent(cafe::Event &event); 00037 void finish(); 00038 00039 typedef std::pair<int,int> Key; 00040 typedef std::set <Key> KeySet; 00041 typedef KeySet::const_iterator KeyIter; 00042 00043 private: 00044 00045 int _nscreams, _ndups; 00046 bool _ignoreMC; 00047 KeySet _keys; 00048 static const TString _line; 00049 00050 cafe::Variables _vars; //< variables to be read from branch 00051 }; 00052 00053 } 00054 #endif // CAFUTIL_FINDDUPLICATEEVENTS_HPP__
1.3.4