CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
DacCol.cxx
Go to the documentation of this file.
1// $Header: /bes/bes/BossCvs/Calibration/CalibData/src/DacCol.cxx,v 1.1.1.1 2005/10/17 06:13:32 maqm Exp $
2
3#include "CalibData/DacCol.h"
4
5namespace CalibData {
6
7 DacCol::DacCol(std::vector<unsigned>* vals) {
8 if (vals) {
9 m_dacs.clear();
10 for (unsigned int iDac = 0; iDac < vals->size(); iDac++) {
11 m_dacs.push_back((*vals)[iDac]);
12 }
13 }
14 }
15 DacCol::DacCol(std::vector<int>* vals) {
16 if (vals) {
17 m_dacs.clear();
18 for (unsigned int iDac = 0; iDac < vals->size(); iDac++) {
19 unsigned val = (*vals)[iDac];
20 m_dacs.push_back(val);
21 }
22 }
23 }
24
25 void DacCol::update(const DacCol* other) {
26 m_dacs.clear();
27 for (unsigned int iDac = 0; iDac < other->m_dacs.size(); iDac++) {
28 m_dacs.push_back((other->m_dacs)[iDac]);
29 }
30 }
31
32}
DacCol(std::vector< unsigned > *vals=0)
Definition DacCol.cxx:7
void update(const DacCol *other)
Deep copy.
Definition DacCol.cxx:25