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 "DataStructure/EMRBar.hh"
22
: _bar(0), _emrbarhitarray() {
25
EMRBar::EMRBar(const EMRBar& _emrbar)
26
: _bar(0), _emrbarhitarray() {
30
EMRBar& EMRBar::operator=(const EMRBar& _emrbar) {
31
if (this == &_emrbar) {
35
SetEMRBarHitArray(_emrbar._emrbarhitarray);
42
int EMRBar::GetBar() const {
46
void EMRBar::SetBar(int bar) {
50
int EMRBar::GetNHits() const {
51
return _emrbarhitarray.size();
54
EMRBarHitArray EMRBar::GetEMRBarHitArray() const {
55
return _emrbarhitarray;
58
void EMRBar::SetEMRBarHitArray(EMRBarHitArray emrbarhitarray) {
59
_emrbarhitarray = emrbarhitarray;
62
void EMRBar::AddBarHit(EMRBarHit bHit) {
63
_emrbarhitarray.push_back(bHit);