~sophie-middleton08/maus/devel

« back to all changes in this revision

Viewing changes to src/common_cpp/DataStructure/TOFDaq.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/TOFDaq.hh"
 
18
 
 
19
 
 
20
namespace MAUS {
 
21
 
 
22
TOFDaq::TOFDaq()
 
23
    : _V1724(), _V1290() {
 
24
}
 
25
 
 
26
TOFDaq::TOFDaq(const TOFDaq& _tofdaq)
 
27
    : _V1724(), _V1290() {
 
28
    *this = _tofdaq;
 
29
}
 
30
 
 
31
TOFDaq& TOFDaq::operator=(const TOFDaq& _tofdaq) {
 
32
    if (this == &_tofdaq) {
 
33
        return *this;
 
34
    }
 
35
    SetV1724Array(_tofdaq._V1724);
 
36
    SetV1290Array(_tofdaq._V1290);
 
37
    return *this;
 
38
}
 
39
 
 
40
TOFDaq::~TOFDaq() {
 
41
}
 
42
 
 
43
V1724Array TOFDaq::GetV1724Array() const {
 
44
    return _V1724;
 
45
}
 
46
 
 
47
V1724 TOFDaq::GetV1724ArrayElement(size_t index) const {
 
48
    return _V1724[index];
 
49
}
 
50
 
 
51
size_t TOFDaq::GetV1724ArraySize() const {
 
52
    return _V1724.size();
 
53
}
 
54
 
 
55
void TOFDaq::SetV1724Array(V1724Array V1724) {
 
56
    _V1724 = V1724;
 
57
}
 
58
 
 
59
V1290Array TOFDaq::GetV1290Array() const {
 
60
    return _V1290;
 
61
}
 
62
 
 
63
V1290 TOFDaq::GetV1290ArrayElement(size_t index) const {
 
64
    return _V1290[index];
 
65
}
 
66
 
 
67
size_t TOFDaq::GetV1290ArraySize() const {
 
68
    return _V1290.size();
 
69
}
 
70
 
 
71
void TOFDaq::SetV1290Array(V1290Array V1290) {
 
72
    _V1290 = V1290;
 
73
}
 
74
}
 
75