//////////////////////////////////////////////////////////////////// /// \class RAT::RingOfFire /// /// \brief Flags ring of fire events for data cleaning /// /// \author Richie Bonventre /// \contact Eric Marzec /// /// REVISION HISTORY:\n /// 21 June 2011 : Richie Bonventre - first version /// 13 Nov 2014 : Eric Marzec - Made myself contact person. /// /// \details This processor tags events that are considered /// "ring of fire" events. These events can later be /// removed from an analysis by setting a data cleaning /// mask. /// /// /// /// //////////////////////////////////////////////////////////////////// #ifndef __RAT_RingOfFire__ #define __RAT_RingOfFire__ #include #include #include namespace RAT { class RingOfFire : public DataCleaningProc { public: RingOfFire() : DataCleaningProc("ringoffire",1){}; virtual ~RingOfFire(){}; 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 fCardLow,fCardHigh,fChannelLow,fChannelHigh; ///< defines the outer ring channels and FECs double fCrateFrac,fRingFrac; ///< Fraction of hits that need to be in one crate and in the ring }; } // namespace RAT #endif