CMS 3D CMS Logo

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 
10 
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 
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 
41  auto iterator = totemTimingChannelMap.find(hwId);
42  if (iterator != totemTimingChannelMap.end())
43  pair = iterator->second;
44  return pair;
45 }
46 
47 //----------------------------------------------------------------------------------------------------
48 
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
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
EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0.cerr
cerr
Definition: EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0.py:8
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