CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
SiStripFecCrate Class Reference

#include <SiStripFecCrate.h>

Public Member Functions

void addDevices (const FedChannelConnection &conn)
 
const uint16_t & fecCrate () const
 
const std::vector< SiStripFec > & fecs () const
 
std::vector< SiStripFec > & fecs ()
 
 SiStripFecCrate (const FedChannelConnection &conn)
 
 ~SiStripFecCrate ()
 

Private Member Functions

 SiStripFecCrate ()
 

Private Attributes

uint16_t fecCrate_
 
std::vector< SiStripFecfecs_
 

Detailed Description

Author
R.Bainbridge

Definition at line 14 of file SiStripFecCrate.h.

Constructor & Destructor Documentation

SiStripFecCrate::SiStripFecCrate ( const FedChannelConnection conn)

Definition at line 7 of file SiStripFecCrate.cc.

References addDevices(), and fecs_.

7  : fecCrate_(conn.fecCrate()), fecs_() {
8  fecs_.reserve(20);
9  addDevices(conn);
10 }
const uint16_t & fecCrate() const
std::vector< SiStripFec > fecs_
void addDevices(const FedChannelConnection &conn)
SiStripFecCrate::~SiStripFecCrate ( )
inline

Definition at line 20 of file SiStripFecCrate.h.

20 { ; }
SiStripFecCrate::SiStripFecCrate ( )
inlineprivate

Definition at line 34 of file SiStripFecCrate.h.

34 { ; }

Member Function Documentation

void SiStripFecCrate::addDevices ( const FedChannelConnection conn)

Definition at line 14 of file SiStripFecCrate.cc.

References fecs_, and FedChannelConnection::fecSlot().

Referenced by SiStripFecCrate().

14  {
15  auto ifec = fecs_.begin();
16  while (ifec != fecs_.end() && (*ifec).fecSlot() != conn.fecSlot()) {
17  ifec++;
18  }
19  if (ifec == fecs_.end()) {
20  fecs_.push_back(SiStripFec(conn));
21  } else {
22  ifec->addDevices(conn);
23  }
24 }
const uint16_t & fecSlot() const
std::vector< SiStripFec > fecs_
const uint16_t & SiStripFecCrate::fecCrate ( ) const
inline

Definition at line 47 of file SiStripFecCrate.h.

References fecCrate_.

47 { return fecCrate_; }
const std::vector< SiStripFec > & SiStripFecCrate::fecs ( ) const
inline

Definition at line 45 of file SiStripFecCrate.h.

References fecs_.

45 { return fecs_; }
std::vector< SiStripFec > fecs_
std::vector< SiStripFec > & SiStripFecCrate::fecs ( )
inline

Definition at line 46 of file SiStripFecCrate.h.

References fecs_.

46 { return fecs_; }
std::vector< SiStripFec > fecs_

Member Data Documentation

uint16_t SiStripFecCrate::fecCrate_
private

Definition at line 37 of file SiStripFecCrate.h.

Referenced by fecCrate().

std::vector<SiStripFec> SiStripFecCrate::fecs_
private

Definition at line 40 of file SiStripFecCrate.h.

Referenced by addDevices(), fecs(), and SiStripFecCrate().