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
SiStripFecCrate Class Reference

#include <SiStripFecCrate.h>

Public Member Functions

void addDevices (const FedChannelConnection &conn)
 
const uint16_t & fecCrate () const
 
const std::vector< SiStripFec > & fecs () const
 
 SiStripFecCrate (const FedChannelConnection &conn)
 
 ~SiStripFecCrate ()
 

Private Member Functions

 SiStripFecCrate ()
 

Private Attributes

uint16_t fecCrate_
 
std::vector< SiStripFecfecs_
 

Detailed Description

Author
R.Bainbridge

Definition at line 15 of file SiStripFecCrate.h.

Constructor & Destructor Documentation

SiStripFecCrate::SiStripFecCrate ( const FedChannelConnection conn)

Definition at line 8 of file SiStripFecCrate.cc.

References addDevices(), and fecs_.

9  : fecCrate_( conn.fecCrate() ),
10  fecs_()
11 {
12  fecs_.reserve(20);
13  addDevices( conn );
14 }
const uint16_t & fecCrate() const
std::vector< SiStripFec > fecs_
void addDevices(const FedChannelConnection &conn)
SiStripFecCrate::~SiStripFecCrate ( )
inline

Definition at line 23 of file SiStripFecCrate.h.

23 {;}
SiStripFecCrate::SiStripFecCrate ( )
inlineprivate

Definition at line 37 of file SiStripFecCrate.h.

37 {;}

Member Function Documentation

void SiStripFecCrate::addDevices ( const FedChannelConnection conn)

Definition at line 18 of file SiStripFecCrate.cc.

References SiStripFec::addDevices(), end, fecs(), fecs_, and FedChannelConnection::fecSlot().

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

18  {
19  std::vector<SiStripFec>::const_iterator ifec = fecs().begin();
20  while ( ifec != fecs().end() && (*ifec).fecSlot() != conn.fecSlot() ) { ifec++; }
21  if ( ifec == fecs().end() ) {
22  fecs_.push_back( SiStripFec( conn ) );
23  } else {
24  const_cast<SiStripFec&>(*ifec).addDevices( conn );
25  }
26 }
const uint16_t & fecSlot() const
const std::vector< SiStripFec > & fecs() const
void addDevices(const FedChannelConnection &conn)
Definition: SiStripFec.cc:18
#define end
Definition: vmac.h:38
std::vector< SiStripFec > fecs_
const uint16_t & SiStripFecCrate::fecCrate ( ) const
inline

Definition at line 50 of file SiStripFecCrate.h.

References fecCrate_.

50 { return fecCrate_; }
const std::vector< SiStripFec > & SiStripFecCrate::fecs ( ) const
inline

Definition at line 49 of file SiStripFecCrate.h.

References fecs_.

Referenced by addDevices().

49 { return fecs_; }
std::vector< SiStripFec > fecs_

Member Data Documentation

uint16_t SiStripFecCrate::fecCrate_
private

Definition at line 40 of file SiStripFecCrate.h.

Referenced by fecCrate().

std::vector<SiStripFec> SiStripFecCrate::fecs_
private

Definition at line 43 of file SiStripFecCrate.h.

Referenced by addDevices(), fecs(), and SiStripFecCrate().