////////////////////////////////////////////////////////////////////////////// // Conditional cut on fit validity. Returns OKTRUE if the validity // of the specified fit parameter of specified FitVertex of a named // FitResult is true. If multiple FitVertexes are present then will // check ALL of them. // // Author: Matt Mottram // // REVISION HISTORY: // - 2015/03/10: M. Mottram: first instance // ////////////////////////////////////////////////////////////////////////////// #ifndef __RAT_FitValidityCutProc__ #define __RAT_FitValidityCutProc__ #include namespace RAT{ class FitValidityCutProc : public Processor { public: // New instance of the named processor FitValidityCutProc() : Processor("FitValidityCutProc") { }; // Destructor virtual ~FitValidityCutProc() { } // Set string parameter via /rat/procset virtual void SetS( const std::string& param, const std::string& value ); // Process the event virtual Processor::Result DSEvent( DS::Run& run, DS::Entry& ds ); protected: std::string fFitName; // Name of FitResult to access std::string fFitParameter; // Parameter within FitVertex to access }; } #endif // __RAT_FitValidityCutProc__