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 
20 //----------------------------------------------------------------------------------------------------
21 
26 public:
29 
31  unsigned int hwID;
32 
33  friend std::ostream& operator<<(std::ostream& s, const TotemVFATInfo& fp);
34 };
35 
36 //----------------------------------------------------------------------------------------------------
37 
42 public:
43  std::map<TotemFramePosition, TotemVFATInfo> VFATMapping;
44 
47  int plane;
48  int channel;
49 
50  TotemTimingPlaneChannelPair(const int& plane = -1, const int& channel = -1) : plane(plane), channel(channel){};
51  };
52  std::map<uint8_t, TotemTimingPlaneChannelPair> totemTimingChannelMap;
53 
54  void insert(const TotemFramePosition& fp, const TotemVFATInfo& vi);
55  void insert(const TotemT2FramePosition& fp2, const TotemVFATInfo& vi);
56 
58  const TotemTimingPlaneChannelPair getTimingChannel(const uint8_t hwId) const;
59 };
60 
61 #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) ...