~chris-rogers/maus/emr_mc_digitization

« back to all changes in this revision

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

  • Committer: Chris Rogers
  • Date: 2014-04-16 11:48:45 UTC
  • mfrom: (707 merge)
  • mto: This revision was merged to the branch mainline in revision 711.
  • Revision ID: chris.rogers@stfc.ac.uk-20140416114845-h3u3q7pdcxkxvovs
Update to trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
 * along with MAUS.  If not, see <http://www.gnu.org/licenses/>.
15
15
 */
16
16
 
17
 
#include "src/common_cpp/DataStructure/V1724.hh"
 
17
#include "DataStructure/V1724.hh"
18
18
 
19
19
 
20
20
namespace MAUS {
66
66
    _ldc_id = ldc_id;
67
67
}
68
68
 
 
69
SampleArray V1724::GetSampleArray() const {
 
70
    return _samples;
 
71
}
 
72
 
 
73
int V1724::GetSampleArrayElement(size_t index) const {
 
74
    return _samples[index];
 
75
}
 
76
 
 
77
size_t V1724::GetSampleArraySize() const {
 
78
    return _samples.size();
 
79
}
 
80
 
 
81
void V1724::SetSampleArray(SampleArray samples) {
 
82
    _samples = samples;
 
83
}
 
84
 
69
85
int V1724::GetChargeMm() const {
70
86
    return _charge_mm;
71
87
}
106
122
    _charge_pm = charge_pm;
107
123
}
108
124
 
 
125
int V1724::GetArrivalTime() const {
 
126
    return _arrival_time;
 
127
}
 
128
 
 
129
void V1724::SetArrivalTime(int arrival_time) {
 
130
    _arrival_time = arrival_time;
 
131
}
 
132
 
109
133
std::string V1724::GetChannelKey() const {
110
134
    return _channel_key;
111
135
}
114
138
    _channel_key = channel_key;
115
139
}
116
140
 
117
 
double V1724::GetTriggerTimeTag() const {
 
141
int V1724::GetPositionMin() const {
 
142
    return _position_min;
 
143
}
 
144
 
 
145
void V1724::SetPositionMin(int position_min) {
 
146
    _position_min = position_min;
 
147
}
 
148
 
 
149
int V1724::GetPulseArea() const {
 
150
    return _pulse_area;
 
151
}
 
152
 
 
153
void V1724::SetPulseArea(int pulse_area) {
 
154
    _pulse_area = pulse_area;
 
155
}
 
156
 
 
157
int V1724::GetTriggerTimeTag() const {
118
158
    return _trigger_time_tag;
119
159
}
120
160
 
121
 
void V1724::SetTriggerTimeTag(double trigger_time_tag) {
 
161
void V1724::SetTriggerTimeTag(int trigger_time_tag) {
122
162
    _trigger_time_tag = trigger_time_tag;
123
163
}
124
164
 
130
170
    _time_stamp = time_stamp;
131
171
}
132
172
 
133
 
int V1724::GetPedestal() const {
 
173
double V1724::GetPedestal() const {
134
174
    return _pedestal;
135
175
}
136
176
 
137
 
void V1724::SetPedestal(int pedestal) {
 
177
void V1724::SetPedestal(double pedestal) {
138
178
    _pedestal = pedestal;
139
179
}
140
180