CondFormats
PPSObjects
src
TotemDAQMapping.cc
Go to the documentation of this file.
1
/****************************************************************************
2
*
3
* This is a part of TOTEM offline software.
4
* Authors:
5
* Maciej Wróbel (wroblisko@gmail.com)
6
*
7
****************************************************************************/
8
9
#include "
FWCore/Utilities/interface/typelookup.h
"
10
11
#include "
CondFormats/PPSObjects/interface/TotemDAQMapping.h
"
12
13
using namespace
std
;
14
15
//----------------------------------------------------------------------------------------------------
16
17
std::ostream &
operator<<
(std::ostream &
s
,
const
TotemVFATInfo
&vi) {
18
s
<< vi.
symbolicID
<<
", hw id=0x"
<< hex << vi.
hwID
<<
dec
;
19
20
return
s
;
21
}
22
23
//----------------------------------------------------------------------------------------------------
24
25
void
TotemDAQMapping::insert
(
const
TotemFramePosition
&
fp
,
const
TotemVFATInfo
&vi) {
26
auto
it = VFATMapping.find(
fp
);
27
if
(it != VFATMapping.end()) {
28
cerr
<<
"WARNING in DAQMapping::insert > Overwriting entry at "
<<
fp
<<
". Previous: "
<< endl
29
<<
" "
<< VFATMapping[
fp
] <<
","
<< endl
30
<<
" new: "
<< endl
31
<<
" "
<< vi <<
". "
<< endl;
32
}
33
34
VFATMapping[
fp
] = vi;
35
}
36
37
//----------------------------------------------------------------------------------------------------
38
39
const
TotemDAQMapping::TotemTimingPlaneChannelPair
TotemDAQMapping::getTimingChannel
(
const
uint8_t hwId)
const
{
40
TotemTimingPlaneChannelPair
pair;
41
auto
iterator = totemTimingChannelMap.find(hwId);
42
if
(iterator != totemTimingChannelMap.end())
43
pair = iterator->second;
44
return
pair;
45
}
46
47
//----------------------------------------------------------------------------------------------------
48
49
TYPELOOKUP_DATA_REG
(
TotemDAQMapping
);
TotemDAQMapping::insert
void insert(const TotemFramePosition &fp, const TotemVFATInfo &vi)
Definition:
TotemDAQMapping.cc:24
TotemDAQMapping.h
typelookup.h
personalPlayback.fp
fp
Definition:
personalPlayback.py:523
std::operator<<
std::ostream & operator<<(std::ostream &out, const std::tuple< Types... > &value)
Definition:
Utilities.h:32
TotemVFATInfo
Contains mappind data related to a VFAT.
Definition:
TotemDAQMapping.h:23
alignCSCRings.s
s
Definition:
alignCSCRings.py:92
TotemDAQMapping
The mapping between FramePosition and VFATInfo.
Definition:
TotemDAQMapping.h:39
TotemDAQMapping::TotemTimingPlaneChannelPair
Hw Id mapping for Totem Timing (dynamical mapping in Sampic)
Definition:
TotemDAQMapping.h:44
TotemFramePosition
Definition:
TotemFramePosition.h:31
beam_dqm_sourceclient-live_cfg.cerr
cerr
Definition:
beam_dqm_sourceclient-live_cfg.py:17
TYPELOOKUP_DATA_REG
#define TYPELOOKUP_DATA_REG(_dataclass_)
Definition:
typelookup.h:102
std
Definition:
JetResolutionObject.h:76
TotemVFATInfo::hwID
unsigned int hwID
the hardware ID (16 bit)
Definition:
TotemDAQMapping.h:35
TotemVFATInfo::symbolicID
TotemSymbID symbolicID
the symbolic id
Definition:
TotemDAQMapping.h:32
TauDecayModes.dec
dec
Definition:
TauDecayModes.py:143
TotemDAQMapping::getTimingChannel
const TotemTimingPlaneChannelPair getTimingChannel(const uint8_t hwId) const
Given the hardware ID, returns the corresponding Plane, Channel pair (TotemTimingPlaneChannelPair)
Definition:
TotemDAQMapping.cc:38
Generated for CMSSW Reference Manual by
1.8.16