//////////////////////////////////////////////////////////////////// /// \class RAT::JunkCut /// /// \brief Flags junk events for data cleaning /// /// \author Richie Bonventre /// \contact Eric Marzec /// /// REVISION HISTORY:\n /// 31 June 2011 : Richie Bonventre - first version /// 13 Nov 2014 : Eric Marzec - Made myself contact person. /// /// \details This processor tags events that are considered /// junk events. These are either orphaned events, events with /// ECA flags set, or events where a single pmt shows up more /// than once. These events can later be removed from an /// analysis by setting a data cleaning mask. /// /// /// /// //////////////////////////////////////////////////////////////////// #ifndef __RAT_JunkCut__ #define __RAT_JunkCut__ #include #include #include namespace RAT { class JunkCut : public DataCleaningProc { public: JunkCut() : DataCleaningProc("junkcut",1){}; virtual ~JunkCut(){}; virtual Processor::Result DSEvent(DS::Run& run, DS::Entry& ds); protected: virtual Processor::Result Event(DS::Entry& ds, DS::EV& ev); }; } // namespace RAT #endif