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 41 of file TotemDAQMapping.h.

Member Function Documentation

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

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

Definition at line 40 of file TotemDAQMapping.cc.

Referenced by RawToDigiConverter::run().

41 {
42  TotemTimingPlaneChannelPair pair;
43  auto iterator = totemTimingChannelMap.find( hwId );
44  if ( iterator != totemTimingChannelMap.end() ) pair = iterator->second;
45  return pair;
46 }
std::map< uint8_t, TotemTimingPlaneChannelPair > totemTimingChannelMap
void TotemDAQMapping::insert ( const TotemFramePosition fp,
const TotemVFATInfo vi 
)

Definition at line 26 of file TotemDAQMapping.cc.

References MessageLogger_cfi::cerr.

Referenced by BeautifulSoup.PageElement::append().

27 {
28  auto it = VFATMapping.find(fp);
29  if (it != VFATMapping.end())
30  {
31  cerr << "WARNING in DAQMapping::insert > Overwriting entry at " << fp << ". Previous: " << endl
32  << " " << VFATMapping[fp] << "," << endl << " new: " << endl << " " << vi << ". " << endl;
33  }
34 
35  VFATMapping[fp] = vi;
36 }
std::map< TotemFramePosition, TotemVFATInfo > VFATMapping

Member Data Documentation

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

Definition at line 54 of file TotemDAQMapping.h.

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