CalibData::DacCol Class Reference

#include <DacCol.h>

List of all members.

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.

Private Attributes

std::vector< unsigned > m_dacs


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

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

Definition at line 7 of file DacCol.cxx.

References m_dacs.

00007                                           {
00008     if (vals) {
00009       m_dacs.clear();
00010       for (unsigned int iDac = 0; iDac < vals->size(); iDac++) {
00011         m_dacs.push_back((*vals)[iDac]);
00012       }
00013     }
00014   }

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

Definition at line 15 of file DacCol.cxx.

References m_dacs.

00015                                      {
00016     if (vals) {
00017       m_dacs.clear();
00018       for (unsigned int iDac = 0; iDac < vals->size(); iDac++) {
00019         unsigned val = (*vals)[iDac];
00020         m_dacs.push_back(val);
00021       }
00022     }
00023   }

CalibData::DacCol::~DacCol (  )  [inline]

Definition at line 16 of file DacCol.h.

00016 {}


Member Function Documentation

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

Definition at line 18 of file DacCol.h.

References m_dacs.

00018 {return &m_dacs;}

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

Deep copy.

Definition at line 25 of file DacCol.cxx.

References m_dacs, and EvtCyclic3::other().

00025                                          {
00026     m_dacs.clear();
00027     for (unsigned int iDac = 0; iDac < other->m_dacs.size(); iDac++) {
00028       m_dacs.push_back((other->m_dacs)[iDac]);
00029     }
00030   }


Member Data Documentation

std::vector<unsigned> CalibData::DacCol::m_dacs [private]

Definition at line 23 of file DacCol.h.

Referenced by DacCol(), getDacs(), and update().


Generated on Tue Nov 29 23:36:23 2016 for BOSS_7.0.2 by  doxygen 1.4.7