//////////////////////////////////////////////////////////////////// /// \class RAT::Empty crate /// /// \brief Flags high nhit events with empty crates /// /// \author Tanner Kaptanoglu /// \contact Tanner Kaptanoglu /// /// REVISION HISTORY:\n /// 31 March 2018 : Tanner Kaptanoglu - first version /// /// \details This processor is designed to flag high /// nhit events that are focused on only a /// couple crates, as you would expect for /// dry end breakdown. /// //////////////////////////////////////////////////////////////////// #ifndef __RAT_EmptyCrate__ #define __RAT_EmptyCrate__ #include #include #include namespace RAT { class EmptyCrate : public DataCleaningProc { public: EmptyCrate() : DataCleaningProc("emptycrate",1){}; virtual ~EmptyCrate(){}; 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 fEmptyCrateNHit; ///< minimum nhit for events to consider int fEmptyCrateNum; ///< maximum number of empty crates }; } // namespace RAT #endif