CMS 3D CMS Logo

Public Member Functions | Public Attributes

NumberOfDevices Class Reference

Simple container class for counting devices. More...

#include <NumberOfDevices.h>

List of all members.

Public Member Functions

void clear ()
 NumberOfDevices ()
void print (std::stringstream &) const

Public Attributes

uint32_t nApvPairs0_
uint32_t nApvPairs1_
uint32_t nApvPairs2_
uint32_t nApvPairs3_
uint32_t nApvPairs_
uint32_t nApvPairsX_
uint32_t nApvs_
uint32_t nCcuAddrs_
uint32_t nCcuChans_
uint32_t nDcuIds_
uint32_t nDcus_
uint32_t nDetIds_
uint32_t nFecCrates_
uint32_t nFecRings_
uint32_t nFecSlots_
uint32_t nFedChans_
uint32_t nFedCrates_
uint32_t nFedIds_
uint32_t nFedSlots_
uint32_t nLlds_
uint32_t nMuxes_
uint32_t nPlls_

Detailed Description

Simple container class for counting devices.

Author:
R.Bainbridge

Definition at line 15 of file NumberOfDevices.h.


Constructor & Destructor Documentation

NumberOfDevices::NumberOfDevices ( ) [inline]

Definition at line 19 of file NumberOfDevices.h.

References clear().

{ clear(); }

Member Function Documentation

void NumberOfDevices::clear ( void  )
void NumberOfDevices::print ( std::stringstream &  ss) const

Definition at line 35 of file NumberOfDevices.cc.

References nApvPairs0_, nApvPairs1_, nApvPairs2_, nApvPairs3_, nApvPairs_, nApvPairsX_, nApvs_, nCcuAddrs_, nCcuChans_, nDcuIds_, nDcus_, nDetIds_, nFecCrates_, nFecRings_, nFecSlots_, nFedChans_, nFedCrates_, nFedIds_, nFedSlots_, nLlds_, nMuxes_, and nPlls_.

Referenced by SiStripFedCablingBuilderFromDb::buildFecCablingFromDevices(), SiStripFedCablingFakeESSource::make(), and operator<<().

                                                       {
  ss << "  FEC crates   : " << nFecCrates_ << std::endl
     << "  FEC slots    : " << nFecSlots_ << std::endl
     << "  FEC rings    : " << nFecRings_ << std::endl
     << "  CCU addrs    : " << nCcuAddrs_ << std::endl
     << "  CCU chans    : " << nCcuChans_ << std::endl
     << "  DCU ids      : " << nDcuIds_ << std::endl
     << "  DCUs         : " << nDcus_ << std::endl
     << "  MUXes        : " << nMuxes_ << std::endl
     << "  PLLs         : " << nPlls_ << std::endl
     << "  LLDs         : " << nLlds_ << std::endl
     << "  DET ids      : " << nDetIds_ << std::endl
     << "  APV pairs    : " << nApvPairs_ << std::endl
     << "  APVs         : " << nApvs_ << std::endl
     << "  FED crates   : " << nFedCrates_ << std::endl
     << "  FED slots    : " << nFedSlots_ << std::endl
     << "  FED ids      : " << nFedIds_ << std::endl
     << "  FED channels : " << nFedChans_ << std::endl
     << "  Number of APV pairs (0/1/2/3/>3) per module     : " 
     << nApvPairs0_ << "/" 
     << nApvPairs1_ << "/"
     << nApvPairs2_ << "/"
     << nApvPairs3_ << "/"
     << nApvPairsX_ << std::endl
     << "  Total number of modules/channels (nApvPairs<=3) : " 
     << ( nApvPairs0_ + nApvPairs1_ + nApvPairs2_ + nApvPairs3_ ) << "/"
     << ( 0*nApvPairs0_ + 1*nApvPairs1_ + 2*nApvPairs2_ + 3*nApvPairs3_ );
}

Member Data Documentation

Definition at line 28 of file NumberOfDevices.h.

Referenced by clear(), SiStripFecCabling::countDevices(), and print().

Definition at line 29 of file NumberOfDevices.h.

Referenced by clear(), SiStripFecCabling::countDevices(), and print().

Definition at line 29 of file NumberOfDevices.h.

Referenced by clear(), SiStripFecCabling::countDevices(), and print().

Definition at line 29 of file NumberOfDevices.h.

Referenced by clear(), SiStripFecCabling::countDevices(), and print().

Definition at line 30 of file NumberOfDevices.h.

Referenced by clear(), SiStripFecCabling::countDevices(), and print().

Definition at line 28 of file NumberOfDevices.h.

Referenced by clear(), SiStripFecCabling::countDevices(), and print().

Definition at line 27 of file NumberOfDevices.h.

Referenced by clear(), SiStripFecCabling::countDevices(), and print().

Definition at line 27 of file NumberOfDevices.h.

Referenced by clear(), SiStripFecCabling::countDevices(), and print().

Definition at line 27 of file NumberOfDevices.h.

Referenced by clear(), SiStripFecCabling::countDevices(), and print().

Definition at line 27 of file NumberOfDevices.h.

Referenced by clear(), SiStripFecCabling::countDevices(), and print().

Definition at line 33 of file NumberOfDevices.h.

Referenced by clear(), SiStripFecCabling::countDevices(), and print().

Definition at line 30 of file NumberOfDevices.h.

Referenced by clear(), SiStripFecCabling::countDevices(), and print().

Definition at line 26 of file NumberOfDevices.h.

Referenced by clear(), SiStripFecCabling::countDevices(), and print().

Definition at line 26 of file NumberOfDevices.h.

Referenced by clear(), SiStripFecCabling::countDevices(), and print().

Definition at line 26 of file NumberOfDevices.h.

Referenced by clear(), SiStripFecCabling::countDevices(), and print().

Definition at line 32 of file NumberOfDevices.h.

Referenced by clear(), SiStripFecCabling::countDevices(), and print().

Definition at line 31 of file NumberOfDevices.h.

Referenced by clear(), SiStripFecCabling::countDevices(), and print().

Definition at line 32 of file NumberOfDevices.h.

Referenced by clear(), SiStripFecCabling::countDevices(), and print().

Definition at line 31 of file NumberOfDevices.h.

Referenced by clear(), SiStripFecCabling::countDevices(), and print().

Definition at line 33 of file NumberOfDevices.h.

Referenced by clear(), SiStripFecCabling::countDevices(), and print().

Definition at line 33 of file NumberOfDevices.h.

Referenced by clear(), SiStripFecCabling::countDevices(), and print().

Definition at line 33 of file NumberOfDevices.h.

Referenced by clear(), SiStripFecCabling::countDevices(), and print().