~sophie-middleton08/maus/devel

« back to all changes in this revision

Viewing changes to src/common_cpp/DataStructure/TOFEvent.cc

  • Committer: Chris Rogers
  • Date: 2012-04-16 13:33:25 UTC
  • mfrom: (659.1.17 release-candidate)
  • Revision ID: chris.rogers@stfc.ac.uk-20120416133325-11tyj7pb7xs7m37m
ReleaseĀ 0.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* This file is part of MAUS: http://micewww.pp.rl.ac.uk/projects/maus
2
 
 *
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.
7
 
 *
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.
12
 
 *
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/>.
15
 
 */
16
 
 
17
 
#include "src/common_cpp/DataStructure/TOFEvent.hh"
18
 
 
19
 
 
20
 
namespace MAUS {
21
 
 
22
 
TOFEvent::TOFEvent()
23
 
    : _tof_slab_hits(), _tof_space_points(), _tof_digits() {
24
 
}
25
 
 
26
 
TOFEvent::TOFEvent(const TOFEvent& _tofevent)
27
 
    : _tof_slab_hits(), _tof_space_points(), _tof_digits() {
28
 
    *this = _tofevent;
29
 
}
30
 
 
31
 
TOFEvent& TOFEvent::operator=(const TOFEvent& _tofevent) {
32
 
    if (this == &_tofevent) {
33
 
        return *this;
34
 
    }
35
 
    SetTOFEventSlabHit(_tofevent._tof_slab_hits);
36
 
    SetTOFEventSpacePoint(_tofevent._tof_space_points);
37
 
    SetTOFEventDigit(_tofevent._tof_digits);
38
 
    return *this;
39
 
}
40
 
 
41
 
TOFEvent::~TOFEvent() {
42
 
}
43
 
 
44
 
TOFEventSlabHit TOFEvent::GetTOFEventSlabHit() const {
45
 
    return _tof_slab_hits;
46
 
}
47
 
 
48
 
void TOFEvent::SetTOFEventSlabHit(TOFEventSlabHit tof_slab_hits) {
49
 
    _tof_slab_hits = tof_slab_hits;
50
 
}
51
 
 
52
 
TOFEventSpacePoint TOFEvent::GetTOFEventSpacePoint() const {
53
 
    return _tof_space_points;
54
 
}
55
 
 
56
 
void TOFEvent::SetTOFEventSpacePoint(TOFEventSpacePoint tof_space_points) {
57
 
    _tof_space_points = tof_space_points;
58
 
}
59
 
 
60
 
TOFEventDigit TOFEvent::GetTOFEventDigit() const {
61
 
    return _tof_digits;
62
 
}
63
 
 
64
 
void TOFEvent::SetTOFEventDigit(TOFEventDigit tof_digits) {
65
 
    _tof_digits = tof_digits;
66
 
}
67
 
}
68