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() [1/2]

SiStripRing::SiStripRing ( const FedChannelConnection conn)

Definition at line 7 of file SiStripRing.cc.

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

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

◆ ~SiStripRing()

SiStripRing::~SiStripRing ( )
inline

Definition at line 20 of file SiStripRing.h.

20 { ; }

◆ SiStripRing() [2/2]

SiStripRing::SiStripRing ( )
inlineprivate

Definition at line 34 of file SiStripRing.h.

34 { ; }

Member Function Documentation

◆ addDevices()

void SiStripRing::addDevices ( const FedChannelConnection conn)

Definition at line 14 of file SiStripRing.cc.

References ccus(), ccus_, and G2GainsValidator::conn.

Referenced by 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

◆ ccus() [1/2]

const std::vector< SiStripCcu > & SiStripRing::ccus ( ) const
inline

Definition at line 45 of file SiStripRing.h.

References ccus_.

Referenced by addDevices().

45 { return ccus_; }
std::vector< SiStripCcu > ccus_
Definition: SiStripRing.h:40

◆ ccus() [2/2]

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

◆ fecRing()

const uint16_t & SiStripRing::fecRing ( ) const
inline

Definition at line 47 of file SiStripRing.h.

References fecRing_.

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

Member Data Documentation

◆ ccus_

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

Definition at line 40 of file SiStripRing.h.

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

◆ fecRing_

uint16_t SiStripRing::fecRing_
private

Definition at line 37 of file SiStripRing.h.

Referenced by fecRing().