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
 
std::vector< SiStripFec > & fecs ()
 
 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 14 of file SiStripFecCrate.h.

Constructor & Destructor Documentation

SiStripFecCrate::SiStripFecCrate ( const FedChannelConnection conn)

Definition at line 7 of file SiStripFecCrate.cc.

References addDevices(), and fecs_.

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

Definition at line 22 of file SiStripFecCrate.h.

22 {;}
SiStripFecCrate::SiStripFecCrate ( )
inlineprivate

Definition at line 37 of file SiStripFecCrate.h.

37 {;}

Member Function Documentation

void SiStripFecCrate::addDevices ( const FedChannelConnection conn)

Definition at line 17 of file SiStripFecCrate.cc.

References fecs_, and FedChannelConnection::fecSlot().

Referenced by SiStripFecCrate().

17  {
18  auto ifec = fecs_.begin();
19  while ( ifec != fecs_.end() && (*ifec).fecSlot() != conn.fecSlot() ) { ifec++; }
20  if ( ifec == fecs_.end() ) {
21  fecs_.push_back( SiStripFec( conn ) );
22  } else {
23  ifec->addDevices( conn );
24  }
25 }
const uint16_t & fecSlot() const
std::vector< SiStripFec > fecs_
const uint16_t & SiStripFecCrate::fecCrate ( ) const
inline

Definition at line 51 of file SiStripFecCrate.h.

References fecCrate_.

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

Definition at line 49 of file SiStripFecCrate.h.

References fecs_.

49 { return fecs_; }
std::vector< SiStripFec > fecs_
std::vector< SiStripFec > & SiStripFecCrate::fecs ( )
inline

Definition at line 50 of file SiStripFecCrate.h.

References fecs_.

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