#include #include #include using namespace RAT; void ScintEdepCutProc::SetD( const std::string& param, const double value ) { if( param == "scintEdep" ) if( value < 0.0 ) throw ParamInvalid( param, "scintEdep value must be >= 0.0" ); else fScintEdep = value; else throw ParamUnknown( param ); } Processor::Result ScintEdepCutProc::DSEvent( DS::Run&, DS::Entry& ds ) { if( ds.GetMC().GetScintEnergyDeposit() > fScintEdep ) return Processor::OKTRUE; else return Processor::OKFALSE; }