#include #include #include using namespace RAT; void CherenkovPhotonCountCutProc::SetI( const std::string& param, const int value ) { if( param == "cherenkovCount" ) if( value < 0 ) throw ParamInvalid( param, "cherenkovCount value must be > 0" ); else fCherenkovCount = value; else throw ParamUnknown( param ); } Processor::Result CherenkovPhotonCountCutProc::DSEvent( DS::Run&, DS::Entry& ds ) { if( ds.GetMC().GetNCherPhotons() > fCherenkovCount ) return Processor::OKTRUE; else return Processor::OKFALSE; }