#include <SiStripFecCrate.h>
Public Member Functions | |
void | addDevices (const FedChannelConnection &conn) |
const uint16_t & | fecCrate () const |
const std::vector< SiStripFec > & | fecs () const |
SiStripFecCrate (const FedChannelConnection &conn) | |
~SiStripFecCrate () | |
Private Member Functions | |
SiStripFecCrate () | |
Private Attributes | |
uint16_t | fecCrate_ |
std::vector< SiStripFec > | fecs_ |
Definition at line 15 of file SiStripFecCrate.h.
SiStripFecCrate::SiStripFecCrate | ( | const FedChannelConnection & | conn | ) |
Definition at line 8 of file SiStripFecCrate.cc.
References addDevices(), and fecs_.
: fecCrate_( conn.fecCrate() ), fecs_() { fecs_.reserve(20); addDevices( conn ); }
SiStripFecCrate::~SiStripFecCrate | ( | ) | [inline] |
Definition at line 23 of file SiStripFecCrate.h.
{;}
SiStripFecCrate::SiStripFecCrate | ( | ) | [inline, private] |
Definition at line 37 of file SiStripFecCrate.h.
{;}
void SiStripFecCrate::addDevices | ( | const FedChannelConnection & | conn | ) |
Definition at line 18 of file SiStripFecCrate.cc.
References SiStripFec::addDevices(), end, fecs(), fecs_, and FedChannelConnection::fecSlot().
Referenced by SiStripFecCabling::addDevices(), and SiStripFecCrate().
{ std::vector<SiStripFec>::const_iterator ifec = fecs().begin(); while ( ifec != fecs().end() && (*ifec).fecSlot() != conn.fecSlot() ) { ifec++; } if ( ifec == fecs().end() ) { fecs_.push_back( SiStripFec( conn ) ); } else { const_cast<SiStripFec&>(*ifec).addDevices( conn ); } }
const uint16_t & SiStripFecCrate::fecCrate | ( | ) | const [inline] |
const std::vector< SiStripFec > & SiStripFecCrate::fecs | ( | ) | const [inline] |
Definition at line 49 of file SiStripFecCrate.h.
References fecs_.
Referenced by addDevices().
{ return fecs_; }
uint16_t SiStripFecCrate::fecCrate_ [private] |
Definition at line 40 of file SiStripFecCrate.h.
Referenced by fecCrate().
std::vector<SiStripFec> SiStripFecCrate::fecs_ [private] |
Definition at line 43 of file SiStripFecCrate.h.
Referenced by addDevices(), fecs(), and SiStripFecCrate().