//////////////////////////////////////////////////////////////////// /// \class RAT::CrateIsotropy /// /// \brief Flags crateisotropy events for data cleaning /// /// \author Richie Bonventre /// \contact Eric Marzec /// /// REVISION HISTORY:\n /// 19 July 2011 : Richie Bonventre - first version /// 13 Nov 2014 : Eric Marzec - Made myself contact person. /// /// \details This processor tags events that are anisotropic /// in electronics space. These events can later be /// removed from an analysis by setting a data cleaning /// mask. /// /// /// /// //////////////////////////////////////////////////////////////////// #ifndef __RAT_CrateIsotropy__ #define __RAT_CrateIsotropy__ #include #include #include namespace RAT { class CrateIsotropy : public DataCleaningProc { public: CrateIsotropy() : DataCleaningProc("crateisotropy",1){}; virtual ~CrateIsotropy(){}; 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); double fCrateFrac; ///< fraction of hits that need to be in one crate double fCardFrac; ///< fraction of hits in crate that need to be in adjacent cards double fChanFrac; ///< fraction of hits in crate that need to be in adjacent channels }; } // namespace RAT #endif