~chris-rogers/maus/emr_mc_digitization

« back to all changes in this revision

Viewing changes to src/common_cpp/DataStructure/SciFiNoiseHit.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:
 
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/SciFiNoiseHit.hh"
 
18
 
 
19
namespace MAUS {
 
20
 
 
21
SciFiNoiseHit::SciFiNoiseHit():_spill(0), _event(0),
 
22
                               _tracker(0), _station(0), _plane(0),
 
23
                               _channel(0), _npe(0.), _time(0.), _used(false),
 
24
                               _digit_id(0) {
 
25
}
 
26
 
 
27
SciFiNoiseHit::SciFiNoiseHit(int spill, int event, int tracker, int station,
 
28
                       int plane, int channel, double npe, double time )
 
29
                       :_spill(spill), _event(event),
 
30
                        _tracker(tracker), _station(station), _plane(plane),
 
31
                        _channel(channel), _npe(npe), _time(time), _used(false),
 
32
                        _digit_id(0) {
 
33
}
 
34
 
 
35
SciFiNoiseHit::SciFiNoiseHit(const SciFiNoiseHit& noise)
 
36
    : _spill(noise._spill), _event(noise._event),
 
37
      _tracker(noise._tracker), _station(noise._station), _plane(noise._plane),
 
38
      _channel(noise._channel), _npe(noise._npe), _time(noise._npe), _used(noise._used),
 
39
      _digit_id(noise._digit_id) {
 
40
}
 
41
 
 
42
SciFiNoiseHit::~SciFiNoiseHit() {
 
43
}
 
44
 
 
45
SciFiNoiseHit& SciFiNoiseHit::operator=(const SciFiNoiseHit& noise) {
 
46
    if (this == &noise) {
 
47
        return *this;
 
48
    }
 
49
    _spill = noise._spill;
 
50
    _event = noise._event;
 
51
    _tracker = noise._tracker;
 
52
    _station = noise._station;
 
53
    _plane = noise._plane;
 
54
    _channel = noise._channel;
 
55
    _npe = noise._npe;
 
56
    _time = noise._time;
 
57
    _used = noise._used;
 
58
    _digit_id = noise._digit_id;
 
59
    return *this;
 
60
}
 
61
 
 
62
} // ~namespace MAUS