1
/* This file is part of MAUS: http://micewww.pp.rl.ac.uk/projects/maus
3
* MAUS is free software: you can redistribute it and/or modify
4
* it under the terms of the GNU General Public License as published by
5
* the Free Software Foundation, either version 3 of the License, or
6
* (at your option) any later version.
8
* MAUS is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
13
* You should have received a copy of the GNU General Public License
14
* along with MAUS. If not, see <http://www.gnu.org/licenses/>.
17
#include "src/common_cpp/DataStructure/TOFEvent.hh"
23
: _tof_slab_hits(), _tof_space_points(), _tof_digits() {
26
TOFEvent::TOFEvent(const TOFEvent& _tofevent)
27
: _tof_slab_hits(), _tof_space_points(), _tof_digits() {
31
TOFEvent& TOFEvent::operator=(const TOFEvent& _tofevent) {
32
if (this == &_tofevent) {
35
SetTOFEventSlabHit(_tofevent._tof_slab_hits);
36
SetTOFEventSpacePoint(_tofevent._tof_space_points);
37
SetTOFEventDigit(_tofevent._tof_digits);
41
TOFEvent::~TOFEvent() {
44
TOFEventSlabHit TOFEvent::GetTOFEventSlabHit() const {
45
return _tof_slab_hits;
48
void TOFEvent::SetTOFEventSlabHit(TOFEventSlabHit tof_slab_hits) {
49
_tof_slab_hits = tof_slab_hits;
52
TOFEventSpacePoint TOFEvent::GetTOFEventSpacePoint() const {
53
return _tof_space_points;
56
void TOFEvent::SetTOFEventSpacePoint(TOFEventSpacePoint tof_space_points) {
57
_tof_space_points = tof_space_points;
60
TOFEventDigit TOFEvent::GetTOFEventDigit() const {
64
void TOFEvent::SetTOFEventDigit(TOFEventDigit tof_digits) {
65
_tof_digits = tof_digits;