/* 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 MapCppCutVector * Store the cuts when running over ReconEvent * */ #ifndef _MAP_MAPCPPRECONCUTS_HH_ #define _MAP_MAPCPPRECONCUTS_HH_ // C headers #include #include #include #include // C++ headers #include #include #include #include #include // Other headers #include "Utils/Exception.hh" #include "Utils/Squeak.hh" #include "Config/MiceModule.hh" #include "src/common_cpp/API/MapBase.hh" #include "src/common_cpp/Utils/CppErrorHandler.hh" #include "src/common_cpp/Utils/JsonWrapper.hh" #include "src/common_cpp/Utils/Globals.hh" #include "src/common_cpp/Globals/GlobalsManager.hh" #include "src/common_cpp/DataStructure/ReconEvent.hh" #include "src/common_cpp/DataStructure/ReconCutDataBase.hh" #include "src/common_cpp/DataStructure/Spill.hh" #include "src/map/MapCppReconCuts/ReconCutBase.hh" namespace MAUS { typedef std::vector ReconCutBasePArray; /** @class MappCppCuts * Sets the cut values */ class MapCppReconCuts : public MapBase { public: /** Constructor - initialises pointers to NULL */ MapCppReconCuts(); /** Destructor - deletes any allocated memory */ ~MapCppReconCuts(); private: /** @brief Sets up the worker * * @param argJsonConfigDocument a JSON document with * the configuration. */ void _birth(const std::string& argJsonConfigDocument); /** @brief Shutdowns the worker * This takes no arguments and does nothing */ void _death(); /** @brief process the MAUS data object * * Receive data from recon event for each detector * * @param */ void _process(MAUS::Data *data) const; private: /** * MAUS events * Parameters called in birth: max_tof, min_tof, min_mom, max_mom, min_mass, max_mass, * good_pval */ // JsonCpp setup Json::Value _configJSON; Json::Value _set_Cut_params; ReconCutBasePArray* _cuts_list; }; // class MapCppReconCuts } // namespace MAUS #endif // _MAP_CPPRECONCUTS_HH_