//////////////////////////////////////////////////////////////////// /// \class RAT::PrescaleCut /// /// \brief Flags a prescaled fraction of events /// /// \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. /// //////////////////////////////////////////////////////////////////// #ifndef __RAT_PrescaleCut__ #define __RAT_PrescaleCut__ #include #include #include namespace RAT { class PrescaleCut : public DataCleaningProc { public: PrescaleCut() : DataCleaningProc("prescalecut",1){}; virtual ~PrescaleCut(){}; Processor::Result DSEvent(DS::Run& run, DS::Entry& ds); void BeginOfRun(DS::Run&); protected: Processor::Result Event(DS::Entry& ds, DS::EV& ev); double fFraction; ///< Fraction of events that are not tagged }; } // namespace RAT #endif