~sophie-middleton08/maus/devel

« back to all changes in this revision

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

  • Committer: Chris Rogers
  • Date: 2012-05-10 20:25:42 UTC
  • mfrom: (663.6.10 merge)
  • Revision ID: chris.rogers@stfc.ac.uk-20120510202542-cr294lltgh14lde0
Tags: MAUS-v0.2.2
ReleaseĀ 0.2.3

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/TOFEventSlabHit.hh"
 
18
 
 
19
 
 
20
namespace MAUS {
 
21
 
 
22
TOFEventSlabHit::TOFEventSlabHit()
 
23
    : _tof1(), _tof0(), _tof2() {
 
24
}
 
25
 
 
26
TOFEventSlabHit::TOFEventSlabHit(const TOFEventSlabHit& _tofeventslabhit)
 
27
    : _tof1(), _tof0(), _tof2() {
 
28
    *this = _tofeventslabhit;
 
29
}
 
30
 
 
31
TOFEventSlabHit& TOFEventSlabHit::operator=(const TOFEventSlabHit& _tofeventslabhit) {
 
32
    if (this == &_tofeventslabhit) {
 
33
        return *this;
 
34
    }
 
35
    SetTOF1SlabHitArray(_tofeventslabhit._tof1);
 
36
    SetTOF0SlabHitArray(_tofeventslabhit._tof0);
 
37
    SetTOF2SlabHitArray(_tofeventslabhit._tof2);
 
38
    return *this;
 
39
}
 
40
 
 
41
TOFEventSlabHit::~TOFEventSlabHit() {
 
42
}
 
43
 
 
44
TOF1SlabHitArray TOFEventSlabHit::GetTOF1SlabHitArray() const {
 
45
    return _tof1;
 
46
}
 
47
 
 
48
TOFSlabHit TOFEventSlabHit::GetTOF1SlabHitArrayElement(size_t index) const {
 
49
    return _tof1[index];
 
50
}
 
51
 
 
52
size_t TOFEventSlabHit::GetTOF1SlabHitArraySize() const {
 
53
    return _tof1.size();
 
54
}
 
55
 
 
56
void TOFEventSlabHit::SetTOF1SlabHitArray(TOF1SlabHitArray tof1) {
 
57
    _tof1 = tof1;
 
58
}
 
59
 
 
60
TOF0SlabHitArray TOFEventSlabHit::GetTOF0SlabHitArray() const {
 
61
    return _tof0;
 
62
}
 
63
 
 
64
TOFSlabHit TOFEventSlabHit::GetTOF0SlabHitArrayElement(size_t index) const {
 
65
    return _tof0[index];
 
66
}
 
67
 
 
68
size_t TOFEventSlabHit::GetTOF0SlabHitArraySize() const {
 
69
    return _tof0.size();
 
70
}
 
71
 
 
72
void TOFEventSlabHit::SetTOF0SlabHitArray(TOF0SlabHitArray tof0) {
 
73
    _tof0 = tof0;
 
74
}
 
75
 
 
76
TOF2SlabHitArray TOFEventSlabHit::GetTOF2SlabHitArray() const {
 
77
    return _tof2;
 
78
}
 
79
 
 
80
TOFSlabHit TOFEventSlabHit::GetTOF2SlabHitArrayElement(size_t index) const {
 
81
    return _tof2[index];
 
82
}
 
83
 
 
84
size_t TOFEventSlabHit::GetTOF2SlabHitArraySize() const {
 
85
    return _tof2.size();
 
86
}
 
87
 
 
88
void TOFEventSlabHit::SetTOF2SlabHitArray(TOF2SlabHitArray tof2) {
 
89
    _tof2 = tof2;
 
90
}
 
91
}
 
92