CMS 3D CMS Logo

SiStripFec Class Reference

Author:
R.Bainbridge
More...

#include <CalibFormats/SiStripObjects/interface/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_.

00009   : fecSlot_( conn.fecSlot() ), 
00010     rings_() 
00011 { 
00012   rings_.reserve(8);
00013   addDevices( conn ); 
00014 }

SiStripFec::~SiStripFec (  )  [inline]

Definition at line 23 of file SiStripFec.h.

00023 {;}

SiStripFec::SiStripFec (  )  [inline, private]

Definition at line 37 of file SiStripFec.h.

00037 {;}


Member Function Documentation

void SiStripFec::addDevices ( const FedChannelConnection conn  ) 

Definition at line 18 of file SiStripFec.cc.

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

Referenced by SiStripFec().

00018                                                               {
00019   std::vector<SiStripRing>::const_iterator iring = rings().begin();
00020   while ( iring != rings().end() && (*iring).fecRing() != conn.fecRing() ) { iring++; }
00021   if ( iring == rings().end() ) { 
00022     rings_.push_back( SiStripRing( conn ) ); 
00023   } else { 
00024     const_cast<SiStripRing&>(*iring).addDevices( conn ); 
00025   }
00026 }

const uint16_t & SiStripFec::fecSlot (  )  const [inline]

Definition at line 50 of file SiStripFec.h.

References fecSlot_.

00050 { return fecSlot_; }

const std::vector< SiStripRing > & SiStripFec::rings (  )  const [inline]

Definition at line 49 of file SiStripFec.h.

References rings_.

Referenced by addDevices().

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


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:32:20 2009 for CMSSW by  doxygen 1.5.4