CMS 3D CMS Logo

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
 
std::vector< SiStripFec > & fecs ()
 
const std::vector< SiStripFec > & fecs () const
 
 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.

7  : fecCrate_(conn.fecCrate()), fecs_() {
8  fecs_.reserve(20);
10 }

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

◆ ~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.

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 }

References SiStripCommissioningClient_cfg::conn, and fecs_.

Referenced by SiStripFecCrate().

◆ fecCrate()

const uint16_t & SiStripFecCrate::fecCrate ( ) const
inline

Definition at line 47 of file SiStripFecCrate.h.

47 { return fecCrate_; }

References fecCrate_.

◆ fecs() [1/2]

std::vector< SiStripFec > & SiStripFecCrate::fecs ( )
inline

Definition at line 46 of file SiStripFecCrate.h.

46 { return fecs_; }

References fecs_.

◆ fecs() [2/2]

const std::vector< SiStripFec > & SiStripFecCrate::fecs ( ) const
inline

Definition at line 45 of file SiStripFecCrate.h.

45 { return fecs_; }

References 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().

SiStripCommissioningClient_cfg.conn
conn
Definition: SiStripCommissioningClient_cfg.py:5
SiStripFecCrate::addDevices
void addDevices(const FedChannelConnection &conn)
Definition: SiStripFecCrate.cc:14
SiStripFec
Definition: SiStripFec.h:14
SiStripFecCrate::fecCrate_
uint16_t fecCrate_
Definition: SiStripFecCrate.h:37
SiStripFecCrate::fecs_
std::vector< SiStripFec > fecs_
Definition: SiStripFecCrate.h:40