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::SiStripFec ( const FedChannelConnection conn)

Definition at line 7 of file SiStripFec.cc.

References addDevices(), and rings_.

7  : fecSlot_(conn.fecSlot()), rings_() {
8  rings_.reserve(8);
9  addDevices(conn);
10 }
const uint16_t & fecSlot() const
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 ( )
inline

Definition at line 20 of file SiStripFec.h.

References addDevices(), fecSlot(), and rings().

20 { ; }
SiStripFec::SiStripFec ( )
inlineprivate

Definition at line 34 of file SiStripFec.h.

34 { ; }

Member Function Documentation

void SiStripFec::addDevices ( const FedChannelConnection conn)

Definition at line 14 of file SiStripFec.cc.

References FedChannelConnection::fecRing(), and rings_.

Referenced by SiStripFec(), and ~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
const uint16_t & fecRing() const
const uint16_t & SiStripFec::fecSlot ( ) const
inline

Definition at line 47 of file SiStripFec.h.

References fecSlot_.

Referenced by ~SiStripFec().

47 { return fecSlot_; }
uint16_t fecSlot_
Definition: SiStripFec.h:37
const std::vector< SiStripRing > & SiStripFec::rings ( ) const
inline

Definition at line 45 of file SiStripFec.h.

References rings_.

Referenced by ~SiStripFec().

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

uint16_t SiStripFec::fecSlot_
private

Definition at line 37 of file SiStripFec.h.

Referenced by fecSlot().

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

Definition at line 40 of file SiStripFec.h.

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