CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules 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() [1/2]

SiStripFecCrate::SiStripFecCrate ( const FedChannelConnection conn)

Definition at line 7 of file SiStripFecCrate.cc.

References addDevices(), getInfo::conn, and fecs_.

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

◆ ~SiStripFecCrate()

SiStripFecCrate::~SiStripFecCrate ( )
inline

Definition at line 20 of file SiStripFecCrate.h.

20 { ; }

◆ SiStripFecCrate() [2/2]

SiStripFecCrate::SiStripFecCrate ( )
inlineprivate

Definition at line 34 of file SiStripFecCrate.h.

34 { ; }

Member Function Documentation

◆ addDevices()

void SiStripFecCrate::addDevices ( const FedChannelConnection conn)

Definition at line 14 of file SiStripFecCrate.cc.

References getInfo::conn, and fecs_.

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 }
std::vector< SiStripFec > fecs_
conn
Definition: getInfo.py:9

◆ fecCrate()

const uint16_t & SiStripFecCrate::fecCrate ( ) const
inline

Definition at line 47 of file SiStripFecCrate.h.

References fecCrate_.

47 { return fecCrate_; }

◆ fecs() [1/2]

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_

◆ fecs() [2/2]

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

◆ fecCrate_

uint16_t SiStripFecCrate::fecCrate_
private

Definition at line 37 of file SiStripFecCrate.h.

Referenced by fecCrate().

◆ fecs_

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

Definition at line 40 of file SiStripFecCrate.h.

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