/* 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 ReconTrackerCuts
* Defines Tracker cuts.
*
*/
#ifndef _MAP_MAPCPPRECONTRACKERCUTS_HH_
#define _MAP_MAPCPPRECONTRACKERCUTS_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 ReconTrackerCuts
* Tracker cut class
*/
class ReconTrackerCuts: public ReconCutBase {
public:
/** Constructor - initialises pointers to NULL */
ReconTrackerCuts();
ReconTrackerCuts(float min, float max): ReconCutBase(min, max) {}
explicit ReconTrackerCuts(Json::Value cutParams);
/** Destructor - deletes any allocated memory */
~ReconTrackerCuts();
/** Copy constructor */
ReconTrackerCuts(ReconTrackerCuts& copy);
/** operator= */
ReconTrackerCuts& operator=(ReconTrackerCuts& rhs);
/** DoCut - determines if an event passes the cut criteria */
void DoCuts(ReconEvent* anEvent);
private:
/** Cut Parameters **/
float _min_p_value;
float _TKU_min_mom, _TKU_max_mom;
float _TKD_min_mom, _TKD_max_mom;
float _min_mom_loss, _max_mom_loss;
float _mom_correction;
float _min_mass, _max_mass;
}; // class ReconTrackerCuts
} // namespace MAUS
#endif // _MAP_CPPRECONTOFCUTS_HH_