#include <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_.
: fecSlot_( conn.fecSlot() ), rings_() { rings_.reserve(8); addDevices( conn ); }
SiStripFec::~SiStripFec | ( | ) | [inline] |
Definition at line 23 of file SiStripFec.h.
{;}
SiStripFec::SiStripFec | ( | ) | [inline, private] |
Definition at line 37 of file SiStripFec.h.
{;}
void SiStripFec::addDevices | ( | const FedChannelConnection & | conn | ) |
Definition at line 18 of file SiStripFec.cc.
References SiStripRing::addDevices(), end, FedChannelConnection::fecRing(), rings(), and rings_.
Referenced by SiStripFecCrate::addDevices(), and SiStripFec().
{ std::vector<SiStripRing>::const_iterator iring = rings().begin(); while ( iring != rings().end() && (*iring).fecRing() != conn.fecRing() ) { iring++; } if ( iring == rings().end() ) { rings_.push_back( SiStripRing( conn ) ); } else { const_cast<SiStripRing&>(*iring).addDevices( conn ); } }
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().
{ return rings_; }
uint16_t SiStripFec::fecSlot_ [private] |
Definition at line 40 of file SiStripFec.h.
Referenced by fecSlot().
std::vector<SiStripRing> SiStripFec::rings_ [private] |
Definition at line 43 of file SiStripFec.h.
Referenced by addDevices(), rings(), and SiStripFec().