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