CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
SiStripFec Class Reference

#include <SiStripFec.h>

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 14 of file SiStripFec.h.

Constructor & Destructor Documentation

SiStripFec::SiStripFec ( const FedChannelConnection conn)

Definition at line 7 of file SiStripFec.cc.

References addDevices(), and rings_.

8  : fecSlot_( conn.fecSlot() ),
9  rings_()
10 {
11  rings_.reserve(8);
12  addDevices( conn );
13 }
const uint16_t & fecSlot() const
std::vector< SiStripRing > rings_
Definition: SiStripFec.h:42
void addDevices(const FedChannelConnection &conn)
Definition: SiStripFec.cc:17
uint16_t fecSlot_
Definition: SiStripFec.h:39
SiStripFec::~SiStripFec ( )
inline

Definition at line 22 of file SiStripFec.h.

22 {;}
SiStripFec::SiStripFec ( )
inlineprivate

Definition at line 36 of file SiStripFec.h.

36 {;}

Member Function Documentation

void SiStripFec::addDevices ( const FedChannelConnection conn)

Definition at line 17 of file SiStripFec.cc.

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

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

17  {
18  std::vector<SiStripRing>::const_iterator iring = rings().begin();
19  while ( iring != rings().end() && (*iring).fecRing() != conn.fecRing() ) { iring++; }
20  if ( iring == rings().end() ) {
21  rings_.push_back( SiStripRing( conn ) );
22  } else {
23  const_cast<SiStripRing&>(*iring).addDevices( conn );
24  }
25 }
const std::vector< SiStripRing > & rings() const
Definition: SiStripFec.h:48
std::vector< SiStripRing > rings_
Definition: SiStripFec.h:42
const uint16_t & fecRing() const
#define end
Definition: vmac.h:37
void addDevices(const FedChannelConnection &conn)
Definition: SiStripRing.cc:17
const uint16_t & SiStripFec::fecSlot ( ) const
inline

Definition at line 49 of file SiStripFec.h.

References fecSlot_.

49 { return fecSlot_; }
uint16_t fecSlot_
Definition: SiStripFec.h:39
const std::vector< SiStripRing > & SiStripFec::rings ( ) const
inline

Definition at line 48 of file SiStripFec.h.

References rings_.

Referenced by addDevices().

48 { return rings_; }
std::vector< SiStripRing > rings_
Definition: SiStripFec.h:42

Member Data Documentation

uint16_t SiStripFec::fecSlot_
private

Definition at line 39 of file SiStripFec.h.

Referenced by fecSlot().

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

Definition at line 42 of file SiStripFec.h.

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