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

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

7  : fecSlot_(conn.fecSlot()), rings_() {
8  rings_.reserve(8);
10 }
std::vector< SiStripRing > rings_
Definition: SiStripFec.h:40
void addDevices(const FedChannelConnection &conn)
Definition: SiStripFec.cc:14
uint16_t fecSlot_
Definition: SiStripFec.h:37

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

References G2GainsValidator::conn, and rings_.

Referenced by SiStripFec().

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 }
std::vector< SiStripRing > rings_
Definition: SiStripFec.h:40

◆ fecSlot()

const uint16_t & SiStripFec::fecSlot ( ) const
inline

Definition at line 47 of file SiStripFec.h.

References fecSlot_.

47 { return fecSlot_; }
uint16_t fecSlot_
Definition: SiStripFec.h:37

◆ rings() [1/2]

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

Definition at line 45 of file SiStripFec.h.

References rings_.

45 { return rings_; }
std::vector< SiStripRing > rings_
Definition: SiStripFec.h:40

◆ rings() [2/2]

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

Definition at line 46 of file SiStripFec.h.

References rings_.

46 { return rings_; }
std::vector< SiStripRing > rings_
Definition: SiStripFec.h:40

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