~mwinter4/maus/ckov-reco

« back to all changes in this revision

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

  • Committer: Durga Rajaram
  • Date: 2014-01-14 07:07:02 UTC
  • mfrom: (659.1.80 relcand)
  • Revision ID: durga@fnal.gov-20140114070702-2l1fuj1w6rraw7xe
Tags: MAUS-v0.7.6
MAUS-v0.7.6

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/V1731.hh"
 
17
#include "DataStructure/V1731.hh"
18
18
 
19
19
namespace MAUS {
20
20
 
21
21
V1731::V1731()
22
22
    : _ldc_id(0), _samples(), _charge_mm(0), _equip_type(0),
23
23
      _phys_event_number(0), _charge_pm(0), _arrival_time(0), _channel_key(""),
24
 
      _position_min(0), _pulse_area(0), _max_pos(0), _trigger_time_tag(0),
 
24
      _position_min(0), _pulse_area(0), _position_max(0), _trigger_time_tag(0),
25
25
      _time_stamp(0), _detector(""), _part_event_number(0), _geo(0),
26
26
      _pedestal(0), _channel(0) {
27
27
}
29
29
V1731::V1731(const V1731& _v1731)
30
30
    : _ldc_id(0), _samples(), _charge_mm(0), _equip_type(0),
31
31
      _phys_event_number(0), _charge_pm(0), _arrival_time(0), _channel_key(""),
32
 
      _position_min(0), _pulse_area(0), _max_pos(0), _trigger_time_tag(0),
 
32
      _position_min(0), _pulse_area(0), _position_max(0), _trigger_time_tag(0),
33
33
      _time_stamp(0), _detector(""), _part_event_number(0), _geo(0),
34
34
      _pedestal(0), _channel(0) {
35
35
    *this = _v1731;
49
49
    SetChannelKey(_v1731._channel_key);
50
50
    SetPositionMin(_v1731._position_min);
51
51
    SetPulseArea(_v1731._pulse_area);
52
 
    SetMaxPos(_v1731._max_pos);
 
52
    SetPositionMax(_v1731._position_max);
53
53
    SetTriggerTimeTag(_v1731._trigger_time_tag);
54
54
    SetTimeStamp(_v1731._time_stamp);
55
55
    SetDetector(_v1731._detector);
151
151
    _pulse_area = pulse_area;
152
152
}
153
153
 
154
 
int V1731::GetMaxPos() const {
155
 
    return _max_pos;
156
 
}
157
 
 
158
 
void V1731::SetMaxPos(int max_pos) {
159
 
    _max_pos = max_pos;
160
 
}
161
 
 
162
 
double V1731::GetTriggerTimeTag() const {
 
154
int V1731::GetPositionMax() const {
 
155
    return _position_max;
 
156
}
 
157
 
 
158
void V1731::SetPositionMax(int max_pos) {
 
159
    _position_max = max_pos;
 
160
}
 
161
 
 
162
int V1731::GetTriggerTimeTag() const {
163
163
    return _trigger_time_tag;
164
164
}
165
165
 
166
 
void V1731::SetTriggerTimeTag(double trigger_time_tag) {
 
166
void V1731::SetTriggerTimeTag(int trigger_time_tag) {
167
167
    _trigger_time_tag = trigger_time_tag;
168
168
}
169
169
 
199
199
    _geo = geo;
200
200
}
201
201
 
202
 
int V1731::GetPedestal() const {
 
202
double V1731::GetPedestal() const {
203
203
    return _pedestal;
204
204
}
205
205
 
206
 
void V1731::SetPedestal(int pedestal) {
 
206
void V1731::SetPedestal(double pedestal) {
207
207
    _pedestal = pedestal;
208
208
}
209
209