/* This file is part of MAUS: http://micewww.pp.rl.ac.uk/projects/maus
*
* MAUS is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* MAUS is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with MAUS. If not, see .
*/
#include
#include "DataStructure/DBBSpillData.hh"
namespace MAUS {
DBBSpillData::DBBSpillData()
: _ldcId(0), _dbbId(0), _spill_number(0), _spill_width(0), _trigger_count(0),
_hit_count(0), _time_stamp(0), _detector("unknown"), _dbb_hits(0), _dbb_triggers(0) {
}
DBBSpillData::DBBSpillData(const DBBSpillData& dbbspill)
: _ldcId(0), _dbbId(0), _spill_number(0), _spill_width(0), _trigger_count(0),
_hit_count(0), _time_stamp(0), _detector("unknown"), _dbb_hits(0), _dbb_triggers(0) {
*this = dbbspill;
}
DBBSpillData& DBBSpillData::operator=(const DBBSpillData& dbbspill) {
if (&dbbspill == this) {
return *this;
}
SetLdcId(dbbspill._ldcId);
SetDBBId(dbbspill._dbbId);
SetSpillNumber(dbbspill._spill_number);
SetSpillWidth(dbbspill._spill_width);
SetTriggerCount(dbbspill._trigger_count);
SetHitCount(dbbspill._hit_count);
SetTimeStamp(dbbspill._time_stamp);
SetDetector(dbbspill._detector);
SetDBBHitsArray(dbbspill._dbb_hits);
SetDBBTriggersArray(dbbspill._dbb_triggers);
return *this;
}
DBBSpillData::~DBBSpillData() {
// int n = _dbb_hits.size();
// for (int i=0; i