//////////////////////////////////////////////////////////////////// /// \class RAT::ITCTimeSpreadCut /// /// \brief Flags events based on time spread for data cleaning /// /// \author Richie Bonventre /// \contact Eric Marzec /// /// REVISION HISTORY:\n /// 2 August 2011 : Richie Bonventre - first version /// 13 Nov 2014 : Eric Marzec - Made myself contact person. /// /// \details This processor tags events based on the time spread /// of the hits in a way that is independent of the PMT geometry /// (unlike the FTSCut) /// /// /// //////////////////////////////////////////////////////////////////// #ifndef __RAT_ITCTimeSpreadCut__ #define __RAT_ITCTimeSpreadCut__ #include #include #include namespace RAT { class ITCTimeSpreadCut : public DataCleaningProc { public: ITCTimeSpreadCut() : DataCleaningProc("itctimespreadcut",1){}; virtual ~ITCTimeSpreadCut(){}; Processor::Result DSEvent(DS::Run& run, DS::Entry& ds); void BeginOfRun(DS::Run&); protected: Processor::Result Event(DS::Entry& ds, DS::EV& ev); double fWindowSize; ///< time window in ns double fWindowStep; ///< step size in ns double fRatioCut; ///< cut on ratio greater than this }; } // namespace RAT #endif