CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Public Attributes
TotemDAQMapping Class Reference

The mapping between FramePosition and VFATInfo. More...

#include <TotemDAQMapping.h>

Classes

struct  TotemTimingPlaneChannelPair
 Hw Id mapping for Totem Timing (dynamical mapping in Sampic) More...
 

Public Member Functions

const TotemTimingPlaneChannelPair getTimingChannel (const uint8_t hwId) const
 Given the hardware ID, returns the corresponding Plane, Channel pair (TotemTimingPlaneChannelPair) More...
 
void insert (const TotemFramePosition &fp, const TotemVFATInfo &vi)
 

Public Attributes

std::map< uint8_t, TotemTimingPlaneChannelPairtotemTimingChannelMap
 
std::map< TotemFramePosition, TotemVFATInfoVFATMapping
 

Detailed Description

The mapping between FramePosition and VFATInfo.

Definition at line 40 of file TotemDAQMapping.h.

Member Function Documentation

◆ getTimingChannel()

const TotemDAQMapping::TotemTimingPlaneChannelPair TotemDAQMapping::getTimingChannel ( const uint8_t  hwId) const

Given the hardware ID, returns the corresponding Plane, Channel pair (TotemTimingPlaneChannelPair)

Definition at line 39 of file TotemDAQMapping.cc.

39  {
40  TotemTimingPlaneChannelPair pair;
41  auto iterator = totemTimingChannelMap.find(hwId);
42  if (iterator != totemTimingChannelMap.end())
43  pair = iterator->second;
44  return pair;
45 }
std::map< uint8_t, TotemTimingPlaneChannelPair > totemTimingChannelMap

◆ insert()

void TotemDAQMapping::insert ( const TotemFramePosition fp,
const TotemVFATInfo vi 
)

Definition at line 25 of file TotemDAQMapping.cc.

References DMR_cfg::cerr, and personalPlayback::fp.

Referenced by SequenceTypes.Schedule::_replaceIfHeldDirectly().

25  {
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 }
std::map< TotemFramePosition, TotemVFATInfo > VFATMapping

Member Data Documentation

◆ totemTimingChannelMap

std::map<uint8_t, TotemTimingPlaneChannelPair> TotemDAQMapping::totemTimingChannelMap

Definition at line 51 of file TotemDAQMapping.h.

◆ VFATMapping

std::map<TotemFramePosition, TotemVFATInfo> TotemDAQMapping::VFATMapping

Definition at line 42 of file TotemDAQMapping.h.