/* 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_MAPCPPRECONCUTBASE_HH_
#define _MAP_MAPCPPRECONCUTBASE_HH_
// C++ headers
#include
#include
#include
#include "src/common_cpp/DataStructure/ReconEvent.hh"
#include "src/common_cpp/DataStructure/ReconCutDataBase.hh"
namespace MAUS {
/** @class ReconCutBase
* Cut base class
*/
class ReconCutBase {
public:
/** Constructor - initialises pointers to NULL */
ReconCutBase();
ReconCutBase(float min, float max) {
_min = min;
_max = max;
}
/** Destructor - deletes any allocated memory */
virtual ~ReconCutBase()=0;
/** DoCuts - determines if an event passes the cut criteria */
virtual void DoCuts(ReconEvent* anEvent)=0;
/** SetCutParams - sets parameters used to determine if the cut is passed */
void SetCutParams(float min, float max) {
_min = min;
_max = max;
}
void SetMin(float min) {
_min = min;
}
void SetMax(float max) {
_max = max;
}
float GetMin() {
return _min;
}
float GetMax() {
return _max;
}
private:
float _min = 0, _max = 0;
}; // class ReconCutBase
} // namespace MAUS
#endif // _MAP_CPPRECONCUTBASE_HH_