/* 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 . * */ #ifndef _SRC_MAP_MAPCPPTrackerClusterRecon_H_ #define _SRC_MAP_MAPCPPTrackerClusterRecon_H_ // #define KALMAN_TEST // C headers #include #include #include // C++ headers #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/SciFiEvent.hh" #include "src/common_cpp/DataStructure/Spill.hh" #include "src/common_cpp/Recon/SciFi/SciFiClusterRec.hh" #include "src/common_cpp/Recon/SciFi/SciFiGeometryHelper.hh" namespace MAUS { struct SciFiPlaneGeometry; /** @class MapCppTrackerClusterRecon * Group channel hits in the tracker to make clusters. * */ class MapCppTrackerClusterRecon : public MapBase { public: /** Constructor - initialises pointers to NULL */ MapCppTrackerClusterRecon(); /** Constructor - deletes any allocated memory */ ~MapCppTrackerClusterRecon(); private: /** Sets up the worker * * \param argJsonConfigDocument a JSON document with * the configuration. */ void _birth(const std::string& argJsonConfigDocument); /** Shutdowns the worker * * This takes no arguments and does nothing */ void _death(); /** Process MAUS data object * * Receive a data object with digits (either MC or real) and then call the higher level * reconstruction algorithms * * \param document a line/spill from the JSON input */ void _process(Data* data) const; private: void _set_field_values(SciFiEvent* event) const; /// Should we form clusters? - boolean pulled in from config data bool _clusters_on; /// This will contain the configuration Json::Value _configJSON; /// Cut value for npe. double _min_npe; /// Value above which reconstruction is aborted. int _size_exception; /// Reconstruction Classes SciFiClusterRec _cluster_recon; /// Map of the planes geometry. SciFiGeometryHelper _geometry_helper; }; // Don't forget this trailing colon!!!! } // ~namespace MAUS #endif