00001 00007 #ifndef CHANNELMODULE_h 00008 #define CHANNELMODULE_h 00009 00010 #include "BaseModule.hh" 00011 00016 class ChannelModule : public BaseModule{ 00017 public: 00018 ChannelModule(const std::string& name="", const std::string& helptext=""); 00019 virtual ~ChannelModule(); 00020 int Process(EventPtr event); 00021 00023 virtual int Process(ChannelData* chdata)=0; 00024 00026 bool CheckCuts(ChannelData* chdata); 00027 00028 protected: 00029 EventPtr _current_event; 00030 bool _skip_sum; 00031 bool _sum_only; 00032 }; 00033 00034 #endif 00035