#include <SiStripCcu.h>
Public Member Functions | |
void | addDevices (const FedChannelConnection &conn) |
const uint16_t & | ccuAddr () const |
const std::vector < SiStripModule > & | modules () const |
SiStripCcu (const FedChannelConnection &conn) | |
~SiStripCcu () | |
Private Member Functions | |
SiStripCcu () | |
Private Attributes | |
uint16_t | ccuAddr_ |
std::vector< SiStripModule > | modules_ |
Definition at line 15 of file SiStripCcu.h.
SiStripCcu::SiStripCcu | ( | const FedChannelConnection & | conn | ) |
Definition at line 8 of file SiStripCcu.cc.
References addDevices(), and modules_.
: ccuAddr_( conn.ccuAddr() ), modules_() { modules_.reserve(32); addDevices( conn ); }
SiStripCcu::~SiStripCcu | ( | ) | [inline] |
Definition at line 23 of file SiStripCcu.h.
{;}
SiStripCcu::SiStripCcu | ( | ) | [inline, private] |
Definition at line 37 of file SiStripCcu.h.
{;}
void SiStripCcu::addDevices | ( | const FedChannelConnection & | conn | ) |
Definition at line 18 of file SiStripCcu.cc.
References SiStripModule::addDevices(), FedChannelConnection::ccuChan(), end, modules(), and modules_.
Referenced by SiStripRing::addDevices(), and SiStripCcu().
{ std::vector<SiStripModule>::const_iterator imod = modules().begin(); while ( imod != modules().end() && (*imod).ccuChan() != conn.ccuChan() ) { imod++; } if ( imod == modules().end() ) { modules_.push_back( SiStripModule( conn ) ); } else { const_cast<SiStripModule&>(*imod).addDevices( conn ); } }
const uint16_t & SiStripCcu::ccuAddr | ( | ) | const [inline] |
const std::vector< SiStripModule > & SiStripCcu::modules | ( | ) | const [inline] |
Definition at line 49 of file SiStripCcu.h.
References modules_.
Referenced by addDevices().
{ return modules_; }
uint16_t SiStripCcu::ccuAddr_ [private] |
Definition at line 40 of file SiStripCcu.h.
Referenced by ccuAddr().
std::vector<SiStripModule> SiStripCcu::modules_ [private] |
Definition at line 43 of file SiStripCcu.h.
Referenced by addDevices(), modules(), and SiStripCcu().