~chris-rogers/maus/emr_mc_digitization

« back to all changes in this revision

Viewing changes to src/common_cpp/DataStructure/SciFiChannelId.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:
19
19
namespace MAUS {
20
20
 
21
21
SciFiChannelId::SciFiChannelId()
22
 
    : _fibre(0), _station(0), _tracker(0), _plane(0), _used(false) {
 
22
    : _fibre(0), _station(0), _tracker(0), _plane(0), _used(false), _digit_id(0) {
23
23
}
24
24
 
25
25
SciFiChannelId::SciFiChannelId(const SciFiChannelId& channel)
26
26
    : _fibre(channel._fibre), _station(channel._station),
27
 
      _tracker(channel._tracker), _plane(channel._plane), _used(false) {
 
27
      _tracker(channel._tracker), _plane(channel._plane), _used(false),
 
28
      _digit_id(channel._digit_id) {
28
29
}
29
30
 
30
31
SciFiChannelId& SciFiChannelId::operator=(const SciFiChannelId& channel) {
36
37
    _tracker = channel._tracker;
37
38
    _plane = channel._plane;
38
39
        _used = channel._used;
 
40
    _digit_id = channel._digit_id;
39
41
    return *this;
40
42
}
41
43
 
82
84
    _used = used;
83
85
}
84
86
 
 
87
double SciFiChannelId::GetID() const {
 
88
    return _digit_id;
 
89
}
 
90
 
 
91
void SciFiChannelId::SetID(double digit_id) {
 
92
    _digit_id = digit_id;
 
93
}
 
94
 
85
95
} // ~namespace MAUS