CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

SiStripCcu Class Reference

#include <SiStripCcu.h>

List of all members.

Public Member Functions

void addDevices (const FedChannelConnection &conn)
const uint16_t & ccuAddr () const
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 15 of file SiStripCcu.h.


Constructor & Destructor Documentation

SiStripCcu::SiStripCcu ( const FedChannelConnection conn)

Definition at line 8 of file SiStripCcu.cc.

References addDevices(), and modules_.

  : ccuAddr_( conn.ccuAddr() ), 
    modules_() 
{ 
  modules_.reserve(32);
  addDevices( conn ); 
}
SiStripCcu::~SiStripCcu ( ) [inline]

Definition at line 23 of file SiStripCcu.h.

{;}
SiStripCcu::SiStripCcu ( ) [inline, private]

Definition at line 37 of file SiStripCcu.h.

{;}

Member Function Documentation

void SiStripCcu::addDevices ( const FedChannelConnection conn)

Definition at line 18 of file SiStripCcu.cc.

References SiStripModule::addDevices(), FedChannelConnection::ccuChan(), end, modules(), and modules_.

Referenced by SiStripRing::addDevices(), and SiStripCcu().

                                                              {
  std::vector<SiStripModule>::const_iterator imod = modules().begin();
  while ( imod != modules().end() && (*imod).ccuChan() != conn.ccuChan() ) { imod++; }
  if ( imod == modules().end() ) { 
    modules_.push_back( SiStripModule( conn ) ); 
  } else { 
    const_cast<SiStripModule&>(*imod).addDevices( conn ); 
  }
}
const uint16_t & SiStripCcu::ccuAddr ( ) const [inline]

Definition at line 50 of file SiStripCcu.h.

References ccuAddr_.

{ return ccuAddr_; }
const std::vector< SiStripModule > & SiStripCcu::modules ( ) const [inline]

Definition at line 49 of file SiStripCcu.h.

References modules_.

Referenced by addDevices().

{ return modules_; }

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().