BOSS 8.0.0
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
2// maqm Exp $
3
4#include "CalibData/DacCol.h"
5
6namespace CalibData {
7
8 DacCol::DacCol( std::vector<unsigned>* vals ) {
9 if ( vals )
10 {
11 m_dacs.clear();
12 for ( unsigned int iDac = 0; iDac < vals->size(); iDac++ )
13 { m_dacs.push_back( ( *vals )[iDac] ); }
14 }
15 }
16 DacCol::DacCol( std::vector<int>* vals ) {
17 if ( vals )
18 {
19 m_dacs.clear();
20 for ( unsigned int iDac = 0; iDac < vals->size(); iDac++ )
21 {
22 unsigned val = ( *vals )[iDac];
23 m_dacs.push_back( val );
24 }
25 }
26 }
27
28 void DacCol::update( const DacCol* other ) {
29 m_dacs.clear();
30 for ( unsigned int iDac = 0; iDac < other->m_dacs.size(); iDac++ )
31 { m_dacs.push_back( ( other->m_dacs )[iDac] ); }
32 }
33
34} // namespace CalibData
DacCol(std::vector< unsigned > *vals=0)
Definition DacCol.cxx:8
void update(const DacCol *other)
Deep copy.
Definition DacCol.cxx:28