Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
CalibFormats
SiStripObjects
src
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
3
#include "
CalibFormats/SiStripObjects/interface/NumberOfDevices.h
"
4
#include <iomanip>
5
6
// -----------------------------------------------------------------------------
7
//
8
void
NumberOfDevices::clear
() {
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) : "
60
<< (
nApvPairs0_
+
nApvPairs1_
+
nApvPairs2_
+
nApvPairs3_
) <<
"/"
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
}
NumberOfDevices::print
void print(std::stringstream &) const
Definition:
NumberOfDevices.cc:35
NumberOfDevices.h
NumberOfDevices::nFedChans_
uint32_t nFedChans_
Definition:
NumberOfDevices.h:32
NumberOfDevices::nMuxes_
uint32_t nMuxes_
Definition:
NumberOfDevices.h:33
NumberOfDevices::nFecCrates_
uint32_t nFecCrates_
Definition:
NumberOfDevices.h:26
NumberOfDevices::nFecRings_
uint32_t nFecRings_
Definition:
NumberOfDevices.h:26
NumberOfDevices::nFecSlots_
uint32_t nFecSlots_
Definition:
NumberOfDevices.h:26
NumberOfDevices::nFedIds_
uint32_t nFedIds_
Definition:
NumberOfDevices.h:32
operator<<
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition:
ALILine.cc:187
NumberOfDevices::nDetIds_
uint32_t nDetIds_
Definition:
NumberOfDevices.h:30
NumberOfDevices::nDcuIds_
uint32_t nDcuIds_
Definition:
NumberOfDevices.h:27
NumberOfDevices::nPlls_
uint32_t nPlls_
Definition:
NumberOfDevices.h:33
NumberOfDevices::nApvPairs3_
uint32_t nApvPairs3_
Definition:
NumberOfDevices.h:29
NumberOfDevices::nDcus_
uint32_t nDcus_
Definition:
NumberOfDevices.h:33
NumberOfDevices::nCcuChans_
uint32_t nCcuChans_
Definition:
NumberOfDevices.h:27
NumberOfDevices::clear
void clear()
Definition:
NumberOfDevices.cc:8
NumberOfDevices::nApvPairsX_
uint32_t nApvPairsX_
Definition:
NumberOfDevices.h:28
NumberOfDevices::nFedSlots_
uint32_t nFedSlots_
Definition:
NumberOfDevices.h:31
NumberOfDevices::nApvPairs0_
uint32_t nApvPairs0_
Definition:
NumberOfDevices.h:28
NumberOfDevices::nApvs_
uint32_t nApvs_
Definition:
NumberOfDevices.h:27
NumberOfDevices
Simple container class for counting devices.
Definition:
NumberOfDevices.h:15
NumberOfDevices::nApvPairs2_
uint32_t nApvPairs2_
Definition:
NumberOfDevices.h:29
NumberOfDevices::nApvPairs1_
uint32_t nApvPairs1_
Definition:
NumberOfDevices.h:29
NumberOfDevices::nFedCrates_
uint32_t nFedCrates_
Definition:
NumberOfDevices.h:31
NumberOfDevices::nApvPairs_
uint32_t nApvPairs_
Definition:
NumberOfDevices.h:30
NumberOfDevices::nCcuAddrs_
uint32_t nCcuAddrs_
Definition:
NumberOfDevices.h:27
NumberOfDevices::nLlds_
uint32_t nLlds_
Definition:
NumberOfDevices.h:33
Generated for CMSSW Reference Manual by
1.8.5