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 
25 public:
28 
30  unsigned int hwID;
31 
32  friend std::ostream& operator<<(std::ostream& s, const TotemVFATInfo& fp);
33 };
34 
35 //----------------------------------------------------------------------------------------------------
36 
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
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) ...