1
/* This file is part of MAUS: http://micewww.pp.rl.ac.uk/projects/maus
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.
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.
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/>.
17
#include "src/common_cpp/DataStructure/SciFiNoiseHit.hh"
21
SciFiNoiseHit::SciFiNoiseHit():_spill(0), _event(0),
22
_tracker(0), _station(0), _plane(0),
23
_channel(0), _npe(0.), _time(0.), _used(false),
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),
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) {
42
SciFiNoiseHit::~SciFiNoiseHit() {
45
SciFiNoiseHit& SciFiNoiseHit::operator=(const SciFiNoiseHit& noise) {
49
_spill = noise._spill;
50
_event = noise._event;
51
_tracker = noise._tracker;
52
_station = noise._station;
53
_plane = noise._plane;
54
_channel = noise._channel;
58
_digit_id = noise._digit_id;