CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
NumberOfDevices.cc
Go to the documentation of this file.
1 // Last commit: $Id: NumberOfDevices.cc,v 1.10 2007/12/19 17:51:54 bainbrid Exp $
2 
4 #include <iomanip>
5 
6 // -----------------------------------------------------------------------------
7 //
9  nFecCrates_ = 0;
10  nFecSlots_ = 0;
11  nFecRings_ = 0;
12  nCcuAddrs_ = 0;
13  nCcuChans_ = 0;
14  nApvs_ = 0;
15  nDcuIds_ = 0;
16  nDetIds_ = 0;
17  nApvPairs_ = 0;
18  nApvPairs0_ = 0;
19  nApvPairs1_ = 0;
20  nApvPairs2_ = 0;
21  nApvPairs3_ = 0;
22  nApvPairsX_ = 0;
23  nFedCrates_ = 0;
24  nFedSlots_ = 0;
25  nFedIds_ = 0;
26  nFedChans_ = 0;
27  nDcus_ = 0;
28  nMuxes_ = 0;
29  nPlls_ = 0;
30  nLlds_ = 0;
31 }
32 
33 // -----------------------------------------------------------------------------
34 //
35 void NumberOfDevices::print( std::stringstream& ss ) const {
36  ss << " FEC crates : " << nFecCrates_ << std::endl
37  << " FEC slots : " << nFecSlots_ << std::endl
38  << " FEC rings : " << nFecRings_ << std::endl
39  << " CCU addrs : " << nCcuAddrs_ << std::endl
40  << " CCU chans : " << nCcuChans_ << std::endl
41  << " DCU ids : " << nDcuIds_ << std::endl
42  << " DCUs : " << nDcus_ << std::endl
43  << " MUXes : " << nMuxes_ << std::endl
44  << " PLLs : " << nPlls_ << std::endl
45  << " LLDs : " << nLlds_ << std::endl
46  << " DET ids : " << nDetIds_ << std::endl
47  << " APV pairs : " << nApvPairs_ << std::endl
48  << " APVs : " << nApvs_ << std::endl
49  << " FED crates : " << nFedCrates_ << std::endl
50  << " FED slots : " << nFedSlots_ << std::endl
51  << " FED ids : " << nFedIds_ << std::endl
52  << " FED channels : " << nFedChans_ << std::endl
53  << " Number of APV pairs (0/1/2/3/>3) per module : "
54  << nApvPairs0_ << "/"
55  << nApvPairs1_ << "/"
56  << nApvPairs2_ << "/"
57  << nApvPairs3_ << "/"
58  << nApvPairsX_ << std::endl
59  << " Total number of modules/channels (nApvPairs<=3) : "
61  << ( 0*nApvPairs0_ + 1*nApvPairs1_ + 2*nApvPairs2_ + 3*nApvPairs3_ );
62 }
63 
64 // -----------------------------------------------------------------------------
65 //
66 std::ostream& operator<< ( std::ostream& os, const NumberOfDevices& devs ) {
67  std::stringstream ss;
68  devs.print(ss);
69  os << ss.str();
70  return os;
71 }
void print(std::stringstream &) const
uint32_t nFecCrates_
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
uint32_t nApvPairs3_
uint32_t nApvPairsX_
uint32_t nApvPairs0_
Simple container class for counting devices.
uint32_t nApvPairs2_
uint32_t nApvPairs1_
uint32_t nFedCrates_