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
 
const std::vector< SiStripModule > & modules () const
 
std::vector< SiStripModule > & modules ()
 
 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::SiStripCcu ( const FedChannelConnection conn)

Definition at line 7 of file SiStripCcu.cc.

References addDevices(), and modules_.

8  : ccuAddr_( conn.ccuAddr() ),
9  modules_()
10 {
11  modules_.reserve(32);
12  addDevices( conn );
13 }
uint16_t ccuAddr_
Definition: SiStripCcu.h:40
const uint16_t & ccuAddr() const
void addDevices(const FedChannelConnection &conn)
Definition: SiStripCcu.cc:17
std::vector< SiStripModule > modules_
Definition: SiStripCcu.h:43
SiStripCcu::~SiStripCcu ( )
inline

Definition at line 22 of file SiStripCcu.h.

References addDevices(), ccuAddr(), and modules().

22 {;}
SiStripCcu::SiStripCcu ( )
inlineprivate

Definition at line 37 of file SiStripCcu.h.

37 {;}

Member Function Documentation

void SiStripCcu::addDevices ( const FedChannelConnection conn)

Definition at line 17 of file SiStripCcu.cc.

References FedChannelConnection::ccuChan(), and modules_.

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

17  {
18  auto imod = modules_.begin();
19  while ( imod != modules_.end() && (*imod).ccuChan() != conn.ccuChan() ) { imod++; }
20  if ( imod == modules_.end() ) {
21  modules_.push_back( SiStripModule( conn ) );
22  } else {
23  imod->addDevices( conn );
24  }
25 }
Device and connection information at the level of a front-end module.
Definition: SiStripModule.h:24
const uint16_t & ccuChan() const
std::vector< SiStripModule > modules_
Definition: SiStripCcu.h:43
const uint16_t & SiStripCcu::ccuAddr ( ) const
inline

Definition at line 51 of file SiStripCcu.h.

References ccuAddr_.

Referenced by ~SiStripCcu().

51 { return ccuAddr_; }
uint16_t ccuAddr_
Definition: SiStripCcu.h:40
const std::vector< SiStripModule > & SiStripCcu::modules ( ) const
inline

Definition at line 49 of file SiStripCcu.h.

References modules_.

Referenced by ~SiStripCcu().

49 { return modules_; }
std::vector< SiStripModule > modules_
Definition: SiStripCcu.h:43
std::vector< SiStripModule > & SiStripCcu::modules ( )
inline

Definition at line 50 of file SiStripCcu.h.

References modules_.

50 { return modules_; }
std::vector< SiStripModule > modules_
Definition: SiStripCcu.h:43

Member Data Documentation

uint16_t SiStripCcu::ccuAddr_
private

Definition at line 40 of file SiStripCcu.h.

Referenced by ccuAddr().

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

Definition at line 43 of file SiStripCcu.h.

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