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