#include <CalibFormats/SiStripObjects/interface/SiStripRing.h>
Public Member Functions | |
void | addDevices (const FedChannelConnection &conn) |
const std::vector< SiStripCcu > & | ccus () const |
const uint16_t & | fecRing () const |
SiStripRing (const FedChannelConnection &conn) | |
~SiStripRing () | |
Private Member Functions | |
SiStripRing () | |
Private Attributes | |
std::vector< SiStripCcu > | ccus_ |
uint16_t | fecRing_ |
Definition at line 15 of file SiStripRing.h.
SiStripRing::SiStripRing | ( | const FedChannelConnection & | conn | ) |
Definition at line 8 of file SiStripRing.cc.
References addDevices(), and ccus_.
00009 : fecRing_( conn.fecRing() ), 00010 ccus_() 00011 { 00012 ccus_.reserve(256); 00013 addDevices( conn ); 00014 }
SiStripRing::~SiStripRing | ( | ) | [inline] |
SiStripRing::SiStripRing | ( | ) | [inline, private] |
void SiStripRing::addDevices | ( | const FedChannelConnection & | conn | ) |
Definition at line 18 of file SiStripRing.cc.
References FedChannelConnection::ccuAddr(), ccus(), ccus_, and end.
Referenced by SiStripRing().
00018 { 00019 std::vector<SiStripCcu>::const_iterator iccu = ccus().begin(); 00020 while ( iccu != ccus().end() && (*iccu).ccuAddr() != conn.ccuAddr() ) { iccu++; } 00021 if ( iccu == ccus().end() ) { 00022 ccus_.push_back( SiStripCcu( conn ) ); 00023 } else { 00024 const_cast<SiStripCcu&>(*iccu).addDevices( conn ); 00025 } 00026 }
const std::vector< SiStripCcu > & SiStripRing::ccus | ( | ) | const [inline] |
Definition at line 49 of file SiStripRing.h.
References ccus_.
Referenced by addDevices().
00049 { return ccus_; }
const uint16_t & SiStripRing::fecRing | ( | ) | const [inline] |
std::vector<SiStripCcu> SiStripRing::ccus_ [private] |
uint16_t SiStripRing::fecRing_ [private] |