//////////////////////////////////////////////////////////////////// /// \class RAT::NhitCut /// /// \brief Flags events below a nHit threshold /// /// \author Rob Knapik /// \contact Rob Knapik /// /// REVISION HISTORY:\n /// 5 April 2017 : Rob Knapik - first version /// /// \details This processor tags events that below a /// nHit threshold that is defined in the DC ratdb /// file. This cut can be used to filter events /// pre-reconstruction or filter events pre-writting out /// by using the DataCleaningCutProc. /// //////////////////////////////////////////////////////////////////// #ifndef __RAT_NhitCut__ #define __RAT_NhitCut__ #include #include #include namespace RAT { class NhitCut : public DataCleaningProc { public: NhitCut() : DataCleaningProc("nhitcut",1){}; virtual ~NhitCut(){}; virtual Processor::Result DSEvent(DS::Run& run, DS::Entry& ds); void BeginOfRun(DS::Run&); protected: virtual Processor::Result Event(DS::Entry& ds, DS::EV& ev); int fNhitValue; ///< All events below this nhit value are flagged }; } // namespace RAT #endif