CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
NumberOfDevices Class Reference

Simple container class for counting devices. More...

#include <NumberOfDevices.h>

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 14 of file NumberOfDevices.h.

Constructor & Destructor Documentation

◆ NumberOfDevices()

NumberOfDevices::NumberOfDevices ( )
inline

Definition at line 16 of file NumberOfDevices.h.

16 { clear(); }

References clear().

Member Function Documentation

◆ clear()

void NumberOfDevices::clear ( void  )

Definition at line 7 of file NumberOfDevices.cc.

7  {
8  nFecCrates_ = 0;
9  nFecSlots_ = 0;
10  nFecRings_ = 0;
11  nCcuAddrs_ = 0;
12  nCcuChans_ = 0;
13  nApvs_ = 0;
14  nDcuIds_ = 0;
15  nDetIds_ = 0;
16  nApvPairs_ = 0;
17  nApvPairs0_ = 0;
18  nApvPairs1_ = 0;
19  nApvPairs2_ = 0;
20  nApvPairs3_ = 0;
21  nApvPairsX_ = 0;
22  nFedCrates_ = 0;
23  nFedSlots_ = 0;
24  nFedIds_ = 0;
25  nFedChans_ = 0;
26  nDcus_ = 0;
27  nMuxes_ = 0;
28  nPlls_ = 0;
29  nLlds_ = 0;
30 }

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 NumberOfDevices(), and BeautifulSoup.Tag::setString().

◆ print()

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

Definition at line 34 of file NumberOfDevices.cc.

34  {
35  ss << " FEC crates : " << nFecCrates_ << std::endl
36  << " FEC slots : " << nFecSlots_ << std::endl
37  << " FEC rings : " << nFecRings_ << std::endl
38  << " CCU addrs : " << nCcuAddrs_ << std::endl
39  << " CCU chans : " << nCcuChans_ << std::endl
40  << " DCU ids : " << nDcuIds_ << std::endl
41  << " DCUs : " << nDcus_ << std::endl
42  << " MUXes : " << nMuxes_ << std::endl
43  << " PLLs : " << nPlls_ << std::endl
44  << " LLDs : " << nLlds_ << std::endl
45  << " DET ids : " << nDetIds_ << std::endl
46  << " APV pairs : " << nApvPairs_ << std::endl
47  << " APVs : " << nApvs_ << std::endl
48  << " FED crates : " << nFedCrates_ << std::endl
49  << " FED slots : " << nFedSlots_ << std::endl
50  << " FED ids : " << nFedIds_ << std::endl
51  << " FED channels : " << nFedChans_ << std::endl
52  << " Number of APV pairs (0/1/2/3/>3) per module : " << nApvPairs0_ << "/" << nApvPairs1_ << "/"
53  << nApvPairs2_ << "/" << nApvPairs3_ << "/" << nApvPairsX_ << std::endl
54  << " Total number of modules/channels (nApvPairs<=3) : "
56  << (0 * nApvPairs0_ + 1 * nApvPairs1_ + 2 * nApvPairs2_ + 3 * nApvPairs3_);
57 }

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

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

Member Data Documentation

◆ nApvPairs0_

uint32_t NumberOfDevices::nApvPairs0_

Definition at line 24 of file NumberOfDevices.h.

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

◆ nApvPairs1_

uint32_t NumberOfDevices::nApvPairs1_

Definition at line 25 of file NumberOfDevices.h.

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

◆ nApvPairs2_

uint32_t NumberOfDevices::nApvPairs2_

Definition at line 25 of file NumberOfDevices.h.

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

◆ nApvPairs3_

uint32_t NumberOfDevices::nApvPairs3_

Definition at line 25 of file NumberOfDevices.h.

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

◆ nApvPairs_

uint32_t NumberOfDevices::nApvPairs_

Definition at line 27 of file NumberOfDevices.h.

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

◆ nApvPairsX_

uint32_t NumberOfDevices::nApvPairsX_

Definition at line 24 of file NumberOfDevices.h.

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

◆ nApvs_

uint32_t NumberOfDevices::nApvs_

Definition at line 23 of file NumberOfDevices.h.

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

◆ nCcuAddrs_

uint32_t NumberOfDevices::nCcuAddrs_

Definition at line 23 of file NumberOfDevices.h.

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

◆ nCcuChans_

uint32_t NumberOfDevices::nCcuChans_

Definition at line 23 of file NumberOfDevices.h.

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

◆ nDcuIds_

uint32_t NumberOfDevices::nDcuIds_

Definition at line 23 of file NumberOfDevices.h.

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

◆ nDcus_

uint32_t NumberOfDevices::nDcus_

Definition at line 30 of file NumberOfDevices.h.

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

◆ nDetIds_

uint32_t NumberOfDevices::nDetIds_

Definition at line 27 of file NumberOfDevices.h.

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

◆ nFecCrates_

uint32_t NumberOfDevices::nFecCrates_

Definition at line 22 of file NumberOfDevices.h.

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

◆ nFecRings_

uint32_t NumberOfDevices::nFecRings_

Definition at line 22 of file NumberOfDevices.h.

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

◆ nFecSlots_

uint32_t NumberOfDevices::nFecSlots_

Definition at line 22 of file NumberOfDevices.h.

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

◆ nFedChans_

uint32_t NumberOfDevices::nFedChans_

Definition at line 29 of file NumberOfDevices.h.

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

◆ nFedCrates_

uint32_t NumberOfDevices::nFedCrates_

Definition at line 28 of file NumberOfDevices.h.

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

◆ nFedIds_

uint32_t NumberOfDevices::nFedIds_

Definition at line 29 of file NumberOfDevices.h.

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

◆ nFedSlots_

uint32_t NumberOfDevices::nFedSlots_

Definition at line 28 of file NumberOfDevices.h.

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

◆ nLlds_

uint32_t NumberOfDevices::nLlds_

Definition at line 30 of file NumberOfDevices.h.

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

◆ nMuxes_

uint32_t NumberOfDevices::nMuxes_

Definition at line 30 of file NumberOfDevices.h.

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

◆ nPlls_

uint32_t NumberOfDevices::nPlls_

Definition at line 30 of file NumberOfDevices.h.

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

NumberOfDevices::nApvs_
uint32_t nApvs_
Definition: NumberOfDevices.h:23
NumberOfDevices::nPlls_
uint32_t nPlls_
Definition: NumberOfDevices.h:30
NumberOfDevices::nFedChans_
uint32_t nFedChans_
Definition: NumberOfDevices.h:29
NumberOfDevices::nFecRings_
uint32_t nFecRings_
Definition: NumberOfDevices.h:22
NumberOfDevices::nDcuIds_
uint32_t nDcuIds_
Definition: NumberOfDevices.h:23
contentValuesCheck.ss
ss
Definition: contentValuesCheck.py:33
NumberOfDevices::nFedSlots_
uint32_t nFedSlots_
Definition: NumberOfDevices.h:28
NumberOfDevices::nDetIds_
uint32_t nDetIds_
Definition: NumberOfDevices.h:27
NumberOfDevices::nDcus_
uint32_t nDcus_
Definition: NumberOfDevices.h:30
NumberOfDevices::nApvPairs_
uint32_t nApvPairs_
Definition: NumberOfDevices.h:27
NumberOfDevices::nFedIds_
uint32_t nFedIds_
Definition: NumberOfDevices.h:29
NumberOfDevices::clear
void clear()
Definition: NumberOfDevices.cc:7
NumberOfDevices::nFedCrates_
uint32_t nFedCrates_
Definition: NumberOfDevices.h:28
NumberOfDevices::nApvPairs1_
uint32_t nApvPairs1_
Definition: NumberOfDevices.h:25
NumberOfDevices::nFecCrates_
uint32_t nFecCrates_
Definition: NumberOfDevices.h:22
NumberOfDevices::nApvPairsX_
uint32_t nApvPairsX_
Definition: NumberOfDevices.h:24
NumberOfDevices::nApvPairs0_
uint32_t nApvPairs0_
Definition: NumberOfDevices.h:24
NumberOfDevices::nLlds_
uint32_t nLlds_
Definition: NumberOfDevices.h:30
NumberOfDevices::nCcuAddrs_
uint32_t nCcuAddrs_
Definition: NumberOfDevices.h:23
NumberOfDevices::nCcuChans_
uint32_t nCcuChans_
Definition: NumberOfDevices.h:23
NumberOfDevices::nFecSlots_
uint32_t nFecSlots_
Definition: NumberOfDevices.h:22
NumberOfDevices::nApvPairs2_
uint32_t nApvPairs2_
Definition: NumberOfDevices.h:25
NumberOfDevices::nMuxes_
uint32_t nMuxes_
Definition: NumberOfDevices.h:30
NumberOfDevices::nApvPairs3_
uint32_t nApvPairs3_
Definition: NumberOfDevices.h:25