CondFormats
PPSObjects
src
CTPPSPixelDAQMapping.cc
Go to the documentation of this file.
1
/****************************************************************************
2
*
3
*
4
* Authors:
5
* F.Ferro ferro@ge.infn.it
6
*
7
****************************************************************************/
8
9
#include "
FWCore/Utilities/interface/typelookup.h
"
10
11
#include "
CondFormats/PPSObjects/interface/CTPPSPixelDAQMapping.h
"
12
13
using namespace
std
;
14
15
//----------------------------------------------------------------------------------------------------
16
17
std::set<unsigned int>
CTPPSPixelDAQMapping::fedIds
()
const
{
18
std::set<unsigned int> fedSet;
19
for
(
const
auto
&
p
: ROCMapping) {
20
fedSet.insert(
p
.first.getFEDId());
21
}
22
return
fedSet;
23
}
24
25
std::ostream &
operator<<
(std::ostream &
s
,
const
CTPPSPixelROCInfo
&vi) {
26
s
<<
"ID="
<< vi.
iD
<<
" ROC="
<< vi.
roc
;
27
28
return
s
;
29
}
30
31
//----------------------------------------------------------------------------------------------------
32
33
void
CTPPSPixelDAQMapping::insert
(
const
CTPPSPixelFramePosition
&
fp
,
const
CTPPSPixelROCInfo
&vi) {
34
auto
it = ROCMapping.find(
fp
);
35
if
(it != ROCMapping.end()) {
36
edm::LogError
(
"RPix"
) <<
"WARNING in DAQMapping::insert > Overwriting entry at "
<<
fp
<<
". Previous: "
37
<<
" "
<< ROCMapping[
fp
] <<
","
38
<<
" new: "
39
<<
" "
<< vi <<
". "
;
40
}
41
42
ROCMapping[
fp
] = vi;
43
}
CTPPSPixelDAQMapping::fedIds
std::set< unsigned int > fedIds() const
Definition:
CTPPSPixelDAQMapping.cc:16
AlCaHLTBitMon_ParallelJobs.p
p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
typelookup.h
CTPPSPixelFramePosition
Definition:
CTPPSPixelFramePosition.h:27
CTPPSPixelROCInfo::iD
uint32_t iD
the symbolic id
Definition:
CTPPSPixelDAQMapping.h:31
personalPlayback.fp
fp
Definition:
personalPlayback.py:523
std::operator<<
std::ostream & operator<<(std::ostream &out, const std::tuple< Types... > &value)
Definition:
Utilities.h:32
alignCSCRings.s
s
Definition:
alignCSCRings.py:92
CTPPSPixelDAQMapping::insert
void insert(const CTPPSPixelFramePosition &fp, const CTPPSPixelROCInfo &vi)
Definition:
CTPPSPixelDAQMapping.cc:32
CTPPSPixelROCInfo::roc
unsigned int roc
Definition:
CTPPSPixelDAQMapping.h:33
edm::LogError
Definition:
MessageLogger.h:183
std
Definition:
JetResolutionObject.h:76
CTPPSPixelDAQMapping.h
CTPPSPixelROCInfo
Contains mappind data related to a ROC.
Definition:
CTPPSPixelDAQMapping.h:23
Generated for CMSSW Reference Manual by
1.8.16