///////////////////////////////////////////////////////////////////////// // Conditional return on the nhit value. Returns OKTRUE if the event // deposits any energy in the scintillator, or OKFALSE if no energy is // deposited here. // // Author: Matt Mottram // // REVISION HISTORY: // 2014-01-16 : M. Mottram: new revision // ///////////////////////////////////////////////////////////////////////// #ifndef __RAT_ScintEdepCutProc__ #define __RAT_ScintEdepCutProc__ #include namespace RAT { class ScintEdepCutProc : public Processor { public: // Create a new cut processor, cuts events with no energy deposited in the scint. ScintEdepCutProc() : Processor("ScintEdepCutProc"), fScintEdep(0.0) { }; // Destroy the processor virtual ~ScintEdepCutProc() { }; // Applies the scintEDep command. // // param should be scintEdep // value should be the minimum value // throws ParamUnknown if param is not scintEdep // throws ParamInvalid if value is negative virtual void SetD( const std::string& param, const double value ); // Process the event // // Conditional on the energy deposited in the scintillator // // run: Data structure for the run // ds: Data structure for the event // returns OKTRUE if the scintEdep > fScintEdep or OKFALSE if not virtual Processor::Result DSEvent( DS::Run& run, DS::Entry& ds ); protected: float fScintEdep; // Minimum energy in the scintillator for event. }; } // namespace RAT #endif