~mwinter4/maus/ckov-reco

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
/* This file is part of MAUS: http://micewww.pp.rl.ac.uk/projects/maus
 *
 * MAUS is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * MAUS is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with MAUS.  If not, see <http://www.gnu.org/licenses/>.
 */

#include "DataStructure/V1731.hh"

namespace MAUS {

V1731::V1731()
    : _ldc_id(0), _samples(), _charge_mm(0), _equip_type(0),
      _phys_event_number(0), _charge_pm(0), _arrival_time(0), _channel_key(""),
      _position_min(0), _pulse_area(0), _position_max(0), _trigger_time_tag(0),
      _time_stamp(0), _detector(""), _part_event_number(0), _geo(0),
      _pedestal(0), _channel(0) {
}

V1731::V1731(const V1731& _v1731)
    : _ldc_id(0), _samples(), _charge_mm(0), _equip_type(0),
      _phys_event_number(0), _charge_pm(0), _arrival_time(0), _channel_key(""),
      _position_min(0), _pulse_area(0), _position_max(0), _trigger_time_tag(0),
      _time_stamp(0), _detector(""), _part_event_number(0), _geo(0),
      _pedestal(0), _channel(0) {
    *this = _v1731;
}

V1731& V1731::operator=(const V1731& _v1731) {
    if (this == &_v1731) {
        return *this;
    }
    SetLdcId(_v1731._ldc_id);
    SetSampleArray(_v1731._samples);
    SetChargeMm(_v1731._charge_mm);
    SetEquipType(_v1731._equip_type);
    SetPhysEventNumber(_v1731._phys_event_number);
    SetChargePm(_v1731._charge_pm);
    SetArrivalTime(_v1731._arrival_time);
    SetChannelKey(_v1731._channel_key);
    SetPositionMin(_v1731._position_min);
    SetPulseArea(_v1731._pulse_area);
    SetPositionMax(_v1731._position_max);
    SetTriggerTimeTag(_v1731._trigger_time_tag);
    SetTimeStamp(_v1731._time_stamp);
    SetDetector(_v1731._detector);
    SetPartEventNumber(_v1731._part_event_number);
    SetGeo(_v1731._geo);
    SetPedestal(_v1731._pedestal);
    SetChannel(_v1731._channel);
    return *this;
}

V1731::~V1731() {
}

int V1731::GetLdcId() const {
    return _ldc_id;
}

void V1731::SetLdcId(int ldc_id) {
    _ldc_id = ldc_id;
}

SampleArray V1731::GetSampleArray() const {
    return _samples;
}

int V1731::GetSampleArrayElement(size_t index) const {
    return _samples[index];
}

size_t V1731::GetSampleArraySize() const {
    return _samples.size();
}

void V1731::SetSampleArray(SampleArray samples) {
    _samples = samples;
}

int V1731::GetChargeMm() const {
    return _charge_mm;
}

void V1731::SetChargeMm(int charge_mm) {
    _charge_mm = charge_mm;
}

int V1731::GetEquipType() const {
    return _equip_type;
}

void V1731::SetEquipType(int equip_type) {
    _equip_type = equip_type;
}

int V1731::GetPhysEventNumber() const {
    return _phys_event_number;
}

void V1731::SetPhysEventNumber(int phys_event_number) {
    _phys_event_number = phys_event_number;
}

int V1731::GetChargePm() const {
    return _charge_pm;
}

void V1731::SetChargePm(int charge_pm) {
    _charge_pm = charge_pm;
}

int V1731::GetArrivalTime() const {
    return _arrival_time;
}

void V1731::SetArrivalTime(int arrival_time) {
    _arrival_time = arrival_time;
}

std::string V1731::GetChannelKey() const {
    return _channel_key;
}

void V1731::SetChannelKey(std::string channel_key) {
    _channel_key = channel_key;
}

int V1731::GetPositionMin() const {
    return _position_min;
}

void V1731::SetPositionMin(int position_min) {
    _position_min = position_min;
}

int V1731::GetPulseArea() const {
    return _pulse_area;
}

void V1731::SetPulseArea(int pulse_area) {
    _pulse_area = pulse_area;
}

int V1731::GetPositionMax() const {
    return _position_max;
}

void V1731::SetPositionMax(int max_pos) {
    _position_max = max_pos;
}

int V1731::GetTriggerTimeTag() const {
    return _trigger_time_tag;
}

void V1731::SetTriggerTimeTag(int trigger_time_tag) {
    _trigger_time_tag = trigger_time_tag;
}

int V1731::GetTimeStamp() const {
    return _time_stamp;
}

void V1731::SetTimeStamp(int time_stamp) {
    _time_stamp = time_stamp;
}

std::string V1731::GetDetector() const {
    return _detector;
}

void V1731::SetDetector(std::string detector) {
    _detector = detector;
}

int V1731::GetPartEventNumber() const {
    return _part_event_number;
}

void V1731::SetPartEventNumber(int part_event_number) {
    _part_event_number = part_event_number;
}

int V1731::GetGeo() const {
    return _geo;
}

void V1731::SetGeo(int geo) {
    _geo = geo;
}

double V1731::GetPedestal() const {
    return _pedestal;
}

void V1731::SetPedestal(double pedestal) {
    _pedestal = pedestal;
}

int V1731::GetChannel() const {
    return _channel;
}

void V1731::SetChannel(int channel) {
    _channel = channel;
}
}