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 39 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 38 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;

◆ insert()

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

Definition at line 24 of file TotemDAQMapping.cc.

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;

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

Referenced by BeautifulSoup.PageElement::append().

Member Data Documentation

◆ totemTimingChannelMap

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

Definition at line 50 of file TotemDAQMapping.h.

◆ VFATMapping

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

Definition at line 41 of file TotemDAQMapping.h.

TotemDAQMapping::VFATMapping
std::map< TotemFramePosition, TotemVFATInfo > VFATMapping
Definition: TotemDAQMapping.h:41
personalPlayback.fp
fp
Definition: personalPlayback.py:523
TotemDAQMapping::totemTimingChannelMap
std::map< uint8_t, TotemTimingPlaneChannelPair > totemTimingChannelMap
Definition: TotemDAQMapping.h:50
EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0.cerr
cerr
Definition: EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0.py:8