CMS 3D CMS Logo

TotemDAQMapping.h
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 * Jan Kašpar (jan.kaspar@cern.ch)
7 *
8 ****************************************************************************/
9 
10 #ifndef CondFormats_PPSObjects_TotemDAQMapping
11 #define CondFormats_PPSObjects_TotemDAQMapping
12 
14 
16 
17 #include <map>
18 
19 //----------------------------------------------------------------------------------------------------
20 
24 class TotemVFATInfo {
25 public:
28 
30  unsigned int hwID;
31 
32  friend std::ostream& operator<<(std::ostream& s, const TotemVFATInfo& fp);
33 };
34 
35 //----------------------------------------------------------------------------------------------------
36 
40 class TotemDAQMapping {
41 public:
42  std::map<TotemFramePosition, TotemVFATInfo> VFATMapping;
43 
46  int plane;
47  int channel;
48 
49  TotemTimingPlaneChannelPair(const int& plane = -1, const int& channel = -1) : plane(plane), channel(channel){};
50  };
51  std::map<uint8_t, TotemTimingPlaneChannelPair> totemTimingChannelMap;
52 
53  void insert(const TotemFramePosition& fp, const TotemVFATInfo& vi);
54 
56  const TotemTimingPlaneChannelPair getTimingChannel(const uint8_t hwId) const;
57 };
58 
59 #endif
TotemDAQMapping::insert
void insert(const TotemFramePosition &fp, const TotemVFATInfo &vi)
Definition: TotemDAQMapping.cc:24
TotemVFATInfo::operator<<
friend std::ostream & operator<<(std::ostream &s, const TotemVFATInfo &fp)
Definition: TotemDAQMapping.cc:16
TotemSymbId.h
TotemDAQMapping::VFATMapping
std::map< TotemFramePosition, TotemVFATInfo > VFATMapping
Definition: TotemDAQMapping.h:41
personalPlayback.fp
fp
Definition: personalPlayback.py:523
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
TotemDAQMapping::TotemTimingPlaneChannelPair::TotemTimingPlaneChannelPair
TotemTimingPlaneChannelPair(const int &plane=-1, const int &channel=-1)
Definition: TotemDAQMapping.h:48
TotemSymbID
Symbolic ID describing an entity of a TOTEM subdetector.
Definition: TotemSymbId.h:16
TotemDAQMapping::TotemTimingPlaneChannelPair::plane
int plane
Definition: TotemDAQMapping.h:45
TotemFramePosition
Definition: TotemFramePosition.h:31
TotemFramePosition.h
TotemVFATInfo::hwID
unsigned int hwID
the hardware ID (16 bit)
Definition: TotemDAQMapping.h:35
TotemDAQMapping::TotemTimingPlaneChannelPair::channel
int channel
Definition: TotemDAQMapping.h:46
TotemVFATInfo::symbolicID
TotemSymbID symbolicID
the symbolic id
Definition: TotemDAQMapping.h:32
TotemDAQMapping::totemTimingChannelMap
std::map< uint8_t, TotemTimingPlaneChannelPair > totemTimingChannelMap
Definition: TotemDAQMapping.h:50
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