/* This file is part of MAUS: http://micewww.pp.rl.ac.uk/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 . */ #include "src/common_cpp/DataStructure/ReconCutDataBase.hh" #include "src/common_cpp/Utils/Exception.hh" namespace MAUS { /** Constructor - Cuts are set initially to false. */ ReconCutDataBase::ReconCutDataBase() { } ReconCutDataBase::ReconCutDataBase(std::string name, std::string descr, bool cutPass, float cutValue) { _name = name; _descr = descr; _cut_pass = cutPass; _cut_value = cutValue; } /** Copy constructor */ ReconCutDataBase::ReconCutDataBase(const ReconCutDataBase& _cuts_data) { *this = _cuts_data; } /** Copy assignment operator */ ReconCutDataBase& ReconCutDataBase::operator=(const ReconCutDataBase& _cuts_data) { if(this == &_cuts_data) { return *this; } SetCutName(_cuts_data._name); SetCutDescription(_cuts_data._descr); SetCutParams(_cuts_data._cut_pass, _cuts_data._cut_value); return *this; } /** Destructor */ ReconCutDataBase::~ReconCutDataBase() {} void ReconCutDataBase::SetCutName(std::string name) { _name = name; } void ReconCutDataBase::SetCutDescription(std::string descr) { _descr = descr; } void ReconCutDataBase::SetCutParams(bool cutPass, float cutValue) { _cut_pass = cutPass; _cut_value = cutValue; } std::string ReconCutDataBase::GetCutName() { return _name; } std::string ReconCutDataBase::GetCutDescription() { return _descr; } } // ~ namespace MAUS