CMS 3D CMS Logo

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

#include <SiStripCcu.h>

Public Member Functions

void addDevices (const FedChannelConnection &conn)
 
const uint16_t & ccuAddr () const
 
std::vector< SiStripModule > & modules ()
 
const std::vector< SiStripModule > & modules () const
 
 SiStripCcu (const FedChannelConnection &conn)
 
 ~SiStripCcu ()
 

Private Member Functions

 SiStripCcu ()
 

Private Attributes

uint16_t ccuAddr_
 
std::vector< SiStripModulemodules_
 

Detailed Description

Author
R.Bainbridge

Definition at line 14 of file SiStripCcu.h.

Constructor & Destructor Documentation

◆ SiStripCcu() [1/2]

SiStripCcu::SiStripCcu ( const FedChannelConnection conn)

Definition at line 7 of file SiStripCcu.cc.

7  : ccuAddr_(conn.ccuAddr()), modules_() {
8  modules_.reserve(32);
10 }

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

◆ ~SiStripCcu()

SiStripCcu::~SiStripCcu ( )
inline

Definition at line 20 of file SiStripCcu.h.

20 { ; }

◆ SiStripCcu() [2/2]

SiStripCcu::SiStripCcu ( )
inlineprivate

Definition at line 34 of file SiStripCcu.h.

34 { ; }

Member Function Documentation

◆ addDevices()

void SiStripCcu::addDevices ( const FedChannelConnection conn)

Definition at line 14 of file SiStripCcu.cc.

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

References SiStripCommissioningClient_cfg::conn, and modules_.

Referenced by SiStripCcu().

◆ ccuAddr()

const uint16_t & SiStripCcu::ccuAddr ( ) const
inline

Definition at line 47 of file SiStripCcu.h.

47 { return ccuAddr_; }

References ccuAddr_.

◆ modules() [1/2]

std::vector< SiStripModule > & SiStripCcu::modules ( )
inline

Definition at line 46 of file SiStripCcu.h.

46 { return modules_; }

References modules_.

◆ modules() [2/2]

const std::vector< SiStripModule > & SiStripCcu::modules ( ) const
inline

Definition at line 45 of file SiStripCcu.h.

45 { return modules_; }

References modules_.

Member Data Documentation

◆ ccuAddr_

uint16_t SiStripCcu::ccuAddr_
private

Definition at line 37 of file SiStripCcu.h.

Referenced by ccuAddr().

◆ modules_

std::vector<SiStripModule> SiStripCcu::modules_
private

Definition at line 40 of file SiStripCcu.h.

Referenced by addDevices(), modules(), and SiStripCcu().

SiStripModule
Device and connection information at the level of a front-end module.
Definition: SiStripModule.h:24
SiStripCommissioningClient_cfg.conn
conn
Definition: SiStripCommissioningClient_cfg.py:5
SiStripCcu::addDevices
void addDevices(const FedChannelConnection &conn)
Definition: SiStripCcu.cc:14
SiStripCcu::modules_
std::vector< SiStripModule > modules_
Definition: SiStripCcu.h:40
SiStripCcu::ccuAddr_
uint16_t ccuAddr_
Definition: SiStripCcu.h:37