/* 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 ReconTOFCuts * Defines TOF cuts. * */ #ifndef _MAP_MAPCPPRECONTOFCUTS_HH_ #define _MAP_MAPCPPRECONTOFCUTS_HH_ // C++ headers #include #include #include #include "src/common_cpp/DataStructure/ReconEvent.hh" #include "src/common_cpp/DataStructure/ReconCutDataBase.hh" #include "src/map/MapCppReconCuts/ReconCutBase.hh" namespace MAUS { /** @class ReconTOFCuts * TOF cut class */ class ReconTOFCuts: public ReconCutBase { public: /** Constructor - initialises pointers to NULL */ ReconTOFCuts(); ReconTOFCuts(float min, float max): ReconCutBase(min, max) {} explicit ReconTOFCuts(Json::Value cutParams); /** Copy constructor */ ReconTOFCuts(ReconTOFCuts& copy) { SetMin(copy.GetMin()); SetMax(copy.GetMax()); } /** operator= */ ReconTOFCuts& operator=(ReconTOFCuts& rhs) { SetMin(rhs.GetMin()); SetMax(rhs.GetMax()); return *this; } /** Destructor - deletes any allocated memory */ ~ReconTOFCuts(); /** DoCut - determines if an event passes the cut criteria */ void DoCuts(ReconEvent* anEvent); private: }; // class ReconTOFCuts } // namespace MAUS #endif // _MAP_CPPRECONTOFCUTS_HH_