BOSS 7.0.6
BESIII Offline Software System
Loading...
Searching...
No Matches
CalibData::DacCol Class Reference

#include <DacCol.h>

Public Member Functions

 DacCol (std::vector< unsigned > *vals=0)
 
 DacCol (std::vector< int > *vals)
 
 ~DacCol ()
 
const std::vector< unsigned > * getDacs () const
 
void update (const DacCol *other)
 Deep copy.
 

Detailed Description

Keeps track of a collection of dac settings, typically used for collecting calibration data for a single range

Definition at line 11 of file DacCol.h.

Constructor & Destructor Documentation

◆ DacCol() [1/2]

CalibData::DacCol::DacCol ( std::vector< unsigned > *  vals = 0)

Definition at line 7 of file DacCol.cxx.

7 {
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 }

◆ DacCol() [2/2]

CalibData::DacCol::DacCol ( std::vector< int > *  vals)

Definition at line 15 of file DacCol.cxx.

15 {
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 }

◆ ~DacCol()

CalibData::DacCol::~DacCol ( )
inline

Definition at line 16 of file DacCol.h.

16{}

Member Function Documentation

◆ getDacs()

const std::vector< unsigned > * CalibData::DacCol::getDacs ( ) const
inline

Definition at line 18 of file DacCol.h.

18{return &m_dacs;}

◆ update()

void CalibData::DacCol::update ( const DacCol other)

Deep copy.

Definition at line 25 of file DacCol.cxx.

25 {
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 }
Index other(Index i, Index j)
Definition: EvtCyclic3.cc:118

The documentation for this class was generated from the following files: