/* This file is part of MAUS: http://micewww.pp.rl.ac.uk:8080/projects/maus * * MAUS is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * MAUS is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with MAUS. If not, see . * */ /** @class ReconMiscCuts * Defines Misc cuts. * */ #ifndef _MAP_MAPCPPRECONMISCCUTS_HH_ #define _MAP_MAPCPPRECONMISCCUTS_HH_ // C++ headers #include #include #include #include "src/common_cpp/DataStructure/ReconEvent.hh" #include "src/common_cpp/DataStructure/ReconCutDataBase.hh" #include "src/common_cpp/Utils/JsonWrapper.hh" #include "src/map/MapCppReconCuts/ReconCutBase.hh" namespace MAUS { /** @class ReconMiscCuts * Misc cut class */ class ReconMiscCuts: public ReconCutBase { public: /** Constructor - initialises pointers to NULL */ ReconMiscCuts(); ReconMiscCuts(float min, float max): ReconCutBase(min, max) {} explicit ReconMiscCuts(Json::Value cutParams); /** Destructor - deletes any allocated memory */ ~ReconMiscCuts(); /** Copy constructor */ ReconMiscCuts(ReconMiscCuts& copy); /** operator= */ ReconMiscCuts& operator=(ReconMiscCuts& rhs); /** DoCut - determines if an event passes the cut criteria */ void DoCuts(ReconEvent* anEvent); private: /** Cut Parameters **/ Json::Value _good_particle; }; // class ReconMiscCuts } // namespace MAUS #endif // _MAP_CPPRECONMISCCUTS_HH_