CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

SiStripFec Class Reference

#include <SiStripFec.h>

List of all members.

Public Member Functions

void addDevices (const FedChannelConnection &conn)
const uint16_t & fecSlot () const
const std::vector< SiStripRing > & rings () const
 SiStripFec (const FedChannelConnection &conn)
 ~SiStripFec ()

Private Member Functions

 SiStripFec ()

Private Attributes

uint16_t fecSlot_
std::vector< SiStripRingrings_

Detailed Description

Author:
R.Bainbridge

Definition at line 15 of file SiStripFec.h.


Constructor & Destructor Documentation

SiStripFec::SiStripFec ( const FedChannelConnection conn)

Definition at line 8 of file SiStripFec.cc.

References addDevices(), and rings_.

  : fecSlot_( conn.fecSlot() ), 
    rings_() 
{ 
  rings_.reserve(8);
  addDevices( conn ); 
}
SiStripFec::~SiStripFec ( ) [inline]

Definition at line 23 of file SiStripFec.h.

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

Definition at line 37 of file SiStripFec.h.

{;}

Member Function Documentation

void SiStripFec::addDevices ( const FedChannelConnection conn)

Definition at line 18 of file SiStripFec.cc.

References SiStripRing::addDevices(), end, FedChannelConnection::fecRing(), rings(), and rings_.

Referenced by SiStripFecCrate::addDevices(), and SiStripFec().

                                                              {
  std::vector<SiStripRing>::const_iterator iring = rings().begin();
  while ( iring != rings().end() && (*iring).fecRing() != conn.fecRing() ) { iring++; }
  if ( iring == rings().end() ) { 
    rings_.push_back( SiStripRing( conn ) ); 
  } else { 
    const_cast<SiStripRing&>(*iring).addDevices( conn ); 
  }
}
const uint16_t & SiStripFec::fecSlot ( ) const [inline]

Definition at line 50 of file SiStripFec.h.

References fecSlot_.

{ return fecSlot_; }
const std::vector< SiStripRing > & SiStripFec::rings ( ) const [inline]

Definition at line 49 of file SiStripFec.h.

References rings_.

Referenced by addDevices().

{ return rings_; }

Member Data Documentation

uint16_t SiStripFec::fecSlot_ [private]

Definition at line 40 of file SiStripFec.h.

Referenced by fecSlot().

std::vector<SiStripRing> SiStripFec::rings_ [private]

Definition at line 43 of file SiStripFec.h.

Referenced by addDevices(), rings(), and SiStripFec().