#include <CalibFormats/SiStripObjects/interface/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_.
00009 : ccuAddr_( conn.ccuAddr() ), 00010 modules_() 00011 { 00012 modules_.reserve(32); 00013 addDevices( conn ); 00014 }
SiStripCcu::~SiStripCcu | ( | ) | [inline] |
SiStripCcu::SiStripCcu | ( | ) | [inline, private] |
void SiStripCcu::addDevices | ( | const FedChannelConnection & | conn | ) |
Definition at line 18 of file SiStripCcu.cc.
References FedChannelConnection::ccuChan(), end, modules(), and modules_.
Referenced by SiStripCcu().
00018 { 00019 std::vector<SiStripModule>::const_iterator imod = modules().begin(); 00020 while ( imod != modules().end() && (*imod).ccuChan() != conn.ccuChan() ) { imod++; } 00021 if ( imod == modules().end() ) { 00022 modules_.push_back( SiStripModule( conn ) ); 00023 } else { 00024 const_cast<SiStripModule&>(*imod).addDevices( conn ); 00025 } 00026 }
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().
00049 { return modules_; }
uint16_t SiStripCcu::ccuAddr_ [private] |
std::vector<SiStripModule> SiStripCcu::modules_ [private] |
Definition at line 43 of file SiStripCcu.h.
Referenced by addDevices(), modules(), and SiStripCcu().