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 
15 
17 
18 #include <map>
19 #include <cstdint>
20 
21 //----------------------------------------------------------------------------------------------------
22 
27 public:
30 
32  unsigned int hwID;
33 
34  friend std::ostream& operator<<(std::ostream& s, const TotemVFATInfo& fp);
35 };
36 
37 //----------------------------------------------------------------------------------------------------
38 
43 public:
44  std::map<TotemFramePosition, TotemVFATInfo> VFATMapping;
45 
48  int plane;
49  int channel;
50 
51  TotemTimingPlaneChannelPair(const int& plane = -1, const int& channel = -1) : plane(plane), channel(channel){};
52  };
53  std::map<uint8_t, TotemTimingPlaneChannelPair> totemTimingChannelMap;
54 
55  void insert(const TotemFramePosition& fp, const TotemVFATInfo& vi);
56  void insert(const TotemT2FramePosition& fp2, const TotemVFATInfo& vi);
57 
59  const TotemTimingPlaneChannelPair getTimingChannel(const uint8_t hwId) const;
60 };
61 
62 #endif
std::map< uint8_t, TotemTimingPlaneChannelPair > totemTimingChannelMap
friend std::ostream & operator<<(std::ostream &s, const TotemVFATInfo &fp)
TotemSymbID symbolicID
the symbolic id
TotemTimingPlaneChannelPair(const int &plane=-1, const int &channel=-1)
void insert(const TotemFramePosition &fp, const TotemVFATInfo &vi)
Symbolic ID describing an entity of a TOTEM subdetector.
Definition: TotemSymbId.h:17
The mapping between FramePosition and VFATInfo.
Hw Id mapping for Totem Timing (dynamical mapping in Sampic)
unsigned int hwID
the hardware ID (16 bit)
std::map< TotemFramePosition, TotemVFATInfo > VFATMapping
Contains mappind data related to a VFAT.
const TotemTimingPlaneChannelPair getTimingChannel(const uint8_t hwId) const
Given the hardware ID, returns the corresponding Plane, Channel pair (TotemTimingPlaneChannelPair) ...