test
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
 
std::vector< SiStripRing > & rings ()
 
 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:43
void addDevices(const FedChannelConnection &conn)
Definition: SiStripFec.cc:17
uint16_t fecSlot_
Definition: SiStripFec.h:40
SiStripFec::~SiStripFec ( )
inline

Definition at line 22 of file SiStripFec.h.

22 {;}
SiStripFec::SiStripFec ( )
inlineprivate

Definition at line 37 of file SiStripFec.h.

37 {;}

Member Function Documentation

void SiStripFec::addDevices ( const FedChannelConnection conn)

Definition at line 17 of file SiStripFec.cc.

References FedChannelConnection::fecRing(), and rings_.

Referenced by SiStripFec().

17  {
18  auto 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  iring->addDevices( conn );
24  }
25 }
std::vector< SiStripRing > rings_
Definition: SiStripFec.h:43
const uint16_t & fecRing() const
const uint16_t & SiStripFec::fecSlot ( ) const
inline

Definition at line 51 of file SiStripFec.h.

References fecSlot_.

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

Definition at line 49 of file SiStripFec.h.

References rings_.

49 { return rings_; }
std::vector< SiStripRing > rings_
Definition: SiStripFec.h:43
std::vector< SiStripRing > & SiStripFec::rings ( )
inline

Definition at line 50 of file SiStripFec.h.

References rings_.

50 { return rings_; }
std::vector< SiStripRing > rings_
Definition: SiStripFec.h:43

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