CMS 3D CMS Logo

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

#include <SiStripRing.h>

Public Member Functions

void addDevices (const FedChannelConnection &conn)
 
const std::vector< SiStripCcu > & ccus () const
 
std::vector< SiStripCcu > & ccus ()
 
const uint16_t & fecRing () const
 
 SiStripRing (const FedChannelConnection &conn)
 
 ~SiStripRing ()
 

Private Member Functions

 SiStripRing ()
 

Private Attributes

std::vector< SiStripCcuccus_
 
uint16_t fecRing_
 

Detailed Description

Author
R.Bainbridge

Definition at line 14 of file SiStripRing.h.

Constructor & Destructor Documentation

SiStripRing::SiStripRing ( const FedChannelConnection conn)

Definition at line 7 of file SiStripRing.cc.

References addDevices(), and ccus_.

7  : fecRing_(conn.fecRing()), ccus_() {
8  ccus_.reserve(256);
9  addDevices(conn);
10 }
std::vector< SiStripCcu > ccus_
Definition: SiStripRing.h:40
uint16_t fecRing_
Definition: SiStripRing.h:37
const uint16_t & fecRing() const
void addDevices(const FedChannelConnection &conn)
Definition: SiStripRing.cc:14
SiStripRing::~SiStripRing ( )
inline

Definition at line 20 of file SiStripRing.h.

References addDevices(), ccus(), and fecRing().

20 { ; }
SiStripRing::SiStripRing ( )
inlineprivate

Definition at line 34 of file SiStripRing.h.

34 { ; }

Member Function Documentation

void SiStripRing::addDevices ( const FedChannelConnection conn)

Definition at line 14 of file SiStripRing.cc.

References FedChannelConnection::ccuAddr(), ccus(), and ccus_.

Referenced by SiStripRing(), and ~SiStripRing().

14  {
15  auto iccu = ccus_.begin();
16  while (iccu != ccus_.end() && (*iccu).ccuAddr() != conn.ccuAddr()) {
17  iccu++;
18  }
19  if (iccu == ccus().end()) {
20  ccus_.push_back(SiStripCcu(conn));
21  } else {
22  iccu->addDevices(conn);
23  }
24 }
std::vector< SiStripCcu > ccus_
Definition: SiStripRing.h:40
const std::vector< SiStripCcu > & ccus() const
Definition: SiStripRing.h:45
const uint16_t & ccuAddr() const
const std::vector< SiStripCcu > & SiStripRing::ccus ( ) const
inline

Definition at line 45 of file SiStripRing.h.

References ccus_.

Referenced by addDevices(), and ~SiStripRing().

45 { return ccus_; }
std::vector< SiStripCcu > ccus_
Definition: SiStripRing.h:40
std::vector< SiStripCcu > & SiStripRing::ccus ( )
inline

Definition at line 46 of file SiStripRing.h.

References ccus_.

46 { return ccus_; }
std::vector< SiStripCcu > ccus_
Definition: SiStripRing.h:40
const uint16_t & SiStripRing::fecRing ( ) const
inline

Definition at line 47 of file SiStripRing.h.

References fecRing_.

Referenced by ~SiStripRing().

47 { return fecRing_; }
uint16_t fecRing_
Definition: SiStripRing.h:37

Member Data Documentation

std::vector<SiStripCcu> SiStripRing::ccus_
private

Definition at line 40 of file SiStripRing.h.

Referenced by addDevices(), ccus(), and SiStripRing().

uint16_t SiStripRing::fecRing_
private

Definition at line 37 of file SiStripRing.h.

Referenced by fecRing().