CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
SiStripFec Class Reference

#include <SiStripFec.h>

Public Member Functions

void addDevices (const FedChannelConnection &conn)
 
const uint16_t & fecSlot () const
 
std::vector< SiStripRing > & rings ()
 
const std::vector< SiStripRing > & rings () const
 
 SiStripFec (const FedChannelConnection &conn)
 
 ~SiStripFec ()
 

Private Member Functions

 SiStripFec ()
 

Private Attributes

uint16_t fecSlot_
 
std::vector< SiStripRingrings_
 

Detailed Description

Author
R.Bainbridge

Definition at line 14 of file SiStripFec.h.

Constructor & Destructor Documentation

◆ SiStripFec() [1/2]

SiStripFec::SiStripFec ( const FedChannelConnection conn)

Definition at line 7 of file SiStripFec.cc.

7  : fecSlot_(conn.fecSlot()), rings_() {
8  rings_.reserve(8);
10 }

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

◆ ~SiStripFec()

SiStripFec::~SiStripFec ( )
inline

Definition at line 20 of file SiStripFec.h.

20 { ; }

◆ SiStripFec() [2/2]

SiStripFec::SiStripFec ( )
inlineprivate

Definition at line 34 of file SiStripFec.h.

34 { ; }

Member Function Documentation

◆ addDevices()

void SiStripFec::addDevices ( const FedChannelConnection conn)

Definition at line 14 of file SiStripFec.cc.

14  {
15  auto iring = rings_.begin();
16  while (iring != rings_.end() && (*iring).fecRing() != conn.fecRing()) {
17  iring++;
18  }
19  if (iring == rings_.end()) {
20  rings_.push_back(SiStripRing(conn));
21  } else {
22  iring->addDevices(conn);
23  }
24 }

References SiStripCommissioningClient_cfg::conn, and rings_.

Referenced by SiStripFec().

◆ fecSlot()

const uint16_t & SiStripFec::fecSlot ( ) const
inline

Definition at line 47 of file SiStripFec.h.

47 { return fecSlot_; }

References fecSlot_.

◆ rings() [1/2]

std::vector< SiStripRing > & SiStripFec::rings ( )
inline

Definition at line 46 of file SiStripFec.h.

46 { return rings_; }

References rings_.

◆ rings() [2/2]

const std::vector< SiStripRing > & SiStripFec::rings ( ) const
inline

Definition at line 45 of file SiStripFec.h.

45 { return rings_; }

References rings_.

Member Data Documentation

◆ fecSlot_

uint16_t SiStripFec::fecSlot_
private

Definition at line 37 of file SiStripFec.h.

Referenced by fecSlot().

◆ rings_

std::vector<SiStripRing> SiStripFec::rings_
private

Definition at line 40 of file SiStripFec.h.

Referenced by addDevices(), rings(), and SiStripFec().

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