~durga/maus/rel709

« back to all changes in this revision

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

  • Committer: Durga Rajaram
  • Date: 2013-08-27 04:36:50 UTC
  • mfrom: (659.1.73 rc)
  • Revision ID: durga@fnal.gov-20130827043650-me0hgsbzlzikdoik
Tags: MAUS-v0.7.0
MAUS-v0.7.0

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/TrackerDaq.hh"
 
18
 
 
19
 
 
20
namespace MAUS {
 
21
 
 
22
TrackerDaq::TrackerDaq()
 
23
    : _VLSB() {
 
24
}
 
25
 
 
26
TrackerDaq::TrackerDaq(const TrackerDaq& _trackerDaq)
 
27
    : _VLSB() {
 
28
    *this = _trackerDaq;
 
29
}
 
30
 
 
31
TrackerDaq& TrackerDaq::operator=(const TrackerDaq& _trackerDaq) {
 
32
    if (this == &_trackerDaq) {
 
33
        return *this;
 
34
    }
 
35
    SetVLSBArray(_trackerDaq._VLSB);
 
36
    return *this;
 
37
}
 
38
 
 
39
TrackerDaq::~TrackerDaq() {
 
40
}
 
41
 
 
42
VLSBArray TrackerDaq::GetVLSBArray() const {
 
43
    return _VLSB;
 
44
}
 
45
 
 
46
VLSB TrackerDaq::GetVLSBArrayElement(size_t index) const {
 
47
    return _VLSB[index];
 
48
}
 
49
 
 
50
size_t TrackerDaq::GetVLSBArraySize() const {
 
51
    return _VLSB.size();
 
52
}
 
53
 
 
54
void TrackerDaq::SetVLSBArray(VLSBArray VLSB) {
 
55
    _VLSB = VLSB;
 
56
}
 
57
 
 
58
VLSB_CArray TrackerDaq::GetVLSB_CArray() const {
 
59
    return _VLSB_C;
 
60
}
 
61
 
 
62
VLSB_C TrackerDaq::GetVLSB_CArrayElement(size_t index) const {
 
63
    return _VLSB_C[index];
 
64
}
 
65
 
 
66
size_t TrackerDaq::GetVLSB_CArraySize() const {
 
67
    return _VLSB_C.size();
 
68
}
 
69
 
 
70
void TrackerDaq::SetVLSB_CArray(VLSB_CArray vlsb_c) {
 
71
    _VLSB_C = vlsb_c;
 
72
}
 
73
}